Series of related requests: Conversation

ChatGPT is essentially GPT3.5
When you use the completions endpoint, the available models only use up to GPT3. It would look like this:

model: "text-davinci-003",

If you want to obtain the functionality of ChatGPT and interact with it via an API, I would recommend checking out this topic where they discuss open source solutions.