Use Claude extended thinking for complex reasoning tasks
Official documentation: https://docs.anthropic.com/en/docs/build-with-claude/extended-thinkingEnable extended thinking mode for Claude models to perform complex reasoning tasks.
POST /v1/messages
Chat Compatible Format: POST /v1/chat/completions
claude-sonnet-4-20250514type (string): Set to "enabled" to activate thinkingbudget_tokens (integer): Maximum tokens for the thinking process