Skip to main content

HTTP status

400 invalid_request_error

Typical cause

The request combines tools with response_format (json_object or json_schema), but the selected model does not support using both together.

Resolution

Remove response_format from the request, or choose a model that supports tools with structured output (e.g., GPT-4o, Claude 4.5+).