Prompting & Inference

Structured Output

Making a model return data in a strict machine-readable format like JSON, so software can use the answer directly.

Structured output constrains a model to respond in a defined shape, most often JSON matching a schema, instead of free-form prose. That lets the output flow straight into other code without fragile parsing, which is essential for tools, agents, and automated pipelines. Many model APIs now enforce the format so the result is always valid.