Hi samioman00
If you apply here in the U.S "AOS"., you must pay $440 to DOS first & then you wait until you number is current and pay $1,070 to USCIS when you send your package to Chicago.
On the other hand, if you wish to apply outside the US via embassy "CP" in your country or in the country...