Skip to content

Commit c5bd290

Browse files
Add OpenRouter pricing for claude-sonnet-4.6 (#296)
Co-authored-by: Alex Hall <alex.mojaki@gmail.com>
1 parent ea55b97 commit c5bd290

File tree

6 files changed

+48
-3
lines changed

6 files changed

+48
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The following providers are currently supported:
5757
- [MoonshotAi](prices/providers/moonshotai.yml) - 9 models
5858
- [Novita](prices/providers/novita.yml) - 34 models
5959
- [OpenAI](prices/providers/openai.yml) - 68 models
60-
- [OpenRouter](prices/providers/openrouter.yml) - 582 models
60+
- [OpenRouter](prices/providers/openrouter.yml) - 583 models
6161
- [OVHcloud AI Endpoints](prices/providers/ovhcloud.yml) - 18 models
6262
- [Perplexity](prices/providers/perplexity.yml) - 8 models
6363
- [Together AI](prices/providers/together.yml) - 72 models

packages/js/src/data.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10941,6 +10941,25 @@ export const data: Provider[] = [
1094110941
},
1094210942
},
1094310943
},
10944+
{
10945+
id: 'anthropic/claude-sonnet-4.6',
10946+
match: {
10947+
or: [
10948+
{
10949+
equals: 'anthropic/claude-sonnet-4.6',
10950+
},
10951+
{
10952+
equals: 'anthropic/claude-sonnet-4.6:beta',
10953+
},
10954+
],
10955+
},
10956+
prices: {
10957+
input_mtok: 3,
10958+
cache_write_mtok: 3.75,
10959+
cache_read_mtok: 0.3,
10960+
output_mtok: 15,
10961+
},
10962+
},
1094410963
{
1094510964
id: 'anubis-pro-105b-v1',
1094610965
name: 'Anubis Pro 105B V1',

packages/python/genai_prices/data.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6133,6 +6133,21 @@
61336133
output_mtok=TieredPrices(base=Decimal('15'), tiers=[Tier(start=200000, price=Decimal('22.5'))]),
61346134
),
61356135
),
6136+
ModelInfo(
6137+
id='anthropic/claude-sonnet-4.6',
6138+
match=ClauseOr(
6139+
or_=[
6140+
ClauseEquals(equals='anthropic/claude-sonnet-4.6'),
6141+
ClauseEquals(equals='anthropic/claude-sonnet-4.6:beta'),
6142+
]
6143+
),
6144+
prices=ModelPrice(
6145+
input_mtok=Decimal('3'),
6146+
cache_write_mtok=Decimal('3.75'),
6147+
cache_read_mtok=Decimal('0.3'),
6148+
output_mtok=Decimal('15'),
6149+
),
6150+
),
61366151
ModelInfo(
61376152
id='anubis-pro-105b-v1',
61386153
match=ClauseEquals(equals='anubis-pro-105b-v1'),

prices/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

prices/data_slim.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

prices/providers/openrouter.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,17 @@ models:
323323
- start: 200000
324324
price: 22.5
325325

326+
- id: anthropic/claude-sonnet-4.6
327+
match:
328+
or:
329+
- equals: anthropic/claude-sonnet-4.6
330+
- equals: anthropic/claude-sonnet-4.6:beta
331+
prices:
332+
input_mtok: 3
333+
cache_read_mtok: 0.3
334+
cache_write_mtok: 3.75
335+
output_mtok: 15
336+
326337
- id: anubis-pro-105b-v1
327338
name: Anubis Pro 105B V1
328339
match:

0 commit comments

Comments
 (0)