Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/types/src/providers/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ export const anthropicModels = {
},
],
},
"claude-sonnet-4-5-1m": {
maxTokens: 64_000, // Overridden to 8k if `enableReasoningEffort` is false.
contextWindow: 1_000_000, // 1M context window
supportsImages: true,
supportsComputerUse: true,
supportsPromptCache: true,
inputPrice: 6.0, // $6 per million input tokens (1M context)
outputPrice: 22.5, // $22.50 per million output tokens (1M context)
cacheWritesPrice: 7.5, // $7.50 per million tokens (1M context)
cacheReadsPrice: 0.6, // $0.60 per million tokens (1M context)
supportsReasoningBudget: true,
},
"claude-sonnet-4-20250514": {
maxTokens: 64_000, // Overridden to 8k if `enableReasoningEffort` is false.
contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
Expand Down
8 changes: 8 additions & 0 deletions packages/types/src/providers/claude-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ export const claudeCodeModels = {
supportsReasoningBudget: false,
requiredReasoningBudget: false,
},
"claude-sonnet-4-5-1m": {
...anthropicModels["claude-sonnet-4-5-1m"],
supportsImages: false,
supportsPromptCache: true, // Claude Code does report cache tokens
supportsReasoningEffort: false,
supportsReasoningBudget: false,
requiredReasoningBudget: false,
},
"claude-sonnet-4-20250514": {
...anthropicModels["claude-sonnet-4-20250514"],
supportsImages: false,
Expand Down