Iran could end the war independently with US than with Israel. US/Trump's ego needs denuclearization and opening of Straits.
Iran needs no more embargoes. There is a price that they can sell enriched uranium to US. Guarantees against no more future attacks can come with reperations/reconstruction cash as goodwill, to later be swapped with US investment. Let congress vote on affirming into law no more attack on Iran without 60% majority. Even if US lies about future intentions for peace, Iran missile production will outpace the US's, and cash (even as prepayment for future investment) goes a long way to ensuring another future defeat with forfeiting of US interests/ownership in Iran.
For the Israel front, the US/GCC/NATO could push back on some of those terms to pressure Israel to stop. Board of Peace chair given to Iran. world embargo on Israel, arrest/IDF fragging of Netanyahu, 1990s track for 2 state or greater multicultural constitutional Palestine solution. Israeli enthusiasm for genocide is conditional on the illusion of protection from all inconvenience from blowback of the unchosen.