Skip to main content
Code: response_format_too_deep HTTP status: 400 Type: invalid_request

When it fires

The JSON schema in response_format.json_schema nests deeper than the platform’s parser will accept. Distinct from response_format_too_large (which is byte-size) — this is about structural depth.

How to recover

Flatten nested object definitions by pulling them into $defs and referencing them with $ref. Each $ref resets the depth counter from the reference site, so deeply nested workflows become representable as shallow references to shared definitions.