metergraph-core 0.8.8__tar.gz → 0.8.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {metergraph_core-0.8.8/src/metergraph_core.egg-info → metergraph_core-0.8.13}/PKG-INFO +11 -5
  2. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/README.md +10 -4
  3. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/pyproject.toml +1 -1
  4. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/catalog.py +5 -0
  5. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/data/prices.yaml +206 -2
  6. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/data/sources.yaml +7 -5
  7. {metergraph_core-0.8.8 → metergraph_core-0.8.13/src/metergraph_core.egg-info}/PKG-INFO +11 -5
  8. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/MANIFEST.in +0 -0
  9. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/setup.cfg +0 -0
  10. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/__init__.py +0 -0
  11. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/billing.py +0 -0
  12. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/calls.py +0 -0
  13. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/catalog_delta.py +0 -0
  14. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/data/models.yaml +0 -0
  15. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/extractors.py +0 -0
  16. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/loader.py +0 -0
  17. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/models.py +0 -0
  18. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/refresh.py +0 -0
  19. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/responses.py +0 -0
  20. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/retrieval.py +0 -0
  21. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core/sources.py +0 -0
  22. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
  23. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
  24. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core.egg-info/requires.txt +0 -0
  25. {metergraph_core-0.8.8 → metergraph_core-0.8.13}/src/metergraph_core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.8.8
3
+ Version: 0.8.13
4
4
  Summary: Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more.
5
5
  Author: Metergraph
6
6
  License-Expression: Apache-2.0
@@ -436,14 +436,19 @@ for source in load_source_registry().sources:
436
436
 
437
437
  Seeding a source does not make it low-risk. Low-risk means a proven official
438
438
  parser whose live structural fingerprint has been reviewed and recorded.
439
- Anthropic, Google (Gemini API) and xAI start low-risk; each may change
440
- existing rates, in its allowed dimensions, on existing rows.
439
+ Anthropic and xAI start low-risk; each may change existing rates, in its
440
+ allowed dimensions, on existing rows.
441
441
 
442
442
  OpenAI is reviewed discovery only. Its official parser still reads the live
443
443
  rows, but the live pricing data no longer exposes the rendered column header
444
444
  needed to verify the parser's positional columns, so its rows are evidence for
445
445
  review, never automated changes.
446
446
 
447
+ Google (Gemini API) is reviewed discovery only. The registry points at the
448
+ pricing page's current home, so the allowlisted fetch needs no redirect, and
449
+ its official parser's reading of that page and a fingerprint need review
450
+ before it can propose changes again.
451
+
447
452
  Every other source is reviewed discovery only. It is read with a generic
448
453
  parser, `html-tables` for any page's tables or `gpu-license-prose` for GPU or
449
454
  license pricing stated in prose, which records normalized evidence and never
@@ -514,8 +519,9 @@ price on one canonical entry instead of a conflicting second `add_model`.
514
519
 
515
520
  The fetch-capable scripts read `<source-id>.*` files from `--content-dir` instead
516
521
  of fetching. The
517
- tests use one synthetic fixture per low-risk source, plus OpenAI's, in
518
- `tests/fixtures/sources/`, reproducing only the structure its parser reads;
522
+ tests use one synthetic fixture per low-risk source, plus OpenAI's and
523
+ Google's, in `tests/fixtures/sources/`, reproducing only the structure its
524
+ parser reads;
519
525
  the generic discovery parsers are tested on small inline synthetic pages.
520
526
 
521
527
  ## Provider review and contributions
@@ -406,14 +406,19 @@ for source in load_source_registry().sources:
406
406
 
407
407
  Seeding a source does not make it low-risk. Low-risk means a proven official
408
408
  parser whose live structural fingerprint has been reviewed and recorded.
409
- Anthropic, Google (Gemini API) and xAI start low-risk; each may change
410
- existing rates, in its allowed dimensions, on existing rows.
409
+ Anthropic and xAI start low-risk; each may change existing rates, in its
410
+ allowed dimensions, on existing rows.
411
411
 
412
412
  OpenAI is reviewed discovery only. Its official parser still reads the live
413
413
  rows, but the live pricing data no longer exposes the rendered column header
414
414
  needed to verify the parser's positional columns, so its rows are evidence for
415
415
  review, never automated changes.
416
416
 
417
+ Google (Gemini API) is reviewed discovery only. The registry points at the
418
+ pricing page's current home, so the allowlisted fetch needs no redirect, and
419
+ its official parser's reading of that page and a fingerprint need review
420
+ before it can propose changes again.
421
+
417
422
  Every other source is reviewed discovery only. It is read with a generic
418
423
  parser, `html-tables` for any page's tables or `gpu-license-prose` for GPU or
419
424
  license pricing stated in prose, which records normalized evidence and never
@@ -484,8 +489,9 @@ price on one canonical entry instead of a conflicting second `add_model`.
484
489
 
485
490
  The fetch-capable scripts read `<source-id>.*` files from `--content-dir` instead
486
491
  of fetching. The
487
- tests use one synthetic fixture per low-risk source, plus OpenAI's, in
488
- `tests/fixtures/sources/`, reproducing only the structure its parser reads;
492
+ tests use one synthetic fixture per low-risk source, plus OpenAI's and
493
+ Google's, in `tests/fixtures/sources/`, reproducing only the structure its
494
+ parser reads;
489
495
  the generic discovery parsers are tested on small inline synthetic pages.
490
496
 
491
497
  ## Provider review and contributions
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "metergraph-core"
3
- version = "0.8.8"
3
+ version = "0.8.13"
4
4
  description = "Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -607,6 +607,11 @@ def _price_tokens(
607
607
  output_multiplier = _decimal(
608
608
  long_context.get("output_multiplier")
609
609
  ) or Decimal("1")
610
+ if long_context.get("cache_write_rate_unavailable"):
611
+ # Published long-context input/cache-read rates do not establish a
612
+ # cache-write rate. Keep the known components and report partial.
613
+ cache_write_5m_rate = None
614
+ cache_write_1h_rate = None
610
615
  # Applies to every rate on the row, cache included, and composes with a
611
616
  # long-context tier rather than replacing it.
612
617
  off_peak = _off_peak_multiplier(rules, at)
@@ -6,9 +6,9 @@
6
6
  #
7
7
  # Community updates welcome: add an alias or price entry with its provider
8
8
  # source_url and open a PR. CI validates structure and date overlaps.
9
- version: "2026-11-02.2"
9
+ version: "2026-11-09"
10
10
  currency: USD
11
- pricing_verified_at: "2026-11-02"
11
+ pricing_verified_at: "2026-11-09"
12
12
  models:
13
13
  - canonical_id: openai/gpt-6-sol
14
14
  publisher: openai
@@ -1212,6 +1212,29 @@ models:
1212
1212
  output_per_mtok: 168
1213
1213
  source_url: https://ai-gateway.vercel.sh/v1/models
1214
1214
 
1215
+ - canonical_id: anthropic/claude-fable-5.2
1216
+ publisher: anthropic
1217
+ aliases:
1218
+ - {provider: anthropic, alias: claude-fable-5-2, channel: anthropic-api}
1219
+ - {provider: anthropic, alias: anthropic/claude-fable-5-2, channel: anthropic-api}
1220
+ - {provider: litellm, alias: claude-fable-5-2, channel: anthropic-api}
1221
+ - {provider: unknown, alias: claude-fable-5-2, channel: anthropic-api}
1222
+ prices:
1223
+ - channel: anthropic-api
1224
+ region: global
1225
+ effective_from: "2026-11-09"
1226
+ input_per_mtok: 8.00
1227
+ output_per_mtok: 40.00
1228
+ cache_read_per_mtok: 0.20
1229
+ cache_write_5m_per_mtok: 10.00
1230
+ cache_write_1h_per_mtok: 16.00
1231
+ batch_input_per_mtok: 4.00
1232
+ batch_output_per_mtok: 20.00
1233
+ batch_cache_read_per_mtok: 0.10
1234
+ batch_cache_write_5m_per_mtok: 5.00
1235
+ batch_cache_write_1h_per_mtok: 8.00
1236
+ source_url: https://platform.claude.com/docs/en/models/fable-5-2/whats-new-fable-5-2
1237
+
1215
1238
  - canonical_id: anthropic/claude-fable-5.1
1216
1239
  publisher: anthropic
1217
1240
  aliases:
@@ -1238,6 +1261,9 @@ models:
1238
1261
  cache_write_1h_per_mtok: 20.00
1239
1262
  batch_input_per_mtok: 5.00
1240
1263
  batch_output_per_mtok: 25.00
1264
+ batch_cache_read_per_mtok: 0.125
1265
+ batch_cache_write_5m_per_mtok: 6.25
1266
+ batch_cache_write_1h_per_mtok: 10.00
1241
1267
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1242
1268
  - channel: vercel-ai-gateway
1243
1269
  region: global
@@ -1279,6 +1305,9 @@ models:
1279
1305
  cache_write_1h_per_mtok: 20.00
1280
1306
  batch_input_per_mtok: 5.00
1281
1307
  batch_output_per_mtok: 25.00
1308
+ batch_cache_read_per_mtok: 0.50
1309
+ batch_cache_write_5m_per_mtok: 6.25
1310
+ batch_cache_write_1h_per_mtok: 10.00
1282
1311
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1283
1312
  - channel: aws-bedrock
1284
1313
  region: us-west-2
@@ -1329,6 +1358,9 @@ models:
1329
1358
  cache_write_1h_per_mtok: 8.00
1330
1359
  batch_input_per_mtok: 2.00
1331
1360
  batch_output_per_mtok: 10.00
1361
+ batch_cache_read_per_mtok: 0.10
1362
+ batch_cache_write_5m_per_mtok: 2.50
1363
+ batch_cache_write_1h_per_mtok: 4.00
1332
1364
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1333
1365
  - channel: vercel-ai-gateway
1334
1366
  region: global
@@ -1385,6 +1417,9 @@ models:
1385
1417
  cache_write_1h_per_mtok: 10.00
1386
1418
  batch_input_per_mtok: 2.50
1387
1419
  batch_output_per_mtok: 12.50
1420
+ batch_cache_read_per_mtok: 0.25
1421
+ batch_cache_write_5m_per_mtok: 3.125
1422
+ batch_cache_write_1h_per_mtok: 5.00
1388
1423
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1389
1424
  - channel: vercel-ai-gateway
1390
1425
  region: global
@@ -1440,6 +1475,9 @@ models:
1440
1475
  cache_write_1h_per_mtok: 10.00
1441
1476
  batch_input_per_mtok: 2.50
1442
1477
  batch_output_per_mtok: 12.50
1478
+ batch_cache_read_per_mtok: 0.25
1479
+ batch_cache_write_5m_per_mtok: 3.125
1480
+ batch_cache_write_1h_per_mtok: 5.00
1443
1481
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1444
1482
  - channel: vercel-ai-gateway
1445
1483
  region: global
@@ -1484,6 +1522,9 @@ models:
1484
1522
  cache_write_1h_per_mtok: 10.00
1485
1523
  batch_input_per_mtok: 2.50
1486
1524
  batch_output_per_mtok: 12.50
1525
+ batch_cache_read_per_mtok: 0.25
1526
+ batch_cache_write_5m_per_mtok: 3.125
1527
+ batch_cache_write_1h_per_mtok: 5.00
1487
1528
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1488
1529
  - channel: vercel-ai-gateway
1489
1530
  region: global
@@ -1522,6 +1563,9 @@ models:
1522
1563
  cache_write_1h_per_mtok: 10.00
1523
1564
  batch_input_per_mtok: 2.50
1524
1565
  batch_output_per_mtok: 12.50
1566
+ batch_cache_read_per_mtok: 0.25
1567
+ batch_cache_write_5m_per_mtok: 3.125
1568
+ batch_cache_write_1h_per_mtok: 5.00
1525
1569
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1526
1570
  - channel: google-vertex-ai
1527
1571
  region: global
@@ -1566,6 +1610,9 @@ models:
1566
1610
  cache_write_1h_per_mtok: 4.00
1567
1611
  batch_input_per_mtok: 1.00
1568
1612
  batch_output_per_mtok: 5.00
1613
+ batch_cache_read_per_mtok: 0.10
1614
+ batch_cache_write_5m_per_mtok: 1.25
1615
+ batch_cache_write_1h_per_mtok: 2.00
1569
1616
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1570
1617
  - channel: vercel-ai-gateway
1571
1618
  region: global
@@ -1587,6 +1634,9 @@ models:
1587
1634
  cache_write_1h_per_mtok: 4.00
1588
1635
  batch_input_per_mtok: 1.00
1589
1636
  batch_output_per_mtok: 5.00
1637
+ batch_cache_read_per_mtok: 0.05
1638
+ batch_cache_write_5m_per_mtok: 1.25
1639
+ batch_cache_write_1h_per_mtok: 2.00
1590
1640
  source_url: https://www.anthropic.com/claude-haiku-5-5
1591
1641
  - channel: anthropic-api
1592
1642
  region: global
@@ -1598,6 +1648,9 @@ models:
1598
1648
  cache_write_1h_per_mtok: 4.00
1599
1649
  batch_input_per_mtok: 1.00
1600
1650
  batch_output_per_mtok: 5.00
1651
+ batch_cache_read_per_mtok: 0.05
1652
+ batch_cache_write_5m_per_mtok: 1.25
1653
+ batch_cache_write_1h_per_mtok: 2.00
1601
1654
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1602
1655
  - channel: vercel-ai-gateway
1603
1656
  region: global
@@ -1631,6 +1684,9 @@ models:
1631
1684
  cache_write_1h_per_mtok: 0.20
1632
1685
  batch_input_per_mtok: 0.05
1633
1686
  batch_output_per_mtok: 0.25
1687
+ batch_cache_read_per_mtok: 0.005
1688
+ batch_cache_write_5m_per_mtok: 0.0625
1689
+ batch_cache_write_1h_per_mtok: 0.10
1634
1690
  rules:
1635
1691
  long_context: {threshold: 100000, input_multiplier: 5, output_multiplier: 5, threshold_counts_cached_tokens: true}
1636
1692
  source_url: https://www.anthropic.com/claude-haiku-5-5
@@ -1644,6 +1700,9 @@ models:
1644
1700
  cache_write_1h_per_mtok: 0.20
1645
1701
  batch_input_per_mtok: 0.05
1646
1702
  batch_output_per_mtok: 0.25
1703
+ batch_cache_read_per_mtok: 0.005
1704
+ batch_cache_write_5m_per_mtok: 0.0625
1705
+ batch_cache_write_1h_per_mtok: 0.10
1647
1706
  rules:
1648
1707
  long_context: {threshold: 100000, input_multiplier: 5, output_multiplier: 5, threshold_counts_cached_tokens: true}
1649
1708
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
@@ -1681,6 +1740,9 @@ models:
1681
1740
  cache_write_1h_per_mtok: 4.00
1682
1741
  batch_input_per_mtok: 1.00
1683
1742
  batch_output_per_mtok: 5.00
1743
+ batch_cache_read_per_mtok: 0.10
1744
+ batch_cache_write_5m_per_mtok: 1.25
1745
+ batch_cache_write_1h_per_mtok: 2.00
1684
1746
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1685
1747
  - channel: aws-bedrock
1686
1748
  region: us-west-2
@@ -1736,6 +1798,9 @@ models:
1736
1798
  cache_write_1h_per_mtok: 2.00
1737
1799
  batch_input_per_mtok: 0.50
1738
1800
  batch_output_per_mtok: 2.50
1801
+ batch_cache_read_per_mtok: 0.05
1802
+ batch_cache_write_5m_per_mtok: 0.625
1803
+ batch_cache_write_1h_per_mtok: 1.00
1739
1804
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1740
1805
  - channel: vercel-ai-gateway
1741
1806
  region: global
@@ -1803,6 +1868,9 @@ models:
1803
1868
  cache_write_1h_per_mtok: 6.00
1804
1869
  batch_input_per_mtok: 1.50
1805
1870
  batch_output_per_mtok: 7.50
1871
+ batch_cache_read_per_mtok: 0.15
1872
+ batch_cache_write_5m_per_mtok: 1.875
1873
+ batch_cache_write_1h_per_mtok: 3.00
1806
1874
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1807
1875
  - channel: vercel-ai-gateway
1808
1876
  region: global
@@ -1857,6 +1925,9 @@ models:
1857
1925
  cache_write_1h_per_mtok: 6.00
1858
1926
  batch_input_per_mtok: 1.50
1859
1927
  batch_output_per_mtok: 7.50
1928
+ batch_cache_read_per_mtok: 0.15
1929
+ batch_cache_write_5m_per_mtok: 1.875
1930
+ batch_cache_write_1h_per_mtok: 3.00
1860
1931
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
1861
1932
 
1862
1933
  - channel: vercel-ai-gateway
@@ -3830,10 +3901,24 @@ models:
3830
3901
  - channel: moonshot-api
3831
3902
  region: global
3832
3903
  effective_from: "2026-10-07"
3904
+ effective_to: "2026-11-03"
3833
3905
  input_per_mtok: 0.95
3834
3906
  output_per_mtok: 4.00
3835
3907
  cache_read_per_mtok: 0.19
3836
3908
  source_url: https://platform.kimi.ai/docs/pricing/chat
3909
+ # Batch input/output use Kimi's 60% rule. K2.7 Code has no cache-write
3910
+ # rate because it does not support cache writes. No batch cache-read rate
3911
+ # is verified, so the catalog uses the standard $0.19/MTok fallback for hits.
3912
+ - channel: moonshot-api
3913
+ region: global
3914
+ effective_from: "2026-11-03"
3915
+ input_per_mtok: 0.95
3916
+ output_per_mtok: 4.00
3917
+ cache_read_per_mtok: 0.19
3918
+ batch_input_per_mtok: 0.57
3919
+ batch_output_per_mtok: 2.40
3920
+ rules: {input_includes_cache_read: true}
3921
+ source_url: https://platform.kimi.ai/docs/pricing/batch
3837
3922
  - channel: openrouter-api
3838
3923
  region: global
3839
3924
  effective_from: "2026-10-20"
@@ -5214,6 +5299,9 @@ models:
5214
5299
  cache_write_1h_per_mtok: 1.6
5215
5300
  batch_input_per_mtok: 0.4
5216
5301
  batch_output_per_mtok: 2
5302
+ batch_cache_read_per_mtok: 0.04
5303
+ batch_cache_write_5m_per_mtok: 0.5
5304
+ batch_cache_write_1h_per_mtok: 0.8
5217
5305
  source_url: https://docs.anthropic.com/en/docs/about-claude/pricing
5218
5306
  - channel: vercel-ai-gateway
5219
5307
  region: global
@@ -5224,6 +5312,29 @@ models:
5224
5312
  cache_read_per_mtok: 0.08
5225
5313
  cache_write_5m_per_mtok: 1
5226
5314
  source_url: https://vercel.com/ai-gateway/models/claude-haiku-3.5/providers
5315
+ - canonical_id: anthropic/claude-mythos-5.2
5316
+ publisher: anthropic
5317
+ aliases:
5318
+ - {provider: anthropic, alias: claude-mythos-5-2, channel: anthropic-api}
5319
+ - {provider: anthropic, alias: anthropic/claude-mythos-5-2, channel: anthropic-api}
5320
+ - {provider: litellm, alias: claude-mythos-5-2, channel: anthropic-api}
5321
+ - {provider: unknown, alias: claude-mythos-5-2, channel: anthropic-api}
5322
+ prices:
5323
+ - channel: anthropic-api
5324
+ region: global
5325
+ effective_from: "2026-11-09"
5326
+ input_per_mtok: 8.00
5327
+ output_per_mtok: 40.00
5328
+ cache_read_per_mtok: 0.20
5329
+ cache_write_5m_per_mtok: 10.00
5330
+ cache_write_1h_per_mtok: 16.00
5331
+ batch_input_per_mtok: 4.00
5332
+ batch_output_per_mtok: 20.00
5333
+ batch_cache_read_per_mtok: 0.10
5334
+ batch_cache_write_5m_per_mtok: 5.00
5335
+ batch_cache_write_1h_per_mtok: 8.00
5336
+ source_url: https://platform.claude.com/docs/en/models/mythos-5-2/overview
5337
+
5227
5338
  - canonical_id: anthropic/claude-mythos-5.1
5228
5339
  publisher: anthropic
5229
5340
  aliases:
@@ -5243,6 +5354,9 @@ models:
5243
5354
  cache_write_1h_per_mtok: 20.00
5244
5355
  batch_input_per_mtok: 5.00
5245
5356
  batch_output_per_mtok: 25.00
5357
+ batch_cache_read_per_mtok: 0.125
5358
+ batch_cache_write_5m_per_mtok: 6.25
5359
+ batch_cache_write_1h_per_mtok: 10.00
5246
5360
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
5247
5361
 
5248
5362
  - canonical_id: anthropic/claude-mythos-5
@@ -5268,6 +5382,9 @@ models:
5268
5382
  cache_write_1h_per_mtok: 20
5269
5383
  batch_input_per_mtok: 5
5270
5384
  batch_output_per_mtok: 25
5385
+ batch_cache_read_per_mtok: 0.5
5386
+ batch_cache_write_5m_per_mtok: 6.25
5387
+ batch_cache_write_1h_per_mtok: 10
5271
5388
  source_url: https://ai-gateway.vercel.sh/v1/models
5272
5389
  - channel: anthropic-api
5273
5390
  region: global
@@ -5279,6 +5396,9 @@ models:
5279
5396
  cache_write_1h_per_mtok: 20
5280
5397
  batch_input_per_mtok: 5
5281
5398
  batch_output_per_mtok: 25
5399
+ batch_cache_read_per_mtok: 0.5
5400
+ batch_cache_write_5m_per_mtok: 6.25
5401
+ batch_cache_write_1h_per_mtok: 10
5282
5402
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
5283
5403
  - canonical_id: anthropic/claude-opus-4
5284
5404
  publisher: anthropic
@@ -5308,6 +5428,9 @@ models:
5308
5428
  cache_write_1h_per_mtok: 30
5309
5429
  batch_input_per_mtok: 7.5
5310
5430
  batch_output_per_mtok: 37.5
5431
+ batch_cache_read_per_mtok: 0.75
5432
+ batch_cache_write_5m_per_mtok: 9.375
5433
+ batch_cache_write_1h_per_mtok: 15
5311
5434
  source_url: https://ai-gateway.vercel.sh/v1/models
5312
5435
  - channel: anthropic-api
5313
5436
  region: global
@@ -5319,6 +5442,9 @@ models:
5319
5442
  cache_write_1h_per_mtok: 30
5320
5443
  batch_input_per_mtok: 7.5
5321
5444
  batch_output_per_mtok: 37.5
5445
+ batch_cache_read_per_mtok: 0.75
5446
+ batch_cache_write_5m_per_mtok: 9.375
5447
+ batch_cache_write_1h_per_mtok: 15
5322
5448
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
5323
5449
  - channel: vercel-ai-gateway
5324
5450
  region: global
@@ -5355,6 +5481,9 @@ models:
5355
5481
  cache_write_1h_per_mtok: 30
5356
5482
  batch_input_per_mtok: 7.5
5357
5483
  batch_output_per_mtok: 37.5
5484
+ batch_cache_read_per_mtok: 0.75
5485
+ batch_cache_write_5m_per_mtok: 9.375
5486
+ batch_cache_write_1h_per_mtok: 15
5358
5487
  source_url: https://ai-gateway.vercel.sh/v1/models
5359
5488
  - channel: anthropic-api
5360
5489
  region: global
@@ -5366,6 +5495,9 @@ models:
5366
5495
  cache_write_1h_per_mtok: 30
5367
5496
  batch_input_per_mtok: 7.5
5368
5497
  batch_output_per_mtok: 37.5
5498
+ batch_cache_read_per_mtok: 0.75
5499
+ batch_cache_write_5m_per_mtok: 9.375
5500
+ batch_cache_write_1h_per_mtok: 15
5369
5501
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
5370
5502
  - canonical_id: anthropic/claude-opus-4.5
5371
5503
  publisher: anthropic
@@ -5385,6 +5517,9 @@ models:
5385
5517
  cache_write_1h_per_mtok: 10
5386
5518
  batch_input_per_mtok: 2.5
5387
5519
  batch_output_per_mtok: 12.5
5520
+ batch_cache_read_per_mtok: 0.25
5521
+ batch_cache_write_5m_per_mtok: 3.125
5522
+ batch_cache_write_1h_per_mtok: 5
5388
5523
  source_url: https://ai-gateway.vercel.sh/v1/models
5389
5524
  - channel: anthropic-api
5390
5525
  region: global
@@ -5396,6 +5531,9 @@ models:
5396
5531
  cache_write_1h_per_mtok: 10
5397
5532
  batch_input_per_mtok: 2.5
5398
5533
  batch_output_per_mtok: 12.5
5534
+ batch_cache_read_per_mtok: 0.25
5535
+ batch_cache_write_5m_per_mtok: 3.125
5536
+ batch_cache_write_1h_per_mtok: 5
5399
5537
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
5400
5538
  - channel: vercel-ai-gateway
5401
5539
  region: global
@@ -5467,6 +5605,9 @@ models:
5467
5605
  cache_write_1h_per_mtok: 6
5468
5606
  batch_input_per_mtok: 1.5
5469
5607
  batch_output_per_mtok: 7.5
5608
+ batch_cache_read_per_mtok: 0.15
5609
+ batch_cache_write_5m_per_mtok: 1.875
5610
+ batch_cache_write_1h_per_mtok: 3
5470
5611
  source_url: https://ai-gateway.vercel.sh/v1/models
5471
5612
  - channel: anthropic-api
5472
5613
  region: global
@@ -5478,6 +5619,9 @@ models:
5478
5619
  cache_write_1h_per_mtok: 6
5479
5620
  batch_input_per_mtok: 1.5
5480
5621
  batch_output_per_mtok: 7.5
5622
+ batch_cache_read_per_mtok: 0.15
5623
+ batch_cache_write_5m_per_mtok: 1.875
5624
+ batch_cache_write_1h_per_mtok: 3
5481
5625
  source_url: https://platform.claude.com/docs/en/about-claude/pricing
5482
5626
  - channel: vercel-ai-gateway
5483
5627
  region: global
@@ -5903,6 +6047,26 @@ models:
5903
6047
  varies_by_provider: true
5904
6048
  long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
5905
6049
  source_url: https://openrouter.ai/api/v1/models
6050
+ - canonical_id: openai/gpt-6-cyber
6051
+ publisher: openai
6052
+ aliases:
6053
+ - {provider: litellm, alias: gpt-6-cyber, channel: openai-api}
6054
+ - {provider: openai, alias: openai/gpt-6-cyber, channel: openai-api}
6055
+ - {provider: openai, alias: gpt-6-cyber, channel: openai-api}
6056
+ - {provider: unknown, alias: gpt-6-cyber, channel: openai-api}
6057
+ prices:
6058
+ # Batch is unsupported. Above 272K input tokens, OpenAI lists input,
6059
+ # cache-read, and output rates, but no long-context cache-write rate.
6060
+ - channel: openai-api
6061
+ region: global
6062
+ effective_from: "2026-11-07"
6063
+ input_per_mtok: 20.00
6064
+ output_per_mtok: 100.00
6065
+ cache_read_per_mtok: 2.00
6066
+ cache_write_5m_per_mtok: 25.00
6067
+ rules:
6068
+ long_context: {threshold: 272000, threshold_counts_cached_tokens: true, input_multiplier: 2, output_multiplier: 1.5, cache_write_rate_unavailable: true}
6069
+ source_url: https://developers.openai.com/api/docs/models/gpt-6-cyber
5906
6070
  - canonical_id: openai/gpt-5.6-cyber
5907
6071
  publisher: openai
5908
6072
  aliases:
@@ -12526,6 +12690,46 @@ models:
12526
12690
  cache_read_per_mtok: 0.50
12527
12691
  source_url: https://developers.openai.com/api/docs/pricing
12528
12692
 
12693
+ - canonical_id: openai/gpt-6-rosalind
12694
+ publisher: openai
12695
+ aliases:
12696
+ - {provider: openai, alias: gpt-6-rosalind, channel: openai-api}
12697
+ - {provider: litellm, alias: gpt-6-rosalind, channel: openai-api}
12698
+ - {provider: unknown, alias: gpt-6-rosalind, channel: openai-api}
12699
+ - {provider: openai, alias: openai/gpt-6-rosalind, channel: openai-api}
12700
+ prices:
12701
+ # First verified rate, not a launch date.
12702
+ # The 5m field holds OpenAI's 30-minute cache write; its 12-hour tier
12703
+ # has no field.
12704
+ - channel: openai-api
12705
+ region: global
12706
+ effective_from: "2026-11-04"
12707
+ input_per_mtok: 15.00
12708
+ output_per_mtok: 75.00
12709
+ cache_read_per_mtok: 1.50
12710
+ cache_write_5m_per_mtok: 18.75
12711
+ rules:
12712
+ input_includes_cache_read: true
12713
+ long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
12714
+ source_url: https://developers.openai.com/api/docs/pricing
12715
+
12716
+ - canonical_id: openai/gpt-6-astra-law
12717
+ publisher: openai
12718
+ aliases:
12719
+ - {provider: openai, alias: gpt-6-astra-law, channel: openai-api}
12720
+ - {provider: litellm, alias: gpt-6-astra-law, channel: openai-api}
12721
+ - {provider: unknown, alias: gpt-6-astra-law, channel: openai-api}
12722
+ - {provider: openai, alias: openai/gpt-6-astra-law, channel: openai-api}
12723
+ prices:
12724
+ # First verified rate, not a launch date.
12725
+ - channel: openai-api
12726
+ region: global
12727
+ effective_from: "2026-11-04"
12728
+ input_per_mtok: 10.00
12729
+ output_per_mtok: 50.00
12730
+ cache_read_per_mtok: 1.00
12731
+ source_url: https://developers.openai.com/api/docs/pricing
12732
+
12529
12733
  - canonical_id: openai/chat-latest
12530
12734
  publisher: openai
12531
12735
  aliases:
@@ -66,17 +66,19 @@ sources:
66
66
  eligible: true
67
67
  dimensions: [input_per_mtok, output_per_mtok, cache_write_5m_per_mtok, cache_read_per_mtok]
68
68
 
69
+ # The current destination of the Gemini API pricing page
70
+ # (ai.google.dev/gemini-api/docs/pricing redirects here), so the allowlisted
71
+ # fetch needs no redirect. Reviewed discovery only until the google parser's
72
+ # reading of this page and a fingerprint are reviewed.
69
73
  - id: google-api-pricing
70
74
  provider: google
71
75
  channel: google-api
72
76
  catalog_channel: true
73
- url: https://ai.google.dev/gemini-api/docs/pricing
77
+ url: https://aistudio.google.com/docs/pricing
74
78
  parser: google
75
79
  dimensions: [input_per_mtok, output_per_mtok, cache_read_per_mtok]
76
- fingerprint: sha256:ce07b6f065f5dfd21a9f14a005c30de1f5802e3ba118dc1dbe088a124c84adbd
77
- low_risk:
78
- eligible: true
79
- dimensions: [input_per_mtok, output_per_mtok, cache_read_per_mtok]
80
+ fingerprint: null
81
+ low_risk: {eligible: false, dimensions: []}
80
82
 
81
83
  - id: deepseek-api-pricing
82
84
  provider: deepseek
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.8.8
3
+ Version: 0.8.13
4
4
  Summary: Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more.
5
5
  Author: Metergraph
6
6
  License-Expression: Apache-2.0
@@ -436,14 +436,19 @@ for source in load_source_registry().sources:
436
436
 
437
437
  Seeding a source does not make it low-risk. Low-risk means a proven official
438
438
  parser whose live structural fingerprint has been reviewed and recorded.
439
- Anthropic, Google (Gemini API) and xAI start low-risk; each may change
440
- existing rates, in its allowed dimensions, on existing rows.
439
+ Anthropic and xAI start low-risk; each may change existing rates, in its
440
+ allowed dimensions, on existing rows.
441
441
 
442
442
  OpenAI is reviewed discovery only. Its official parser still reads the live
443
443
  rows, but the live pricing data no longer exposes the rendered column header
444
444
  needed to verify the parser's positional columns, so its rows are evidence for
445
445
  review, never automated changes.
446
446
 
447
+ Google (Gemini API) is reviewed discovery only. The registry points at the
448
+ pricing page's current home, so the allowlisted fetch needs no redirect, and
449
+ its official parser's reading of that page and a fingerprint need review
450
+ before it can propose changes again.
451
+
447
452
  Every other source is reviewed discovery only. It is read with a generic
448
453
  parser, `html-tables` for any page's tables or `gpu-license-prose` for GPU or
449
454
  license pricing stated in prose, which records normalized evidence and never
@@ -514,8 +519,9 @@ price on one canonical entry instead of a conflicting second `add_model`.
514
519
 
515
520
  The fetch-capable scripts read `<source-id>.*` files from `--content-dir` instead
516
521
  of fetching. The
517
- tests use one synthetic fixture per low-risk source, plus OpenAI's, in
518
- `tests/fixtures/sources/`, reproducing only the structure its parser reads;
522
+ tests use one synthetic fixture per low-risk source, plus OpenAI's and
523
+ Google's, in `tests/fixtures/sources/`, reproducing only the structure its
524
+ parser reads;
519
525
  the generic discovery parsers are tested on small inline synthetic pages.
520
526
 
521
527
  ## Provider review and contributions