OpenAI Pushes Schema-Bound JSON With Structured Outputs
Neutral OpenAI By What The Future Newsroom · August 7, 2024 · 4 min read

OpenAI Pushes Schema-Bound JSON With Structured Outputs

OpenAI announced Structured Outputs, an API feature designed to make model responses conform to developer-specified JSON schemas. The company also announced DevDay events in San Francisco, London and Singapore, with registration due by August 15.

OpenAI is trying to make one of the messier parts of AI development more predictable: getting models to return data in a structure that software can reliably use. Its new Structured Outputs feature is designed to make AI-generated content match JSON schemas chosen by developers.

“This is a routine developer tooling update that makes AI outputs easier to integrate without clearly increasing danger or societal dependency.”Why it scores Neutral

The announcement also ties into a broader developer push from the company. OpenAI will hold DevDay events this fall in San Francisco, London and Singapore, with sessions focused on API advancements, developer tools and community projects.

What Structured Outputs Is Built To Fix

Many AI applications start with unstructured input. A user might provide meeting notes, and a developer may want the model to identify tasks, due dates and owners in a consistent format. The difficulty is not only finding the right information, but returning it in a form that another system can process without extra cleanup.

Before a feature like Structured Outputs, developers often depended on careful prompting and repeated calls to get responses into the shape they needed. That approach can work, but it adds complexity. It also creates more room for a model to return a response that looks useful to a person but is awkward for software to parse.

Structured Outputs changes the center of gravity. Instead of asking the model to follow an implied format, developers provide a JSON schema, and OpenAI says the model is required to follow it. For teams building workflows around extracted data, that makes the schema the contract between the AI response and the rest of the application.

Why JSON Schema Compliance Matters

JSON is a common way for software systems to exchange structured information. When a model returns valid structured data, a developer can pass that response into downstream tools with less manual handling. When it does not, the application may need repair steps, retries or additional model queries.

The source article frames Structured Outputs around a familiar developer challenge: converting loose, human-written information into fields that software can trust. Meeting notes are one example, but the underlying issue is broader. Any workflow that expects a defined set of fields depends on the model respecting the expected shape of the answer.

OpenAI says it has also improved the models' ability to understand complex schemas. That detail matters because real application data is often more involved than a flat list of fields. Developers may need nested structures, specific field names and predictable relationships between pieces of information.

In an evaluation of compliance with complex JSON schemas, OpenAI says that its latest model achieves 100 percent reliability, compared to less than 40 percent for GPT-4-0613. The comparison is presented as evidence that the new approach is meant to reduce one of the practical failure points in AI application development.

How Developers Can Use It

Structured Outputs is available for all models that support function calling, including GPT-4, GPT-3.5 and all fine-tunes of these models. The source article also notes that developers can use the "response_format" parameter to specify a JSON schema for the response, a function available in the latest GPT-4 models.

That means the feature is positioned as an API capability rather than a standalone product. Developers define the output structure they want, and the model response is expected to align with that structure. Documentation is available on OpenAI's website.

For teams already using function calling, the practical appeal is straightforward. Structured Outputs may reduce the need for elaborate prompt instructions aimed only at formatting. It may also reduce the number of follow-up queries used to correct responses that contain the right information in the wrong shape.

The main benefit is not that the model can understand more content on its own. The benefit is that the model response can be made more compatible with the systems around it. In production software, that difference can be important because the output is not just read by people; it is often consumed by code.

DevDay Expands To Three Cities

Alongside Structured Outputs, OpenAI announced DevDay events in three cities this fall. The events are scheduled for San Francisco on October 1, London on October 30 and Singapore on November 21.

The program will include workshops, panel discussions, demos, networking opportunities and developer spotlights. According to the source article, the agenda will focus on API advancements, developer tools and community projects.

That focus lines up with the Structured Outputs announcement. OpenAI is not only releasing a feature for schema-bound responses; it is also giving developers venues to see API updates, discuss tools and present projects built around the platform.

Space is limited, and developers must register by August 15. The registration fee is $450, with scholarships available for those who need financial assistance.

The Bigger Developer Message

The core message is practical: OpenAI wants developers to have more control over how model output enters real software systems. Structured Outputs addresses the format problem directly by tying responses to developer-specified JSON schemas.

For developers, that shifts attention from coaxing the model into a format toward designing the schema the application actually needs. The quality of the schema still matters, but the feature is meant to make the model follow that schema more consistently.

The DevDay events add a second layer to the announcement. OpenAI is pairing an API reliability feature with in-person developer programming in San Francisco, London and Singapore. Together, the announcements point to a continued emphasis on making AI tools easier to integrate into working applications.

← Back to the wire

Read next