---
title: "Structured output"
url: https://eldan.ai/topics/structured-output
canonical: https://eldan.ai/topics/structured-output
locale: en
language: en
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Structured output.\" Eldan.ai, updated 23 November 2026. https://eldan.ai/topics/structured-output."
---

# Structured output

## Writing

- **[Structured output is a contract, not a prompt](https://eldan.ai/writing/structured-output-is-a-contract.md)**: Asking the model nicely for JSON is a hope, not an interface. Write the schema first, validate every response in code, retry once with the validation error, version the schema, and track the parse rate as an eval metric.

## Courses

- [LLM Apps in Production](https://eldan.ai/workshops/llm-apps-in-production.md): Calls, structure, streaming and cost: the layer every AI feature sits on.

## AI engineering glossary

- [Structured output](https://eldan.ai/glossary/structured-output.md): Structured output means getting a model to return data in a fixed shape, usually JSON that matches a schema, instead of free prose. Some providers can constrain generation to a schema. In every case you should still validate the result in code, because a valid shape does not mean correct values.
