# OpenAI adds Structure Outputs, a feature to ensure model-generated outputs match JSON Schemas, to its API and offers lower pricing for new GPT-4o model versions

OpenAI introduces Structured Outputs for JSON Schema-conformant API responses and lowers pricing for new GPT-4o model versions.

Record as of 7 August 2024. Labels written by Codex, for review. JSON: <https://texxr.com/v3/article/872475.json>

## OpenAI adds Structure Outputs, a feature to ensure model-generated outputs match JSON Schemas, to its API and offers lower pricing for new GPT-4o model versions

*as of 7 August 2024; judged by one reader, needs review*

**In one line:** The publisher’s headline and the coverage around it.

OpenAI · Michelle Pokrass · [7 August 2024](/2024/08/07) · [Read original](https://openai.com/index/introducing-structured-outputs-in-the-api/)

We are introducing [Structured Outputs](/search?q=%40%22Structured+Outputs%22) in the [API](/entity/api)—model outputs now reliably adhere to developer-supplied [JSON Schemas](/search?q=%40%22JSON+Schemas%22).

**Context**

OpenAI had already moved its developer platform toward more programmatic model use through [function calling](/841062) and the broader [general availability of the GPT-4 API](/841854). Schema-constrained responses extend that path by making model output easier for software, rather than a human, to consume.

The change also precedes [GPT-4o fine-tuning for domain-specific customization](/873459), pairing control over a model’s output format with later control over its behavior. Lower-priced GPT-4o versions make that more operationally viable for API builders.

*First-order effects*

- Developers can request [JSON](/entity/json) Schema-conformant responses, reducing the parsing, validation, and retry work required to place model results into structured application workflows.
- Lower pricing for new GPT-4o versions directly improves the economics for customers running those API models, especially where structured responses are generated repeatedly.

*Second-order effects*

- Application teams can shift more workflows from free-form text handling to schema-defined integrations, raising the value of reliable extraction, tool orchestration, and downstream automation.
- Competing model APIs face pressure to combine output reliability with lower [inference costs](/topics/inference-cost); price comparisons increasingly hinge on the cost of a usable, machine-actionable result rather than raw generation alone.

*Third-order effects*

- If schema adherence becomes standard across leading APIs, the differentiator shifts from merely producing fluent text to providing a dependable runtime for software operations, with evaluation centered on failure rates and integration overhead.
- This points toward AI procurement organized around cost per completed task: cheaper tokens matter, but durable adoption depends on whether outputs can safely enter existing systems with minimal human cleanup.

**The trend:** Generative-AI APIs are evolving from text-generation endpoints into governed, cost-optimized components for production software workflows.

Related: [Operational AI assurance](/concepts#operational-ai-assurance) · [AI cost per useful task](/concepts#ai-cost-per-useful-task) · [JSON Schemas](/search?q=%40%22JSON+Schemas%22) · [OpenAI GPT-4 API general availability](/841854) · [OpenAI GPT-4o fine-tuning](/873459)

**Entities**

- [API](/entity/api)
- [JSON](/entity/json)
- [Structure Outputs](/search?q=%40%22Structure+Outputs%22)
- [JSON Schemas](/search?q=%40%22JSON+Schemas%22)
- [Structured Outputs](/search?q=%40%22Structured+Outputs%22)

**Tags**

- [Closed-Weight Models](/tag/closed-weight-models)

**Related coverage**

- [OpenAI cuts GPT-4o prices, launches Structured Outputs amidst price war with Google](https://www.neowin.net/news/openai-cuts-gpt-4o-prices-launches-structured-outputs-amidst-price-war-with-google/) · Neowin · Pradeep Viswanathan
- [View article](https://analyticsindiamag.com/ai-insights-analysis/why-prolog-might-be-the-answer-to-better-ai-reasoning/) · AIM
- [OpenAI cures structured data headache for developers](https://www.developer-tech.com/news/openai-cures-structured-data-headache-developers/) · Developer Tech News · Ryan Daws
- [OpenAI Enhances API with Structured Outputs for Developers](https://winbuzzer.com/2024/08/07/openai-enhances-api-with-structured-outputs-for-developers-xcxwbn/) · WinBuzzer · Luke Jones
- [OpenAI launches Structured Outputs and announces DevDay events](https://the-decoder.com/openai-launches-structured-outputs-and-announces-devday-events/) · The Decoder · Matthias Bastian
- [OpenAI: Introducing Structured Outputs in the API.  OpenAI have offered structured outputs …](https://simonwillison.net/2024/Aug/6/openai-structured-outputs/) · Simon Willison's Weblog · Simon Willison
- [OpenAI responds to ‘very popular demand’ with launch of key LLM safety feature for developers](https://siliconangle.com/2024/08/06/openai-announces-key-llm-safety-feature-response-popular-demand-developers/) · SiliconANGLE · Mike Wheatley
- [OpenAI Launches Structured Outputs, Slashes Prices for GPT-4o](https://www.maginative.com/article/openai-launches-structured-outputs-slashes-prices-for-gpt-4o/) · Maginative · Chris McKay
- [OpenAI has finally released the No. 1 feature developers have been desperate for](https://venturebeat.com/ai/openai-has-finally-released-the-no-1-feature-developers-have-been-desperate-for/) · VentureBeat · Taryn Plumb
- [Been waiting for this one for a while.  Coercing models to give you structured outputs via function calls / reflection always felt a bit hacky …](https://www.linkedin.com/feed/update/urn:li:share:7226654901005639682) · David Zhang
- [We are introducing Structured Outputs in the API—model outputs now reliably adhere to developer-supplied JSON Schemas. …](https://www.linkedin.com/feed/update/urn:li:share:7226709286599475201) · Shyamal Hitesh Anadkat
- [@OpenAI releases structured outputs for their API, giving developers tight control over JSON responses during function calling and regular calls. …](https://www.linkedin.com/feed/update/urn:li:share:7226674475851821056) · Morten Rand-Hendriksen
- [Structured Outputs in the API](https://news.ycombinator.com/item?id=41173223) · Hacker News
- [Introducing Structured Outputs in the API](https://lobste.rs/s/ymdoxp/introducing_structured_outputs_api) · Lobsters

**Discussion**

- @ericflo Eric Florenzano threads · Am I the only one not excited about structured outputs?  I was super bullish on them 6 months to a year ago, but have since found 1) it tends to degrade overall token quality in non-obvious ways, and 2) these days you can achieve perfect JSON output following with prompting alone…
- @openaidevs @openaidevs x · Our newest GPT-4o model is 50% cheaper for input tokens and 33% cheaper for output tokens. It also supports Structured Outputs, which ensures model outputs exactly match your JSON Schemas. [image]
- @romainhuet Romain Huet x · Introducing Structured Outputs! A huge leap beyond JSON mode, solving a major challenge for developers. If your app relies on a specific JSON format to drive the UI, our models now match your schema—every time. No more missing keys or hallucinated enums! https://openai.com/...
- @altryne Alex Volkov x · New GPT4o pricing is now 50% cheaper on inputs and 33% cheaper on outputs!
- @simonw Simon Willison x · This is especially notable because GPT-4o-mini is priced the SAME for image inputs as regular GPT-4o - so I think this released-today “gpt-4o-2024-08-06” model is now OpenAI's cheapest model for image inputs by quite a wide margin
- @michpokrass Michelle Pokrass x · excited to announce Structured Outputs — our newest feature in the api. model outputs will now reliably follow your exact json schemas, matching the parameters and types accurately. schema reliability is now 100% with this feature enabled, up from 86% on our past gpt-4o model
- @emollick Ethan Mollick x · On one hand, OpenAI just made it so that its models can be forced to output in JSON, which makes it much easier for developers to use LLMs in their programs. On the other hand, forcing LLMs to answer in JSON lowers their reasoning ability (but helps classification)
- @swyx @swyx x · holy shit @minimaxir chain of thought as structured output is an officially recommended pattern i need to rewrite -everything- to use this [image]
- @deedydas Deedy x · Structured output from OpenAI is a super underrated technical launch. It's finally going to enable consistent dynamic UIs. To demo it, I used JSON Forms to build a little app where you describe a form that renders in ~3s — sign in, airline booking, hospital and legal intake! [vid…
- @tobi Tobi Lutke x · big deal, that. We've used structured outputs in our llm usage very successfully over the last year
- @simonw Simon Willison x · I've been collecting all sorts of extra information about the new OpenAI structured outputs feature throughout the day I think my post here may now be the definitive guide to details you may have missed https://simonwillison.net/...
- @simonw Simon Willison x · Hidden at the bottom of this announcement: “By switching to the new gpt-4o-2024-08-06, developers save 50% on inputs ($2.50/1M input tokens) and 33% on outputs ($10.00/1M output tokens) compared to gpt-4o-2024-05-13.” That's a pretty substantial price decrease!
- @jxnlco Jason Liu x · They solved instructor. We need a new mode again.
- @simonw Simon Willison x · Confirmation from OpenAI's Jeff Harris that image input is indeed half price now, and the calculator needs to be updated https://news.ycombinator.com/ ...
- @sama Sam Altman x · by very popular demand, structured outputs in the API: https://openai.com/...
- r/singularity r reddit · OpenAI: Introducing Structured Outputs in the API
- r/LocalLLaMA r reddit · Did OpenAI just kill llama.cpp's GBNF grammars (used for guaranteed structured outputs) without acknowledging that their idea came from open-source? …

**Relationships**

- [OpenAI](/entity/openai) launch [Structured Outputs](/search?q=%40%22Structured+Outputs%22), [API](/entity/api), [JSON Schemas](/search?q=%40%22JSON+Schemas%22) · confirmed · OpenAI introduces Structured Outputs in its API to make model-generated outputs adhere to developer-supplied JSON Schemas.
- [OpenAI](/entity/openai) financial [GPT-4o model versions](/search?q=%40%22GPT-4o+model+versions%22) · confirmed · OpenAI offers lower pricing for new GPT-4o model versions.

**Similar stories**

- [OpenAI adds o1 to its API, but only for certain developers to start, announces new versions of GPT-4o and GPT-4o mini as part of its Realtime API, and more](https://texxr.com/880468/openai-adds-o1-to-api-updates-gpt-4o) · TechCrunch, 18 December 2024 · [publisher](<https://techcrunch.com/2024/12/17/openai-brings-its-o1-reasoning-model-to-its-api-for-certain-developers/>) · 64%
- [OpenAI launches o3, its most advanced reasoning model, and o4-mini, a lower cost alternative that still delivers “impressive results”, for ChatGPT paid users](https://texxr.com/884724/openai-launches-o3-and-o4-mini) · Engadget, 17 April 2025 · [publisher](<https://www.engadget.com/ai/openais-new-o3-and-o4-mini-models-are-all-about-thinking-with-images-170043465.html>) · 62%
- [OpenAI releases its GPT-4 API in general availability, giving all paying developers access and planning to give new developers access by the end of July 2023](https://texxr.com/841854/openai-makes-gpt-4-api-generally-available) · TechCrunch, 7 July 2023 · [publisher](<https://techcrunch.com/2023/07/06/openai-makes-gpt-4-generally-available/>) · 62%
- [OpenAI releases GPT‑4.1, GPT‑4.1 mini, and GPT‑4.1 nano, which excel at coding, instruction following, and long context understanding, available via its API](https://texxr.com/884642/openai-launches-gpt-4point1-model-family) · TechCrunch, 15 April 2025 · [publisher](<https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/>) · 61%
- [OpenAI adds GPT-5.1 to its API, featuring a “no reasoning” mode and extended prompt caching with up to 24-hour retention for faster responses at a lower cost](https://texxr.com/892530/openai-adds-gpt-5-1-to-api) · OpenAI, 14 November 2025 · [publisher](<https://openai.com/index/gpt-5-1-for-developers>) · 60%
- [OpenAI launches GPT-4.5, its “most knowledgeable model yet” in research preview, initially warning it's not a frontier model and may perform below o1 or o3-mini](https://texxr.com/882964/openai-launches-gpt-4point5-research-preview) · The Verge, 28 February 2025 · [publisher](<https://www.theverge.com/news/620021/openai-gpt-4-5-orion-ai-model-release>) · 60%
- [OpenAI releases a set of prompts designed to be used with its open-weight safety model gpt-oss-safeguard that lets developers make their apps safer for teens](https://texxr.com/1165823/openai-releases-prompts-for-gpt-oss-safeguard-teen-safety) · TechCrunch, 24 March 2026 · [publisher](<https://techcrunch.com/2026/03/24/openai-adds-open-source-tools-to-help-developers-build-for-teen-safety/>) · 59%
- [OpenAI releases new GPT-3.5-turbo and GPT-4 versions that include a new “function calling” feature, and reduces the pricing of the original GPT-3.5-turbo by 25%](https://texxr.com/841062/openai-updates-gpt35-and-gpt4-with-function-calling) · TechCrunch, 14 June 2023 · [publisher](<https://techcrunch.com/2023/06/13/openai-intros-new-generative-text-features-while-reducing-pricing/>) · 59%
- [OpenAI's o1 models aren't as simple as the next step up from GPT-4o as they introduce major cost and performance trade-offs in exchange for improved “reasoning”](https://texxr.com/875067/openai-o1-introduces-cost-performance-reasoning-tradeoffs) · Simon Willison's Weblog, 13 September 2024 · [publisher](<https://simonwillison.net/2024/Sep/12/openai-o1/>) · 59%
- [OpenAI cuts GPT-5.6 Sol's API and credit prices by over 20% for the next three months, to $4/1M input tokens and $20/1M output tokens](https://texxr.com/1175422/openai-cuts-gpt-56-sol-prices-20) · Reuters, 22 August 2026 · [publisher](<https://www.reuters.com/technology/openai-cuts-developer-pricing-frontier-gpt-56-sol-model-by-more-than-20-2026-08-21/>) · 59%
- [OpenAI debuts o3-pro for ChatGPT Pro and Team users and in its API, costing $20/1M input and $80/1M output tokens; Enterprise and Edu will get access next week](https://texxr.com/886716/openai-debuts-o3-pro-pricing-for-pros) · TechCrunch, 11 June 2025 · [publisher](<https://techcrunch.com/2025/06/10/openai-releases-o3-pro-a-souped-up-version-of-its-o3-ai-reasoning-model/>) · 59%
- [OpenAI launches o1-pro, which uses more compute than o1 for “consistently better responses”, to select developers for $150/1M input and $600/1M output tokens](https://texxr.com/883701/openai-launches-o1-pro-for-select-developers) · TechCrunch, 20 March 2025 · [publisher](<https://techcrunch.com/2025/03/19/openais-o1-pro-is-its-most-expensive-model-yet/>) · 58%
- [OpenAI announces 25% to 50% lower GPT-3.5 Turbo prices, a GPT-4 Turbo preview model to reduce cases of “laziness”, improved text embedding models, and more](https://texxr.com/848711/openai-lowers-gpt35-prices-previews-gpt4-turbo) · TechCrunch, 26 January 2024 · [publisher](<https://techcrunch.com/2024/01/25/openai-drops-prices-and-fixes-lazy-gpt-4-that-refused-to-work/>) · 57%
- [OpenAI's GPT-4o mini is its first model to use a safety technique called “instruction hierarchy” to prevent misuse and unauthorized instructions](https://texxr.com/1155322/openai-rolls-out-gpt-4o-mini-with-safety) · The Verge, 20 July 2024 · [publisher](<https://www.theverge.com/2024/7/19/24201414/openai-chatgpt-gpt-4o-prompt-injection-instruction-hierarchy>) · 57%
- [OpenAI launches GPT-5.4, saying it is its “most capable and efficient frontier model for professional work” and its first with native computer use capabilities](https://texxr.com/1164686/openai-launches-gpt-5-4-with-computer-use) · The Verge, 6 March 2026 · [publisher](<https://www.theverge.com/ai-artificial-intelligence/889926/openai-gpt-5-4-model-release-ai-agents>) · 57%
- [OpenAI announces an 80% price drop for its o3 model and a “flex” mode for synchronous processing that charges $5 for input and $20 for output per million tokens](https://texxr.com/886718/openai-slashes-o3-pricing-80percent) · VentureBeat, 11 June 2025 · [publisher](<https://venturebeat.com/ai/openai-announces-80-price-drop-for-o3-its-most-powerful-reasoning-model/>) · 57%
- [OpenAI reveals details of GPT-4o's safety testing, including concerns that its anthropomorphic voice may make some users emotionally attached to their chatbot](https://texxr.com/872553/openai-details-gpt-4o-safety-testing-concerns) · Wired, 9 August 2024 · [publisher](<https://www.wired.com/story/openai-voice-mode-emotional-attachment/>) · 56%
- [OpenAI's o3-mini costs $1.10 per 1M input tokens and $4.40 per 1M output tokens, cheaper than GPT-4o, which costs $2.50 and $10, and o1, which costs $15 and $60](https://texxr.com/881982/o3-mini-pricing-compares-cheaper-than-gpt4o) · Simon Willison's Weblog, 1 February 2025 · [publisher](<https://simonwillison.net/2025/Jan/31/o3-mini/>) · 56%
- [OpenAI prices GPT-6 Astra at $10/1M input tokens and $50/1M output tokens, matching Anthropic's pricing for Claude Fable 5.1 and Claude Mythos 5.1](https://texxr.com/1262929/openai-prices-gpt-6-astra) · The Deep View, 4 September 2026 · [publisher](<https://www.thedeepview.com/articles/openai-s-astra-leans-into-agentic-tasks-and-safety>) · 56%
- [OpenAI prices GPT-6.1 Sol at $2/1M input and $10/1M output tokens, the same as GPT-6 Sol and Claude Sonnet 5.5, and says it performs well on safety tests](https://texxr.com/1295928/openai-prices-gpt-6-1-sol) · The Decoder, 29 September 2026 · [publisher](<https://the-decoder.com/gpt-6-1-sol-comes-close-to-astra-at-a-fifth-of-the-price/>) · 56%

- **Judged:** Scribe wrote the corpus context.

## Sources

### The TEXXR article archive

*Section `articles`, as of 7 August 2024; judged by one reader, needs review*

The archive supplies the article and its links. Similar stories use the saved text vectors.

**Method**

- The archive holds the headline, publisher excerpt, coverage and discussion.
- Relationships use the article ID. Similar stories use the archive’s stored text vectors.

**Limits**

- Some articles have no Scribe context, recorded tags or relationships.
