Did you buy your phone from Apple or from TMobile? If you bought it from Apple, it should be unlocked already. You should be able to drop in your SIM and go.
In fact, I did this two years ago with the 6 Plus. I bought a T-Mobile phone from Apple because they were unlocked (at the time the others weren't, even if purchased directly from Apple) and used it with my AT&T SIM.