Endpoint
x-api-key: lx1_... (a bearer token also works). Any model in the
catalog is valid in model.
Request parameters
Image blocks need a model that declares
capabilities.vision, and PDF document blocks
a model that declares capabilities.documents — both are short lists, so read them off
GET /v1/models rather than guessing. A model that cannot read
images rejects them with a 400. See Vision.Example
Response (shape)
Response fields
Streaming
Withstream: true the response is the Anthropic SSE event sequence —
message_start, content_block_start, content_block_delta, content_block_stop,
message_delta, message_stop — exactly what the Anthropic SDKs expect.
Errors
Failures return standard status codes with Anthropic-shaped bodies ({ "type": "error", "error": { ... } }). Retry on 429/5xx with backoff and honor
retry-after. Full reference: Errors.