od OpenAIPremium
GPT-5.1 Codex
Optimized for agentic coding
gpt-5.1-codexGenerate chat completions with this model.
/api/v1/chat/completionsGET /api/v1/models?type=chat{
"model": "gpt-5.1-codex",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"stream": false
}curl -X POST https://kunya.ai/api/v1/chat/completions \
-H "Authorization: Bearer kunya_YOUR_API_KEY" \
-H "Content-Type: application/json"
-d '{"model":"gpt-5.1-codex","messages":[{"role":"user","content":"Hello!"}],"stream":false}'