The invitation was handed to Talabani by the Iranian ambassador to Iraq Hassan Kazemi Qomi during a meeting in Baghdad, the news agency Fars reported on Monday.
The United States and Iraqi officials routinely blame Tehran for aiding the insurgency in Iraq.
In April, Ahmadinejad ruled out direct talks between the Islamic Republic and the U.S. over Iraq.
Qomi, who until recently was Iran’s charge d’affaires in Iraq, is a veteran officer of the Islamic Revolutionary Guards Corps and was once the IRGCs liaison to Hezbollah in Lebanon.