Hi and welcome to the Developer Forum!
I can be wrong but I don’t think it’s possible to request custom GPTs through an API .
I would recommend you to take a look at this How to make an API call to a custom GPT model? they seem to have a workaround using Assistants API.