HTTP status
400 invalid_request_error
Typical cause
The request combinestools with response_format (json_object or json_schema), but the selected model does not support using both together.
Resolution
Removeresponse_format from the request, or choose a model that supports tools with structured output (e.g., GPT-4o, Claude 4.5+).