Skip to main content
Point base_url at https://gateway.vlm.run/v1/openai in any OpenAI SDK and you can start making requests. This page covers setup and the two most common request shapes: visual Q&A and document OCR. See Introduction for the rationale behind the VLM Run Gateway.

Prerequisites

Base URL: https://gateway.vlm.run/v1/openai. Use Authorization: Bearer <VLMRUN_API_KEY>, or omit the header for anonymous access. See Authentication and Rate Limits.

Visual Q&A

Send a question with an optional image. See Models for available models.

Video Q&A

Send a question with a hosted video URL. Tune frame sampling with video_fps and video_max_frames. See Video Inputs for all knobs.

Document and Image OCR

Pass a PDF as a document_url content part and select a per-page method. See Models and Flexible Document OCR for the full pipeline.

Next steps

Flexible Document OCR

Request knobs, page blocks, and streaming for PDFs.

Models

Catalog, capabilities, and model selection.

Authentication

Anonymous vs API key access and rate limits.

Chat Completions API

Full request parameters and response schema.