Skip to content

Commit 14b9b2b

Browse files
committed
chore: update anthropic models and prices
1 parent c3c61d0 commit 14b9b2b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11
import { createModelSpec } from './helpers'
22

3-
// source: https://docs.anthropic.com/en/docs/about-claude/models
3+
// source: https://platform.claude.com/docs/en/about-claude/pricing
44
export const ANTHROPIC_MODELS = createModelSpec({
55
defaultModel: 'claude-sonnet-4-0',
66
models: {
7+
// Claude 4.5 models
8+
'claude-opus-4-5': { cost: { input: 5.0, output: 25.0 } },
79
'claude-sonnet-4-5': { cost: { input: 3.0, output: 15.0 } },
10+
'claude-haiku-4-5': { cost: { input: 1.0, output: 5.0 } },
811

12+
// Claude 4.1 models
913
'claude-opus-4-1': { cost: { input: 15.0, output: 75.0 } },
1014

11-
'claude-sonnet-4-0': { cost: { input: 3.0, output: 15.0 } },
12-
15+
// Claude 4 models
1316
'claude-opus-4-0': { cost: { input: 15.0, output: 75.0 } },
17+
'claude-sonnet-4-0': { cost: { input: 3.0, output: 15.0 } },
1418

19+
// Claude 3.7 models (deprecated)
1520
'claude-3-7-sonnet-latest': { cost: { input: 3.0, output: 15.0 } },
1621

22+
// Claude 3.5 models
1723
'claude-3-5-sonnet-latest': { cost: { input: 3.0, output: 15.0 } },
18-
1924
'claude-3-5-haiku-latest': { cost: { input: 0.8, output: 4.0 } },
25+
26+
// Claude 3 models (deprecated)
27+
'claude-opus-3': { cost: { input: 15.0, output: 75.0 } },
28+
'claude-haiku-3': { cost: { input: 0.25, output: 1.25 } },
2029
},
2130
})

0 commit comments

Comments
 (0)