Extended Thinking
APIDefinition
A Claude capability that allows the model to reason through complex problems step-by-step in a dedicated thinking block before producing its final response. Controlled via the 'thinking' parameter with a 'budget_tokens' limit. Thinking tokens are billed but improve accuracy on hard reasoning tasks.
Example Usage
Enable extended thinking for multi-step math proofs or complex code architecture decisions where intermediate reasoning improves final output.