Skip to main content

HTTP status

400 invalid_request_error

Typical cause

The request sets response_format: { type: "json_schema", ... } but the selected model does not support structured output with a JSON schema.

Resolution

Remove the structured output format, use JSON mode instead if the model supports it, or choose a model that supports structured output.