Technique Aktualisiert 2026-04

Structured Output

Definition

Structured Output forces an LLM to respond in a predefined structured format (JSON, XML, table) instead of free text.

Häufig gestellte Fragen

Why force structured format?
To integrate AI responses into code. Well-formed JSON can be parsed automatically, unlike free text which requires approximate parsing.
Which LLMs support Structured Output?
GPT-4o (native JSON mode), Claude (XML and JSON), Gemini and Mistral. Most modern APIs support guaranteed JSON mode.