Skip to main content
vlm-1 accepts a custom schema in addition to pre-defined domains. Define fields, types, and validation rules with Pydantic or Zod. Pass the schema as json_schema on GenerationConfig. The response matches that schema.
Schemas include visual grounding and confidence scores.

1. Defining a Custom Schema

2. Extracting Structured JSON from Images with a Custom Schema

3. Response Validation

Schema best practices

See schema best practices.

Try our Image -> JSON API today

Open Image -> JSON on VLM Run. Sign up on the platform.