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.
Request
- The document declares no server URL.
- Auth
- HTTP bearer
- or API key in header x-api-key
Headers
Preferred GPU or machine profile
Explicit pool routing override
Client SDK version for skew warnings
Require local serving through a current worker execution fence. A selected remote profile returns 400; no verified local worker returns retryable 503. Duplicate or other values return 400.
Request body
Response
Chat completion response
Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/////to the response with the status
- info
- info
added the new optional request property
- info
added the optional property
///to the response with the status
- info