Reference · Glossary

Structured output

Forcing the model to reply in a **machine-readable shape** — JSON, XML, or a fixed schema — instead of free-form prose.

When to use

APIs, form filling, extracting fields from text, feeding results into databases or downstream code.

When not to

Creative writing or open-ended chat where rigid schemas fight the task.

Example

{
  "sentiment": "positive",
  "topics": ["shipping", "refund"],
  "urgency": 3
}