The Spirit was designed and built in San Diego to compete for the $25,000 Orteig Prize for the first nonstop flight between New York and Paris.[3] Hall and Ryan Airlines staff worked closely with Lindbergh to design and build the Spirit in just 60 days. Although what was actually paid to Ryan Airlines for the project is not clear, Mahoney agreed to build the plane for $6,000 and said that there would be no profit; he offered an engine, instruments, etc. at cost. After first approaching several major aircraft manufacturers without success, in early February 1927 Lindbergh, who as a U.S. Air Mail pilot was familiar with the good record of the M-1 with Pacific Air Transport, wired, "Can you construct Whirlwind engine plane capable flying nonstop between New York and Paris ...?"