Introducing Structured Outputs in the API
Summary
OpenAI introduces Structured Outputs in their API, enabling developers to reliably get valid JSON schema outputs from language models, improving integration with downstream systems and reducing parsing errors.
View Cached Full Text
Cached at: 04/20/26, 02:47 PM
Similar Articles
Structured Outputs are not as portable as they look
The author shares findings on the lack of portability for JSON Schema structured outputs across AI providers like OpenAI, Gemini, and Anthropic, highlighting inconsistencies in constraint enforcement and offering practical advice for robust integration.
Structured output reliability with LLMs — 3-month production learnings
The article shares production learnings for reliably generating structured JSON output from LLMs, covering methods like JSON mode, schema validation, and retry loops, achieving 99.5% validity.
Function calling and other API updates
OpenAI announces function calling capability for GPT-4 and GPT-3.5-turbo models, allowing developers to describe functions via JSON Schema and have models intelligently choose to output structured JSON for external tool integration. The update also extends support for older model versions until June 2024 and improves model evaluation methodology.
OpenAI o1 and new tools for developers
OpenAI releases o1 model to API with production-ready features including function calling, structured outputs, vision capabilities, and 60% lower latency than o1-preview. Additional developer tools include Realtime API improvements, Preference Fine-Tuning, and new Go and Java SDKs.
dottxt-ai/outlines
Outlines is a Python library that guarantees structured outputs (JSON, Pydantic models, etc.) from LLMs during generation, working across multiple model providers to eliminate parsing errors.