---
id: "openai-structured-outputs"
title: "Structured model outputs"
creator: "OpenAI"
url: "https://developers.openai.com/api/docs/guides/structured-outputs"
level: "intermediate"
category: "prompting"
models: ["gpt"]
source_date: null
date_added: "2026-10-18"
---

[Prompting](/prompting/index.md)

# Structured model outputs

by OpenAI

[Read the original →](https://developers.openai.com/api/docs/guides/structured-outputs)

How to get schema-valid JSON instead of hoping the model formats it right.

The guide describes requesting outputs that follow an explicit structure through OpenAI's API. Schema compliance still needs to be paired with checks that the returned information is correct.

Level: [Intermediate](/levels/index.md#intermediate)
Models: gpt
Category: [Prompting](/prompting/index.md)
Tags: [structured-output](/tags/structured-output/index.md)
Source date: date not stated
Added: 2026-10-18
Last verified: 2026-10-18
Status: ok

Summary in our own words. All rights with the original creator. Correction or removal: DM on X.
