If you have a CCO login, you can login and check which versions are available to your model and the memory requirements.
Upgrading from the same series of IOS should be free. But say if you upgrade from IP to IP Plus, or from IP Plus to IP Plus IPSec, then probably you'll need to pay for it.