↗← All demos POST /v1/responses · json_schema

03 · Data extraction

Structured outputs

Programs need data, not prose. Give the model a JSON Schema and the answer is guaranteed to match it: the same keys and types, every time. You can then use the result directly in code. Docs ↗

Example
Strict mode needs additionalProperties: false, and every property must be listed in required.