The United States has accused Iran of seeking a nuclear weapon , but says it favors diplomacy in ending the crisis .