更新日: 2026-06-06
Create Chat Completion
2026-03-23.
Authentication
Core parameters
Optional parameter support varies by model. Client code should rely on the stable common fields first rather than assuming every model supports the same advanced options.
Non-streaming request
cURL
Important interpretation
message.contentis the most stable final-text fieldmessage.tool_callsonly appears when the model is requesting tool executionmessage.reasoning_contentmay exist as a key, but should not currently be treated as guaranteed usable content
Streaming request
cURL
- streaming returns
chat.completion.chunk - SSE chunks are sent as
data: ... - the stream still ends with
data: [DONE]
Python example
Python
Current recommendation
- For normal text chat, use
/v1/chat/completions - For reasoning summaries or OpenAI-style web search, prefer
/v1/responses - For more specific capability guarantees, use the dedicated capability pages rather than this generic endpoint page