Structured Outputs: JSON Mode vs Schemas in LLM APIs
AI-generated summary Structured outputs are an LLM API feature that forces a model response to conform to a JSON Schema supplied by the developer. OpenAI, Anthropic, and Google implement structured outputs through schema compilation to restrict token generation and prevent syntax errors.