Referencing a GPT when using Completions API

,

If I create a GPT is it possible to reference this GPT e.g. as a parameter, when I am making requests to the completions endpoint so that it knows to use this GPT to answer the prompt I provide to the endpoint?

Or is there another way to interact with a GPT via API?

By creating a GPT, I assume you mean on the ChatGPT editor here: https://chat.openai.com/gpts/editor

I believe what you’re asking isn’t possible in that way.

Instead, you would have to create an Assistant using the API (same as a custom GPT) and then use the Assistants endpoint

You can create an Assistant here: https://platform.openai.com/playground?mode=assistant

Here is the documentation for the Assistants:

https://platform.openai.com/docs/assistants/overview

And here is the API reference for the Assistants endpoint:

https://platform.openai.com/docs/api-reference/assistants

Note that you can create an Assistant in the Playground or directly in the API endpoint: https://platform.openai.com/docs/api-reference/assistants/createAssistant

1 Like

More info on the difference between GPT’s and Assistants

As this topic has a selected solution, closing topic.