Skip to main content

Minimal request

cURL example

Python example

Node.js example

Best practices

  • Start with chat.completions when you need compatibility with existing clients
  • Keep the system instruction server-side
  • Centralize retries, timeout handling, and conversation history before moving to responses