v1
latestOpenAPI 3.1.02026-07-2332014.2 KBChat Completions
Create a chat completion
post/v1/chat/completions
Request body
Response
Chat completion result. When stream: true, the response is returned as text/event-stream instead of JSON, with OpenAI-style data: {chunk}\n\n framing terminated by data: [DONE]\n\n.
ChatCompletionResponse required
OpenAI-compatible chat completion response. Standard fields (id, object, created, model, choices, usage) are returned; provider-specific extras are stripped before responding.