What is it?
A structured output is a model response that follows a defined schema or format.
The shape can specify fields, types, required values, and allowed options. The application can then validate and use the result more reliably.
Structured outputs make an AI response follow a defined data shape.
A structured output is a model response that follows a defined schema or format.
The shape can specify fields, types, required values, and allowed options. The application can then validate and use the result more reliably.
Think of it like filling out a form.
The form tells you which fields to complete and what each field means. A schema gives the model a similar shape, but the response still needs validation.
Input: a message containing a person's details
AI / System: extracts name, email, and phone fields
Output: a validated contact object
Input: an invoice document
AI / System: returns fields required by the finance system
Output: structured invoice data or an error
Structured output: follows a defined data shape.
Plain text: has no required machine-readable structure.
Structured output: checks shape and types.
Accuracy: checks whether the values are correct.
Structured output: is the result returned by the model.
Database storage: is what an application may do with that result.
Explore next
Structured outputs make model responses easier for software to validate and use.