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

Summary in our own words. All rights with the original creator. Correction or removal: DM on X.