Would AT&T charge me to unlock my iphone?

I have an iphone 4s and its locked to at&t can they unlock it for free?

You can get your unlocked code but there are requirements you need to call them and ask I know you have to be a customer for a certain amount of time and your bill has to be paid up to date

There are certain requirements you need to fulfill before they can unlock it for free.