Endpoint
Authorization: Bearer lx1_.... Any model in the
catalog is valid in model.
Request parameters
Example
Response (shape)
Response fields
Streaming
Withstream: true the response is Server-Sent Events: incremental
chat.completion.chunk objects, terminated by data: [DONE].
Errors
Failures return standard status codes with OpenAI-shaped bodies — match on the status, retry on429/5xx with backoff. Full reference: Errors.
Requesting vision input on a text-only model is a
400. Image input is a short list —
check capabilities.vision on GET /v1/models before you send.
See Vision.