diff --git a/internal/pricing/PINNED_TAG b/internal/pricing/PINNED_TAG index d423254..bf68c7d 100644 --- a/internal/pricing/PINNED_TAG +++ b/internal/pricing/PINNED_TAG @@ -1 +1 @@ -v2026.06.29-f7199e3 +v2026.07.01-c31b7c3 diff --git a/internal/pricing/index/PROVENANCE.json b/internal/pricing/index/PROVENANCE.json index 41b1a43..dadbc15 100644 --- a/internal/pricing/index/PROVENANCE.json +++ b/internal/pricing/index/PROVENANCE.json @@ -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", @@ -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" } } diff --git a/internal/pricing/index/current.json b/internal/pricing/index/current.json index 78e7700..0891f76 100644 --- a/internal/pricing/index/current.json +++ b/internal/pricing/index/current.json @@ -1,6 +1,6 @@ { "schemaVersion": "1.0.0", - "dataModified": "2026-06-29", + "dataModified": "2026-07-01", "license": "CC-BY-4.0", "prices": [ { @@ -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", diff --git a/internal/pricing/index/index.json b/internal/pricing/index/index.json index f6cc96f..e325603 100644 --- a/internal/pricing/index/index.json +++ b/internal/pricing/index/index.json @@ -1,5 +1,5 @@ { - "dataModified": "2026-06-29", + "dataModified": "2026-07-01", "license": "CC-BY-4.0", "models": [ { @@ -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" diff --git a/internal/pricing/index/models/anthropic/claude-sonnet-5.vf72dcc34.json b/internal/pricing/index/models/anthropic/claude-sonnet-5.vf72dcc34.json new file mode 100644 index 0000000..ea03e0f --- /dev/null +++ b/internal/pricing/index/models/anthropic/claude-sonnet-5.vf72dcc34.json @@ -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" + } + ] + } +} diff --git a/internal/pricing/table_gen.go b/internal/pricing/table_gen.go index d37fd61..fe34ae3 100644 --- a/internal/pricing/table_gen.go +++ b/internal/pricing/table_gen.go @@ -1,11 +1,11 @@ -// Code generated by pricing/gen from v2026.06.29-f7199e3 (f7199e35ae49e062b0a9800f38a0d7741b2fd363); DO NOT EDIT. +// Code generated by pricing/gen from v2026.07.01-c31b7c3 (c31b7c384a78ebe746d1ac39959b10b4d8844e51); DO NOT EDIT. package pricing import "time" -const generatedTag = "v2026.06.29-f7199e3" -const generatedIndexCommit = "f7199e35ae49e062b0a9800f38a0d7741b2fd363" +const generatedTag = "v2026.07.01-c31b7c3" +const generatedIndexCommit = "c31b7c384a78ebe746d1ac39959b10b4d8844e51" // modelSeries maps a canonical anthropic model id to its // point-in-time input/output price history (half-open [from,to)). @@ -158,6 +158,14 @@ var modelSeries = map[string]modelHist{ {from: time.Date(2026, 2, 17, 0, 0, 0, 0, time.UTC), to: nil, priceUSD: 15.0}, }, }, + "claude-sonnet-5": { + input: []priceInterval{ + {from: time.Date(2026, 7, 1, 0, 0, 0, 0, time.UTC), to: nil, priceUSD: 2.0}, + }, + output: []priceInterval{ + {from: time.Date(2026, 7, 1, 0, 0, 0, 0, time.UTC), to: nil, priceUSD: 10.0}, + }, + }, } // modelAliases maps an alias (short or display form) to the