budget_tokens
APIDefinition
A parameter within the extended thinking configuration that sets the maximum tokens Claude can use for its internal reasoning process. Higher budgets allow more thorough reasoning but increase cost and latency. Must be at least 1024.
Example Usage
Set budget_tokens: 10000 for complex reasoning tasks; reduce to 2000 for simpler problems to balance quality and cost.