Skip to main content
Structured Output is similar to JSON mode but provides the added benefit of ensuring that the model’s response adheres to the schema you specify. We recommend using structured output instead of JSON mode when possible. To enable structured output, specify json_schema as the response_format type in the request: