The documentation for the ChatGPT API is available at OpenAI’s official API reference page, at https://platform.openai.com/docs/api-reference/chat/create. This documentation provides detailed information about how to use the ChatGPT API, including the necessary parameters, how to format a conversation with the model, and guidance on token count.