- One message shape: every input is a content part under
messages[].content, the same as OpenAI SDKs. - Per-model support: a part the model cannot read returns
400before inference. - Limits: documents cap at 256 MB and 128 pages. Video sampling is tunable.
The Gateway validates each part against the model’s capabilities before inference. A mismatch returns
400 with capability_violation. Accepted input types are on Models and GET /v1/openai/models.
- Single image
- Multiple images
- Video
- Documents
Most OCR and vision models accept one
image_url per request.image_url.detail accepts auto, low, or high for OpenAI SDK compatibility. Set image_resolution to resize the image before inference when the model’s default resolution costs more than the task needs. See Gateway extensions.Related
Document OCR
From model selection to response parsing.
Streaming
Receive each page as it finishes.
Models
Input types each model accepts.
Chat Completions
Read the request and response schema.