Skip to main content
Every Gateway model reads one or more kinds of input: text, images, PDFs, video, or audio. Which kinds a model accepts, and how large they can be, decides which model you pick and how you send the request. This page lists the accepted inputs, their limits, and when to send a URL instead of base64.
  • 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 400 before inference.
  • Limits: documents cap at 256 MB and 128 pages. Video sampling is tunable.
Each part is one of: 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.
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.
Each model’s supported inputs and modalities are listed in the models catalog.

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.