response_format errors usually mean the request JSON parses, but the structured-output schema does not match the API shape.
Symptoms
- The error mentions response_format or json_schema.
- Plain text responses work but structured output fails.
- A schema copied from application validation does not work in the API request.
Likely causes
- The schema object is wrapped incorrectly.
- Required fields or additionalProperties are inconsistent.
- Unsupported JSON Schema features are included.
Fix steps
- Start with a small object schema and add fields gradually.
- Check that required fields match properties.
- Remove validation features the API does not support.
- Use the OpenAI API Request Checker for static shape warnings.
Verify the fix
- Send a minimal structured-output request.
- Validate the request body as JSON first.
- Compare response_format shape against official API documentation.
FAQ
Is this a JSON syntax problem?
Not usually. The body can be valid JSON while response_format is semantically wrong.
Can I reuse any app schema?
Not always. Simplify it for API structured output and test incrementally.
Related tools and guides
Last updated: May 18, 2026