Recommended endpoint
Minimal request
cURL example
Python example
Node.js example
Best practices
- Start with
chat.completionswhen you need compatibility with existing clients - Keep the system instruction server-side
- Centralize retries, timeout handling, and conversation history before moving to
responses
