Use this section for chat, multi-turn conversations, agents, and structured text output.
Endpoint list
When to use which
- Use
chat.completionsfor traditional chat-completion clients - Use
responseswhen you want a more unified interface for text, structured output, and future multimodal expansion
Request notes
- Authenticate with
Authorization: Bearer {API_KEY} chat.completionsis centered aroundmessagesresponsesis centered aroundinput,instructions, andresponse_format
Response notes
chat.completionsusually reads fromchoices[0].message.contentresponsesusually reads fromoutput_textoroutput[]- Streaming clients should handle SSE chunks incrementally
