Type Safe
Back to Model
ModelOpenAIOfficialVerified

OpenAI Structured Outputs

Return model responses that conform to a supplied JSON Schema.

Use strict response schemas when downstream TypeScript code needs predictable fields, enums, and nested objects.

Provider
OpenAI
Reviewed
September 18, 2026
Project status
Official
Verification
Verified
Categories
development, data
Compatibility
TypeScript, JSON Schema, Zod

Inputs

  • ✓JSON Schema
  • ✓Prompt
  • ✓Model configuration

Outputs

  • ✓Schema-conforming object
  • ✓Refusal state

Interface

  • ✓structured-output

Decision tasks

  • ✓Classify
  • ✓Choose
  • ✓Score
  • ✓Route
  • ✓Extract

Verified model facts

This field has not been verified from a reliable source yet. Check the linked sources or submit a correction with evidence.

Implementation guidance

Keep the declared inputs and outputs visible in code review. Validate every model response before it reaches a database, API, or customer-facing action.

Related resources