Skip to main content
Point a Pydantic AI Agent at the VLM Run OpenAI-compatible chat endpoint. Pydantic AI runs your local tools; Orion-2 runs document, image, audio, and video work in its code-execution sandbox.

Quick start

ImageUrl and DocumentUrl need no mapper overrides. AudioUrl works with the profile above. Only VideoUrl needs the one-line patch.
Use vlmrun-orion-2:auto for the default tier. Other variants are listed in Code Execution. Get an API key from API Keys.

Examples

Public sample files — same agent and run_kwargs() for each.

Document

Image

Audio

Video

Prefer streaming for video (often 1–2 minutes; some keys require stream=True):

Hybrid: extract + local ERP tool

What runs where

Code Execution

Orion-2 sandbox, libraries, and model variants

Mastra Compatibility

The same hybrid contract from a TypeScript agent

Agent Inputs

Document, image, audio, and video content parts

Artifacts

Retrieve annotated images, clips, and generated files