AI Output Schema Builder
NEWResponse schemas for language models built in a visual editor, checked in the JSON Schema, OpenAI Structured Outputs strict and neutral profiles, validated on an example answer and exported to TypeScript and Zod, without an API key.
Schema editor
Invoice extraction: 16 properties
The order of the properties is the order of the fields in the model's answer. A row opens in the inspector, and the schema beside it marks the same fragment.
Definitions · $defs
Generated JSON Schema
Import
Load a JSON schema
Recent schemas
Example response
Example validated against the schema
The example is made deterministically from the schema and the seed. Every change to the JSON runs the validation again, and a fix replaces only the indicated value.
To fix
Validation runs in the browser. The studio sends no data to any provider and needs no API key.
Compare on
Variant A and variant B: schema changes
Added, removed and changed properties, changes in required and the effect on the compatibility of answers and code.
Code export
Browser compatibility
Found a bug or missing something? Write to us
Scope and limits
What this tool covers
JSON Schema checked against the documented strict mode rules, in your browser
The strict mode subset, its formats and limits come from the OpenAI Structured Outputs guide (checked on 20 November 2026). The example is validated by a JSON Schema validator in this tab, and the exports follow the documented formats of the Responses API, TypeScript and Zod 4. No API call is made.
Help
FAQ
What does the studio check?
The schema itself and an example answer. The schema is checked in the profile you choose: JSON Schema 2020-12, the subset OpenAI Structured Outputs documents for strict mode (every property required, additionalProperties false, the supported keywords and limits) or a neutral, portable subset. The example is validated against the generated schema by a JSON Schema validator in this tab; every error names its path and offers a fix where one value is enough.
Where do the strict mode rules come from?
From the OpenAI Structured Outputs guide, checked on 20 November 2026: the supported types and keywords, the formats, the unsupported composition keywords and the limits of 5000 properties, 10 nesting levels, 1000 enum values and 120,000 characters. Where the guide is not consistent (minLength and maxLength are missing from its list of supported keywords but named in its list for fine-tuned models), the studio says so and moves them into the description instead of guessing.
How is an optional field written for strict mode?
As a required field whose type also allows null, for example "type": ["string", "null"]: this is how the guide emulates an optional value, because strict mode requires every property. The OpenAI profile writes it that way, and the TypeScript and Zod exports type it as string | null.
How is the example answer made?
It is generated from the schema alone, deterministically: the same schema and seed always give the same answer. Values come from the schema's examples, its enum values, its formats and patterns and its numeric limits. No model is asked and no API key is needed; the example can be edited and is validated again after every change.
What do the exports contain?
The JSON Schema of the chosen profile, TypeScript types, Zod 4 schemas, the text.format configuration for the Responses API with strict: true, the example answer and a TypeScript request on the official openai package. The types follow the profile: in strict mode a missing value is null, in the general profile an optional property may be absent.
Does my schema leave the browser?
No. The editor, the validation, the example and the exports work in this tab; the studio makes no request to OpenAI or any other provider, and an import is read as data, without running code or fetching a remote $ref. The schemas and recent schemas are kept only in this browser, under the polprog_studios key; a shared link holds the schema only when someone copies it.
