It is typically not possible to unlock a phone that is still under contract. However, you can contact AT&T customer support to discuss your options.