Skip to content

Commit af101b4

Browse files
committed
feat(anthropic): add Claude 4.5 Sonnet model with pricing and token limits
This commit introduces the Claude 4.5 Sonnet model to the Anthropic integration, including its pricing details and token limits. The new model expands the capabilities of the Anthropic offerings.
1 parent 2d84bc2 commit af101b4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/ax/ai/anthropic/info.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ import type { AxModelInfo } from '../types.js';
33
import { AxAIAnthropicModel } from './types.js';
44

55
export const axModelInfoAnthropic: AxModelInfo[] = [
6+
// 4.5 Sonnet (2025-09)
7+
{
8+
name: AxAIAnthropicModel.Claude45Sonnet,
9+
currency: 'usd',
10+
// Estimated/prior pricing aligned with Sonnet tier
11+
promptTokenCostPer1M: 3.0,
12+
completionTokenCostPer1M: 15.0,
13+
maxTokens: 200000,
14+
supported: { thinkingBudget: true, showThoughts: true },
15+
},
616
// 4.5 Haiku (2025-10)
717
{
818
name: AxAIAnthropicModel.Claude45Haiku,

src/ax/ai/anthropic/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export enum AxAIAnthropicModel {
44
Claude41Opus = 'claude-opus-4-1-20250805',
55
Claude4Opus = 'claude-opus-4-20250514',
66
Claude4Sonnet = 'claude-sonnet-4-20250514',
7+
Claude45Sonnet = 'claude-sonnet-4-5-20250929',
78
Claude45Haiku = 'claude-haiku-4-5',
89
Claude37Sonnet = 'claude-3-7-sonnet-latest',
910

0 commit comments

Comments
 (0)