Skip to content

Commit ce2610a

Browse files
update API pricing for Anthropic, as of 2025-01-02 (RooCodeInc#1121)
1 parent 71f4e85 commit ce2610a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/shared/api.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface ModelInfo {
5757
}
5858

5959
// Anthropic
60-
// https://docs.anthropic.com/en/docs/about-claude/models
60+
// https://docs.anthropic.com/en/docs/about-claude/models // prices updated 2025-01-02
6161
export type AnthropicModelId = keyof typeof anthropicModels
6262
export const anthropicDefaultModelId: AnthropicModelId = "claude-3-5-sonnet-20241022"
6363
export const anthropicModels = {
@@ -77,10 +77,10 @@ export const anthropicModels = {
7777
contextWindow: 200_000,
7878
supportsImages: false,
7979
supportsPromptCache: true,
80-
inputPrice: 1.0,
81-
outputPrice: 5.0,
82-
cacheWritesPrice: 1.25,
83-
cacheReadsPrice: 0.1,
80+
inputPrice: 0.8,
81+
outputPrice: 4.0,
82+
cacheWritesPrice: 1.0,
83+
cacheReadsPrice: 0.08,
8484
},
8585
"claude-3-opus-20240229": {
8686
maxTokens: 4096,

0 commit comments

Comments
 (0)