VercelVercel
Menu

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 with type: 'adaptive' and maxReasoningEffort
  • Older models (e.g., anthropic/claude-sonnet-4.5): Use manual reasoning with type: 'enabled' and budgetTokens (minimum: 1,024, maximum: 64,000)
  • anthropic/claude-opus-4.6
  • anthropic/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);
ParameterTypeDescription
typestringSet to 'adaptive' for Claude 4.6 models
maxReasoningEffortstringEffort level: 'low', 'medium', 'high', or 'max'
ParameterTypeDescription
typestringSet to 'enabled' to enable reasoning
budgetTokensnumberToken budget for reasoning. Minimum: 1,024. Maximum: 64,000

Was this helpful?

supported.