Learn AI · Level 3 · Tech and tools · step 11 of 20 · word 4 of 8

What is structured output in AI?

Structured output means an AI model replies in a fixed, machine-readable format, usually JSON with set fields, so other software can use the answer directly.

Added 5 Nov 2026

In plain English

People read prose; programs need data in a predictable shape. With structured output, a developer describes the fields they want, such as name, date and amount, and the model fills them in. Several model APIs, including Claude’s, offer a mode that makes the reply match the format, apart from rare cases such as a refusal or a reply that gets cut off.

An example

An app reads emailed invoices. Instead of a paragraph, the model returns {"supplier": "Acme", "total": 240, "due": "2026-12-01"}, and the accounts system files it automatically.

What to watch out for

A correct format doesn’t mean correct content. The model can still put the wrong number in the right field, so check the values, not just the shape.

Learn AI path · Level 3 · Tech and tools · step 11 of 20

Next wordMCP (Model Context Protocol) →See all of level 3

← All terms