Prompting

JSON mode

An API option that makes a model output valid JSON.

JSON mode ensures syntactically valid JSON; structured outputs go further and enforce a specific schema. The 'JSON' capability on this site covers either.

All terms

Frequently asked questions

What does JSON mode mean?

An API option that makes a model output valid JSON. JSON mode ensures syntactically valid JSON; structured outputs go further and enforce a specific schema. The 'JSON' capability on this site covers either.