Skip to main content
The vlmrun gateway command (aliased as vlmrun gw) runs OpenAI-compatible OCR and vision-language models hosted behind the VLM Run Gateway (https://gateway.vlm.run/v1), authenticating with the same VLMRUN_API_KEY used everywhere else. Unlike vlmrun chat (which uploads to the Files API and calls the Orion agent), the gateway is a raw passthrough to third-party models. Input files are sent inline as base64 data: URLs, with documents attached as document_url content parts and images as image_url.
Most gateway models, especially OCR models such as zai-org/glm-ocr and paddleocr/pp-ocrv6, do not accept text-only input, so vlmrun gw chat requires at least one input file.

Health

Check gateway reachability:

Models

List available models with their methods, or detail a single model with copy-pasteable example commands:
The default method for each model is marked with *.

Chat

Run an OCR / VLM model over one or more documents or images:

Methods

Each model exposes one or more methods (e.g. ocr, detect, markdown) with a default. Run vlmrun gw models <model> to see a model’s methods and params.

Extra completion kwargs

Forward extra chat.completions.create() kwargs as repeatable key=value pairs (values are JSON-parsed). Unknown keys are routed through extra_body to reach the gateway as top-level request fields.

Options

Embed

Embed text, images, or video with a gateway embedding model. Every file and every -t/--text is embedded as its own vector; use --join to embed them together as a single vector (at most one file).

Transcribe

Transcribe audio, or a video whose audio track is transcribed:

Command Reference

Configuration

Override the gateway base URL with the VLMRUN_GATEWAY_URL environment variable (default: https://gateway.vlm.run/v1):
See the Gateway documentation for the full model catalog and methods reference, and client.gateway for the Python SDK equivalent.