Skip to content
Merged
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
2 changes: 1 addition & 1 deletion internal/pricing/PINNED_TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2026.06.29-f7199e3
v2026.07.01-c31b7c3
11 changes: 6 additions & 5 deletions internal/pricing/index/PROVENANCE.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"tag": "v2026.06.29-f7199e3",
"commit": "f7199e35ae49e062b0a9800f38a0d7741b2fd363",
"fetched_at": "2026-06-29T03:20:18Z",
"tag": "v2026.07.01-c31b7c3",
"commit": "c31b7c384a78ebe746d1ac39959b10b4d8844e51",
"fetched_at": "2026-07-01T03:47:03Z",
"files": {
"LICENSE": "58bf8d4b416bb4b03d9cb92182427fca655b1c76339c85bce0c3d191db648cf9",
"current.json": "5f73a316711807beae0c9a49e566d8429deb4094715488aab7cf2207ba408f8c",
"index.json": "a6631051ced334e6f67213ab56266582a6c4bf65ff3b0d42e394b791e4952cbc",
"current.json": "c78e6bb4b198a28f5ac635915d3862d5a331c602ef940369d075dcc7715e0b0d",
"index.json": "c3d3221450f3395ede4f66fec6c9880fb17ae9a26d7bcfacba45a9d019ea60f6",
"models/anthropic/claude-3-5-haiku-20241022.vdcd25c2f.json": "301e13f9bddd2856bd039592ab91d4f2f4a9b0f4a9b9ed0306a206305f7422cf",
"models/anthropic/claude-3-5-sonnet-20240620.v0269d672.json": "d130c5c0afb3b1f3cda32b540fdbf7d2d63851a080e848c69a39902bc2e01aac",
"models/anthropic/claude-3-7-sonnet-20250219.va4cfdfe6.json": "e12db1a580a31bf0a3e72dce9fc226f2ed71507b0b339eae0212caa3c3ac1456",
Expand All @@ -24,6 +24,7 @@
"models/anthropic/claude-sonnet-4-20250514.v84e86b0d.json": "602e8ff1acfdebc6c0541d1794f571aedbbd205e4a0900b7edc1793c9e1d0c64",
"models/anthropic/claude-sonnet-4-5-20250929.v9aeb5571.json": "e9cbaefb536a176ccee89a6b42d3adc4e85a361733fe5b4d33d1cf50328bf317",
"models/anthropic/claude-sonnet-4-6.v7b912906.json": "12ef8eaa7e1bd293bf736d159e45daa51b0aea7c892776dc0ddee84ca9c27b4f",
"models/anthropic/claude-sonnet-5.vf72dcc34.json": "945c98007ef9a87b9c7ce667f92f56bf1c0dee1999ab7c5b1a6bcb77f3779f48",
"pricing-vectors.json": "86b66a890df8336760a1c50330347cbf77ce0fa4d75cfa06e820d71f6b2bcc8c"
}
}
52 changes: 51 additions & 1 deletion internal/pricing/index/current.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": "1.0.0",
"dataModified": "2026-06-29",
"dataModified": "2026-07-01",
"license": "CC-BY-4.0",
"prices": [
{
Expand Down Expand Up @@ -673,6 +673,56 @@
"confidence": "verified",
"src": "https://www.anthropic.com/news/claude-sonnet-4-6"
},
{
"provider": "anthropic",
"model": "claude-sonnet-5",
"variation": "cache_read",
"price_usd": 0.2,
"unit": "usd_per_mtok",
"last_validated": "2026-07-01",
"confidence": "verified",
"src": "https://docs.claude.com/en/docs/about-claude/pricing"
},
{
"provider": "anthropic",
"model": "claude-sonnet-5",
"variation": "cache_write_1h",
"price_usd": 4,
"unit": "usd_per_mtok",
"last_validated": "2026-07-01",
"confidence": "verified",
"src": "https://docs.claude.com/en/docs/about-claude/pricing"
},
{
"provider": "anthropic",
"model": "claude-sonnet-5",
"variation": "cache_write_5m",
"price_usd": 2.5,
"unit": "usd_per_mtok",
"last_validated": "2026-07-01",
"confidence": "verified",
"src": "https://docs.claude.com/en/docs/about-claude/pricing"
},
{
"provider": "anthropic",
"model": "claude-sonnet-5",
"variation": "input",
"price_usd": 2,
"unit": "usd_per_mtok",
"last_validated": "2026-07-01",
"confidence": "verified",
"src": "https://docs.claude.com/en/docs/about-claude/pricing"
},
{
"provider": "anthropic",
"model": "claude-sonnet-5",
"variation": "output",
"price_usd": 10,
"unit": "usd_per_mtok",
"last_validated": "2026-07-01",
"confidence": "verified",
"src": "https://docs.claude.com/en/docs/about-claude/pricing"
},
{
"provider": "cohere",
"model": "command-a-plus",
Expand Down
8 changes: 7 additions & 1 deletion internal/pricing/index/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dataModified": "2026-06-29",
"dataModified": "2026-07-01",
"license": "CC-BY-4.0",
"models": [
{
Expand Down Expand Up @@ -121,6 +121,12 @@
"provider": "anthropic",
"file": "models/anthropic/claude-sonnet-4-6.v7b912906.json",
"latestRev": "7b912906"
},
{
"id": "claude-sonnet-5",
"provider": "anthropic",
"file": "models/anthropic/claude-sonnet-5.vf72dcc34.json",
"latestRev": "f72dcc34"
}
],
"schemaVersion": "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"model": "claude-sonnet-5",
"provider": "anthropic",
"variations": {
"cache_read": [
{
"confidence": "verified",
"from": "2026-07-01",
"last_validated": "2026-07-01",
"price_usd": 0.2,
"src": "https://docs.claude.com/en/docs/about-claude/pricing",
"to": null,
"unit": "usd_per_mtok"
}
],
"cache_write_1h": [
{
"confidence": "verified",
"from": "2026-07-01",
"last_validated": "2026-07-01",
"price_usd": 4,
"src": "https://docs.claude.com/en/docs/about-claude/pricing",
"to": null,
"unit": "usd_per_mtok"
}
],
"cache_write_5m": [
{
"confidence": "verified",
"from": "2026-07-01",
"last_validated": "2026-07-01",
"price_usd": 2.5,
"src": "https://docs.claude.com/en/docs/about-claude/pricing",
"to": null,
"unit": "usd_per_mtok"
}
],
"input": [
{
"confidence": "verified",
"from": "2026-07-01",
"last_validated": "2026-07-01",
"price_usd": 2,
"src": "https://docs.claude.com/en/docs/about-claude/pricing",
"to": null,
"unit": "usd_per_mtok"
}
],
"output": [
{
"confidence": "verified",
"from": "2026-07-01",
"last_validated": "2026-07-01",
"price_usd": 10,
"src": "https://docs.claude.com/en/docs/about-claude/pricing",
"to": null,
"unit": "usd_per_mtok"
}
]
}
}
14 changes: 11 additions & 3 deletions internal/pricing/table_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading