Introducing Structured Outputs in the API

OpenAI Blog Products

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.

We are introducing Structured Outputs in the API—model outputs now reliably adhere to developer-supplied JSON Schemas.
Original Article
View Cached Full Text

Cached at: 04/20/26, 02:47 PM

# Introducing Structured Outputs in the API Source: [https://openai.com/index/introducing-structured-outputs-in-the-api/](https://openai.com/index/introducing-structured-outputs-in-the-api/) `` ``` 1{2"type": "div",3"label": "",4"children": [5{6"type": "header",7"label": "",8"children": [9{10"type": "div",11"label": "Green Thumb Gardening",12"children": [],13"attributes": [{ "name": "className", "value": "site-title" }]14},15{16"type": "div",17"label": "Bringing Life to Your Garden",18"children": [],19"attributes": [{ "name": "className", "value": "site-tagline" }]20}21],22"attributes": [{ "name": "className", "value": "header" }]23},24{25"type": "section",26"label": "",27"children": [28{29"type": "div",30"label": "",31"children": [32{33"type": "div",34"label": "About Us",35"children": [36{37"type": "div",38"label": "At Green Thumb Gardening, we specialize in transforming your outdoor spaces into beautiful, thriving gardens. Our team has decades of experience in horticulture and landscape design.",39"children": [],40"attributes": [41{ "name": "className", "value": "about-description" }42]43}44],45"attributes": [{ "name": "className", "value": "about-section" }]46}47],48"attributes": [{ "name": "className", "value": "content" }]49}50],51"attributes": [{ "name": "className", "value": "about-container" }]52},53{54"type": "section",55"label": "",56"children": [57{58"type": "div",59"label": "",60"children": [61{62"type": "div",63"label": "Our Services",64"children": [65{66"type": "div",67"label": "Garden Design",68"children": [],69"attributes": [70{ "name": "className", "value": "service-item" }71]72},73{74"type": "div",75"label": "Plant Care & Maintenance",76"children": [],77"attributes": [78{ "name": "className", "value": "service-item" }79]80},81{82"type": "div",83"label": "Seasonal Cleanup",84"children": [],85"attributes": [86{ "name": "className", "value": "service-item" }87]88},89{90"type": "div",91"label": "Custom Landscaping",92"children": [],93"attributes": [94{ "name": "className", "value": "service-item" }95]96}97],98"attributes": [{ "name": "className", "value": "services-list" }]99}100],101"attributes": [{ "name": "className", "value": "content" }]102}103],104"attributes": [{ "name": "className", "value": "services-container" }]105}106],107"attributes": [{ "name": "className", "value": "landing-page" }]108}109 ```

Similar Articles

Structured Outputs are not as portable as they look

Reddit r/AI_Agents

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.

Function calling and other API updates

OpenAI Blog

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 Blog

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

GitHub Trending (daily)

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.