Skip to content

Structured Output

Output Terstruktur

Making the model answer in a fixed shape a program can read.

Structured output is constraining the model to answer in a defined shape: a JSON object matching a schema, a set of enum values, a tool call. The point is that a program can consume the result without parsing prose.

This is the single most effective answer to the non-determinism problem. The prose can vary, but the structure holds, and the structure is what the code depends on.

Modern APIs enforce the schema rather than merely describing it, which means a malformed response is rare but not impossible. Always validate on your side anyway, because a schema that is guaranteed by the provider is still a contract, and contracts get broken during incidents.

Related terms

Want this working inside your team?

It starts with one conversation about your workflow.

Ask on WhatsApp