Skip to main content

HTTP status

400 invalid_request_error

Typical cause

The request sets response_format: { type: "json_object" } but the selected model does not support JSON mode output.

Resolution

Remove the response_format parameter or choose a model that supports JSON mode.