POST /v1/schemas/generate when you want Retab to infer a schema from example documents.
Generate Schema
The schema generation endpoint accepts one or more documents and returns a JSON Schema inferred from those examples. You can pass optional instructions, model routing, and image resolution settings.Request Fields
Example documents used to infer the schema.
Model or Retab router alias used for schema generation.
Extra guidance for fields, naming conventions, or domain-specific details.
Resolution used when converting visual documents for the model.
Whether to stream schema generation output.
Response Fields
Always
"schema".Timestamp for the generated schema response.
The generated JSON Schema.
Whether the schema should be treated as strict structured output.