Language (chat)
Text in, text out, with image inputs where the model is a vision-language model. The one task that does not go through the task API or the SDK.
| Task | Path | Mode |
|---|---|---|
chat | OpenAI-compatible | Synchronous, streamed or not, on POST /v1/chat/completions. |
- Task
chat- Path
- OpenAI-compatible
- Mode
- Synchronous, streamed or not, on
POST /v1/chat/completions.
- OpenAI's chat completion body:
model,messages,stream, and the accepted fields of the chat completions reference. image_urlparts in ausermessage on a model advertisingvision;input_audioandfileparts are refused (audio goes through the task API).- Tool calls,
json_objectandjson_schemaoutputs,logprobsandreasoning_effortwhere the model advertises the feature; otherwise a 400unsupported_parameter.
input_output_tokens:prompt_tokensandcompletion_tokensat the model's separate input and output rates, counted by the serving engine's tokenizer for the pinned model.- With image inputs, tokens under the model's image-token rule; image count and dimensions change the charge.
- The charge is
x-hips-cost-micros, or on a stream thehipsobject of the final usage chunk.
- OpenAI's
chat.completionobject;idis the request id.finish_reasonisstop,lengthortool_calls;content_filteris never emitted. - Streamed: one
data:line per chunk, a final usage chunk withstream_options.include_usage, thendata: [DONE]. A failure after the stream started is onedata:line with the error envelope and no[DONE].
Prelaunch
Every number a task guide needs (limits, durations, dimension bands) is set per model in the catalog and is not written here. The SDK guide of the same task follows once the SDK's package names are decided Not decided yet.
Related sheets
- Sheet
- 06 of 13
- Detail
- B
- Updated
- 2026-10-21
- Status
- Preview