Structured model outputs

by OpenAI

Read the original →

How to get schema-valid JSON instead of hoping the model formats it right.

The guide describes requesting outputs that follow an explicit structure through OpenAI's API. Schema compliance still needs to be paired with checks that the returned information is correct.

Level
Intermediate
Models
gpt
Category
Prompting
Tags
structured-output
Source date
date not stated
Added
2026-10-18
Last verified
2026-10-18
Status
ok
Prerequisites
Assumes basic LLM familiarity or the ability to read examples and configure a workflow.
Subcategory
reasoning and structured output
Region
West
Original language
en
Access
free
Resource reuse
closed: No general open-reuse grant established from the inspected page. Closed is the conservative index bucket, not a legal finding; the resource is publicly readable. Facet definitions

Summary in our own words. Rights remain with the original creator. Credit and correction policy.

Plain-text Markdown copy