PassDrill Free practice questions with explanations that actually teach.

AI-ENGINEERING · prompting · Q010 · medium

OpenAI's documentation distinguishes "Structured Outputs" from the older "JSON mode" feature of its Chat Completions / Responses APIs. According to that documentation, what is the key difference between the two?

  1. Both guarantee syntactically valid JSON, but only Structured Outputs also guarantees the output conforms to the caller's supplied JSON Schema (for example, required keys and enum values); JSON mode guarantees valid JSON syntax only
  2. JSON mode guarantees schema conformance, while Structured Outputs only guarantees syntactically valid JSON without any schema checking
  3. Structured Outputs can only be used with image inputs, while JSON mode is restricted to text-only prompts
  4. The two features are functionally identical; "Structured Outputs" is simply a rebranding of "JSON mode" with no change in behavior