A top Iranian official said Wednesday that Tehran could consider working with the United States over the crisis in Iraq if talks on its nuclear programme are successful.