OpenAI-compatible chat completions. Strict allow-list parser: unknown top-level fields reject with 400 unsupported_field. Streaming (stream: true) is supported and emits SSE chat.completion.chunk events; n > 1 streaming fans candidates out as per-choice_index delta chunks with per-choice closure chunks (each carrying finish_reason) before the single global [DONE]. Content is either a string or an array of content parts; image parts (image_url / input_image) with a base64 data: URI are accepted for generation models declaring inputs.image (non-vision/encode-only models reject 400 unsupported_field; remote URLs reject 400 invalid_request). lora_adapter is forwarded to the worker as a top-level lora_path generation kwarg.
Headers
Preferred GPU or machine profile
Explicit pool routing override
Client SDK version for skew warnings
Request body
Response
Chat completion response
Changes
Changed in 6 of the 41 revisions of this API.128
- ○
added
ChatTemplateKwargssubschema #1to thechat_template_kwargsrequest propertyoneOflistrequest-property-one-of-added
- ○
added the non-success response with the status
413response-non-success-status-added
- ○
- ●
the
seedrequest property's max was set to9223372036854775808.00request-property-max-set
- ●
the
seedrequest property's min was set to-9223372036854775808.00request-property-min-set
- ●
- ○
added the new optional request property
messages/items/content/oneOf[subschema #2]/items/image_urlnew-optional-request-property
- ○
added the new
image_urlenum value to the request propertymessages/items/content/oneOf[subschema #2]/items/typerequest-property-enum-value-added
- ○
added the new
input_imageenum value to the request propertymessages/items/content/oneOf[subschema #2]/items/typerequest-property-enum-value-added
- ○
- ○
added the new optional request property
chat_template_kwargsnew-optional-request-property
- ○
added the new optional request property
min_tokensnew-optional-request-property
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲