Depends. Are you only sponsoring your spouse or dependent children as well? Do you want to pay all of the fees up front or pay the right of permanent residence fee later?
If you are only sponsoring your spouse and want to pay everything up front - then the total is $1040.