Schema Inference
Overview of the Schema Inference API
Hand off to an LLM
Infer JSON Schemas from uploaded documents using AI.
Upload a file (PDF, image, spreadsheet, email, etc.) and receive a general-purpose JSON Schema
that captures the document's structure. The inferred schema can be used directly as the
outputSchema when creating Extract functions.
The schema is designed to be broadly applicable to documents of the same type, not just the specific file uploaded.
See also
- Schema building guide — from inferred to production-ready