JSON Schema Builder
Design the JSON you want back from a model, export the schema and validate sample outputs.
Design your output
| Field name | Type | Allowed values (enum, comma-separated) | Description | Required |
|---|
Output
Validate a model's output
Paste what the model returned. Code fences are stripped automatically.
Structured output in practice
- Pass the schema to your API's structured output / JSON-schema mode so decoding is constrained to valid shapes.
- Enums stop the model inventing labels; required + strict stop missing or extra keys.
- A valid shape is not a correct answer — still check the values (and log failures) before using them.
- On a parse/validation error, retry once with the error message, then fall back gracefully.