Skip to main content

HTTP status

400 invalid_request_error

Typical cause

The request enables reasoning or extended thinking (thinking: { type: "enabled" }) but the selected model does not support it.

Resolution

Remove the thinking/reasoning parameter or choose a model that supports extended thinking.