Amazon Bedrock Reasoning
Last updated March 7, 2026
Amazon Bedrock supports model creator-specific reasoning features for Anthropic models. Configuration depends on the model:
- Claude 4.6 (e.g.,
anthropic/claude-opus-4.6): Use adaptive reasoning withtype: 'adaptive'andmaxReasoningEffort - Older models (e.g.,
anthropic/claude-sonnet-4.5): Use manual reasoning withtype: 'enabled'andbudgetTokens(minimum: 1,024, maximum: 64,000)
anthropic/claude-opus-4.6anthropic/claude-sonnet-4.5
For Claude 4.6 models on Bedrock, use type: 'adaptive' with a maxReasoningEffort level:
bedrock-adaptive.ts
import { generateText } from 'ai';
const result = await generateText({
model: 'anthropic/claude-opus-4.6',
prompt: 'How many "r"s are in the word "strawberry"?',
providerOptions: {
bedrock: {
reasoningConfig: { type: 'adaptive', maxReasoningEffort: 'max' },
},
},
});
console.log(result.reasoning);
console.log(result.text);For older Anthropic models on Bedrock, use type: 'enabled' with a budgetTokens value:
bedrock-manual.ts
import { generateText } from 'ai';
const result = await generateText({
model: 'anthropic/claude-sonnet-4.5',
prompt: 'How many people will live in the world in 2040?',
providerOptions: {
bedrock: {
reasoningConfig: { type: 'enabled', budgetTokens: 2048 },
},
},
});
console.log(result.reasoning);
console.log(result.text);| Parameter | Type | Description |
|---|---|---|
type | string | Set to 'adaptive' for Claude 4.6 models |
maxReasoningEffort | string | Effort level: 'low', 'medium', 'high', or 'max' |
| Parameter | Type | Description |
|---|---|---|
type | string | Set to 'enabled' to enable reasoning |
budgetTokens | number | Token budget for reasoning. Minimum: 1,024. Maximum: 64,000 |
Was this helpful?