Responses Compatibility
Responses Compatibility
Do not call /v1/responses directly. The current stable public entrypoint is /v1/chat/completions, and it requires messages. If an upstream model needs a response-style provider API, Chuizi.AI performs the required adaptation internally while clients keep using Chat Completions.
terminal
bash
curl -X POST https://api.chuizi.ai/v1/chat/completions \ -H "Authorization: Bearer ck-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-4.1", "messages": [{"role":"user","content":"Write a Redis cache helper."}], "max_tokens": 2048 }'
If you see an older example using top-level input or instructions, replace it with messages.