messages 结构保持一致
Chat Completions 使用模型 ID 加 messages 数组。网关负责请求归一化、模型校验、账号策略和提供方路由,应用侧使用统一的 OpenAI 兼容结构。
JSON body
{
"model": "qwen/qwen3-max",
"messages": [
{ "role": "system", "content": "You are concise." },
{ "role": "user", "content": "Summarize this support ticket." }
]
}上线前先看模型能力
模型页会标注 streaming、JSON、tool calling、vision、long context、reasoning 和生产状态。请求字段应与模型能力匹配,避免在不支持的模型上启用对应参数。
| messages | Chat 模型必需 |
| response_format | 仅在模型支持 JSON Mode 时使用 |
| tools | 仅在模型支持工具调用时使用 |
| vision input | 选择视觉模型并验证 payload 结构 |