Chat Completions
调用示例
响应示例
"stream": true)以 SSE 返回,每个 chunk 遵循 OpenAI delta 格式:
加群 & 客服


Authorizations
Use the API key created at https://coder.visioncoder.cn/key as the Bearer token. Anthropic clients can pass the same key via the x-api-key header.
Body
OpenAI Chat Completions request body. The platform forwards it upstream as-is; fields follow the official OpenAI protocol.
Model ID. Accepts any chat-capable model returned by GET /v1/models — e.g. OpenAI gpt-5.4 / gpt-5.5, Anthropic claude-sonnet-4-6 / claude-opus-4-7, or open-source deepseek-v4-pro / qwen3.6-35b-a3b / kimi-k2.6 / glm-5.1 / minimax-m2.7.
"gpt-5.4"
Conversation message list
0 <= x <= 20.7
0 <= x <= 1Number of candidate completions to generate
Maximum output tokens
4096
Newer field, equivalent to max_tokens
Whether to stream the response via SSE
Stop sequence(s); string or array of strings
-2 <= x <= 2-2 <= x <= 2Function-calling tool definitions
Tool choice strategy; string or object
End-user identifier
Response
A successful response.