/v1/chat/completions for OpenAI-compatible text generation.
Streaming
Setstream: true to receive server-sent events. Each event is an OpenAI
chat.completion.chunk, and the stream ends with data: [DONE].
Parameters
OpenAI-standard parameters are accepted, includingtemperature, top_p,
max_tokens, stop, n, frequency_penalty, presence_penalty, seed,
response_format, tools, tool_choice, logprobs, top_logprobs,
logit_bias, user, and stream.
Notes
- The
modelis a public APIAny.AI model ID. - Token usage is normalized into the OpenAI-style
usageobject when usage data is available.