He doesn’t need to supply the API, GPT already knows the API from its training data. I’ve written a similar tool for Unity and it works the same way. Any program that allows scripting/plugins (and has a sizeable community posting code online) will be able to work the same way.