Create chat completion
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.Documentation Index
Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
Use this file to discover all available pages before exploring further.
"stream": true to receive server-sent events (SSE) as each token is generated. This produces a lower time-to-first-token and is ideal for chat UIs.
data: line is a JSON object. The first chunk includes the role; subsequent chunks contain only delta.content.finish_reason is set, followed by a literal data: [DONE] line.delta.tool_calls arrives incrementally and should be concatenated by index.error key instead of choices. Close the stream and surface the error to the caller.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful completion