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.Document and Image OCR
Pass a PDF as adocument_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.