Recommended endpoint
Minimal request
cURL example
Python example
Node.js example
Best practices
- Prefer
responsesfor new integrations that may grow into tools or multimodal input - Reuse
previous_response_idinstead of resending the entire history every turn - Build your parser around both
output_textandoutput[]
