Talks with the US should be pursued to secure national interests as long as "threats and unreasonable expectations" are avoided, President Masoud Pezeshkian posted on X on Tuesday.
"Taking into account demands from friendly regional countries to respond to the US President's suggestion for talks, I instructed the foreign minister to prepare the ground for equitable and fair negotiations ... should an atmosphere free of threats and unreasonable expectations arise," Pezeshkian said.
The talks will be held "within the framework of our national interests", he said.
Washington dispatched an aircraft carrier group to the Middle East following anti-government protests in Iran that peaked last month.
US President Trump has said he remains hopeful that Washington will "work something out" with Iran, but warned on Monday that "bad things would happen" if no deal is reached.
Tehran has insisted it wants diplomacy while vowing an unbridled response to any aggression.
It has repeatedly stressed that talks should remain focused solely on the nuclear issue, rejecting negotiations over its missile programme or defence capabilities.
In an interview with CNN broadcast on Monday, Iran's Foreign Minister Abbas Araghchi said a nuclear deal with the US was achievable.
"So I see the possibility of another talk if the US negotiation team follows what President Trump said: to come to a fair and equitable deal to ensure that there is no nuclear weapon," he said.
"So if that is the case, I am confident that we can achieve a deal," he added.
Iran's supreme leader, Ayatollah Ali Khamenei, has warned of a "regional war" if the US attacked his country.
The priority of talks between the US and Iran this week in Istanbul is to avoid any conflict and de-escalate tensions between the two sides, a regional official told Reuters, adding a group of regional powers were also invited.
The official, speaking on condition of anonymity, said some of the countries invited to the talks at the foreign ministers' level included Saudi Arabia, Qatar, Egypt, Oman, and the United Arab Emirates.
The person said the format of the meetings remained unclear, but that the "main meeting" would be on Friday and that it was important to start dialogue between the parties to avoid further escalation.