metergraph-core 0.2.36__tar.gz → 0.2.38__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 (18) hide show
  1. {metergraph_core-0.2.36/src/metergraph_core.egg-info → metergraph_core-0.2.38}/PKG-INFO +1 -1
  2. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/pyproject.toml +1 -1
  3. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/data/prices.yaml +151 -2
  4. {metergraph_core-0.2.36 → metergraph_core-0.2.38/src/metergraph_core.egg-info}/PKG-INFO +1 -1
  5. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/MANIFEST.in +0 -0
  6. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/README.md +0 -0
  7. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/setup.cfg +0 -0
  8. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/__init__.py +0 -0
  9. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/billing.py +0 -0
  10. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/catalog.py +0 -0
  11. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/data/models.yaml +0 -0
  12. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/loader.py +0 -0
  13. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/models.py +0 -0
  14. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core/retrieval.py +0 -0
  15. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
  16. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
  17. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/src/metergraph_core.egg-info/requires.txt +0 -0
  18. {metergraph_core-0.2.36 → metergraph_core-0.2.38}/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.2.36
3
+ Version: 0.2.38
4
4
  Summary: Reusable MeterGraph catalog and deterministic billing engine
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "metergraph-core"
3
- version = "0.2.36"
3
+ version = "0.2.38"
4
4
  description = "Reusable MeterGraph catalog and deterministic billing engine"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -6,18 +6,34 @@
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-09-24"
9
+ version: "2026-09-28"
10
10
  currency: USD
11
- pricing_verified_at: "2026-09-24"
11
+ pricing_verified_at: "2026-09-28"
12
12
  models:
13
13
  - canonical_id: openai/gpt-6-sol
14
14
  publisher: openai
15
15
  aliases:
16
+ - {provider: openai, alias: gpt-6-sol, channel: openai-api}
17
+ - {provider: litellm, alias: gpt-6-sol, channel: openai-api}
18
+ - {provider: unknown, alias: gpt-6-sol, channel: openai-api}
16
19
  - provider: openai
17
20
  alias: openai/gpt-6-sol
18
21
  channel: vercel-ai-gateway
19
22
  rules: {input_includes_cache_read: true, input_includes_cache_write: true}
20
23
  prices:
24
+ - channel: openai-api
25
+ region: global
26
+ effective_from: "2026-09-22"
27
+ input_per_mtok: 2.00
28
+ output_per_mtok: 10.00
29
+ cache_read_per_mtok: 0.20
30
+ cache_write_5m_per_mtok: 2.50
31
+ batch_input_per_mtok: 1.00
32
+ batch_output_per_mtok: 5.00
33
+ rules:
34
+ input_includes_cache_read: true
35
+ long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
36
+ source_url: https://developers.openai.com/api/docs/models/gpt-6-sol
21
37
  - channel: vercel-ai-gateway
22
38
  region: global
23
39
  effective_from: "2026-09-23"
@@ -33,11 +49,27 @@ models:
33
49
  - canonical_id: openai/gpt-6-luna
34
50
  publisher: openai
35
51
  aliases:
52
+ - {provider: openai, alias: gpt-6-luna, channel: openai-api}
53
+ - {provider: litellm, alias: gpt-6-luna, channel: openai-api}
54
+ - {provider: unknown, alias: gpt-6-luna, channel: openai-api}
36
55
  - provider: openai
37
56
  alias: openai/gpt-6-luna
38
57
  channel: vercel-ai-gateway
39
58
  rules: {input_includes_cache_read: true, input_includes_cache_write: true}
40
59
  prices:
60
+ - channel: openai-api
61
+ region: global
62
+ effective_from: "2026-09-22"
63
+ input_per_mtok: 0.10
64
+ output_per_mtok: 0.50
65
+ cache_read_per_mtok: 0.01
66
+ cache_write_5m_per_mtok: 0.125
67
+ batch_input_per_mtok: 0.05
68
+ batch_output_per_mtok: 0.25
69
+ rules:
70
+ input_includes_cache_read: true
71
+ long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
72
+ source_url: https://developers.openai.com/api/docs/models/gpt-6-luna
41
73
  - channel: vercel-ai-gateway
42
74
  region: global
43
75
  effective_from: "2026-09-23"
@@ -53,11 +85,27 @@ models:
53
85
  - canonical_id: openai/gpt-6-astra
54
86
  publisher: openai
55
87
  aliases:
88
+ - {provider: openai, alias: gpt-6-astra, channel: openai-api}
89
+ - {provider: litellm, alias: gpt-6-astra, channel: openai-api}
90
+ - {provider: unknown, alias: gpt-6-astra, channel: openai-api}
56
91
  - provider: openai
57
92
  alias: openai/gpt-6-astra
58
93
  channel: vercel-ai-gateway
59
94
  rules: {input_includes_cache_read: true, input_includes_cache_write: true}
60
95
  prices:
96
+ - channel: openai-api
97
+ region: global
98
+ effective_from: "2026-09-03"
99
+ input_per_mtok: 10.00
100
+ output_per_mtok: 50.00
101
+ cache_read_per_mtok: 1.00
102
+ cache_write_5m_per_mtok: 12.50
103
+ batch_input_per_mtok: 5.00
104
+ batch_output_per_mtok: 25.00
105
+ rules:
106
+ input_includes_cache_read: true
107
+ long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
108
+ source_url: https://developers.openai.com/api/docs/models/gpt-6-astra
61
109
  - channel: vercel-ai-gateway
62
110
  region: global
63
111
  effective_from: "2026-09-23"
@@ -503,6 +551,9 @@ models:
503
551
  alias: anthropic/claude-fable-5.1
504
552
  channel: vercel-ai-gateway
505
553
  rules: {input_includes_cache_read: true, input_includes_cache_write: true}
554
+ # AWS prices Fable 5.1 only on geo/in-region inference, not on the
555
+ # global profile, so no aws-bedrock alias.
556
+ - {provider: bedrock, alias: us.anthropic.claude-fable-5-1, channel: aws-bedrock-geo}
506
557
  prices:
507
558
  # Cache hits are 0.025x input on Fable 5.1, not the usual 0.1x.
508
559
  - channel: anthropic-api
@@ -524,6 +575,16 @@ models:
524
575
  cache_read_per_mtok: 0.25
525
576
  cache_write_5m_per_mtok: 12.50
526
577
  source_url: https://ai-gateway.vercel.sh/v1/models
578
+ # AWS lists no Bedrock batch price for Fable 5.1.
579
+ - channel: aws-bedrock-geo
580
+ region: global
581
+ effective_from: "2026-09-01"
582
+ input_per_mtok: 11.00
583
+ output_per_mtok: 55.00
584
+ cache_read_per_mtok: 0.275
585
+ cache_write_5m_per_mtok: 13.75
586
+ cache_write_1h_per_mtok: 22.00
587
+ source_url: https://aws.amazon.com/bedrock/pricing/
527
588
 
528
589
  - canonical_id: anthropic/claude-fable-5
529
590
  publisher: anthropic
@@ -567,6 +628,63 @@ models:
567
628
  cache_read_per_mtok: 1.0
568
629
  cache_write_5m_per_mtok: 12.5
569
630
  source_url: https://ai-gateway.vercel.sh/v1/models
631
+ - canonical_id: anthropic/claude-opus-5.5
632
+ publisher: anthropic
633
+ aliases:
634
+ - {provider: anthropic, alias: claude-opus-5-5, channel: anthropic-api}
635
+ - {provider: anthropic, alias: anthropic/claude-opus-5-5, channel: anthropic-api}
636
+ - {provider: litellm, alias: claude-opus-5-5, channel: anthropic-api}
637
+ - {provider: unknown, alias: claude-opus-5-5, channel: anthropic-api}
638
+ - provider: anthropic
639
+ alias: anthropic/claude-opus-5.5
640
+ channel: vercel-ai-gateway
641
+ rules: {input_includes_cache_read: true, input_includes_cache_write: true}
642
+ - {provider: bedrock, alias: anthropic.claude-opus-5-5, channel: aws-bedrock}
643
+ - {provider: bedrock, alias: global.anthropic.claude-opus-5-5, channel: aws-bedrock}
644
+ - {provider: bedrock, alias: us.anthropic.claude-opus-5-5, channel: aws-bedrock-geo}
645
+ - {provider: bedrock, alias: eu.anthropic.claude-opus-5-5, channel: aws-bedrock-geo}
646
+ - {provider: bedrock, alias: jp.anthropic.claude-opus-5-5, channel: aws-bedrock-geo}
647
+ - {provider: bedrock, alias: au.anthropic.claude-opus-5-5, channel: aws-bedrock-geo}
648
+ prices:
649
+ # Cache hits are 0.05x input on Opus 5.5, not the usual 0.1x.
650
+ - channel: anthropic-api
651
+ region: global
652
+ effective_from: "2026-09-22"
653
+ input_per_mtok: 4.00
654
+ output_per_mtok: 20.00
655
+ cache_read_per_mtok: 0.20
656
+ cache_write_5m_per_mtok: 5.00
657
+ cache_write_1h_per_mtok: 8.00
658
+ batch_input_per_mtok: 2.00
659
+ batch_output_per_mtok: 10.00
660
+ source_url: https://platform.claude.com/docs/en/about-claude/pricing
661
+ - channel: vercel-ai-gateway
662
+ region: global
663
+ effective_from: "2026-09-22"
664
+ input_per_mtok: 4.00
665
+ output_per_mtok: 20.00
666
+ cache_read_per_mtok: 0.20
667
+ cache_write_5m_per_mtok: 5.00
668
+ source_url: https://ai-gateway.vercel.sh/v1/models
669
+ # AWS lists no Bedrock batch price for Opus 5.5.
670
+ - channel: aws-bedrock
671
+ region: global
672
+ effective_from: "2026-09-22"
673
+ input_per_mtok: 4.00
674
+ output_per_mtok: 20.00
675
+ cache_read_per_mtok: 0.20
676
+ cache_write_5m_per_mtok: 5.00
677
+ cache_write_1h_per_mtok: 8.00
678
+ source_url: https://aws.amazon.com/bedrock/pricing/
679
+ - channel: aws-bedrock-geo
680
+ region: global
681
+ effective_from: "2026-09-22"
682
+ input_per_mtok: 4.40
683
+ output_per_mtok: 22.00
684
+ cache_read_per_mtok: 0.22
685
+ cache_write_5m_per_mtok: 5.50
686
+ cache_write_1h_per_mtok: 8.80
687
+ source_url: https://aws.amazon.com/bedrock/pricing/
570
688
  - canonical_id: anthropic/claude-opus-5
571
689
  publisher: anthropic
572
690
  aliases:
@@ -811,6 +929,15 @@ models:
811
929
  alias: anthropic/claude-haiku-4.5
812
930
  channel: vercel-ai-gateway
813
931
  rules: {input_includes_cache_read: true, input_includes_cache_write: true}
932
+ # Messages-API ids are undated; InvokeModel ids carry the snapshot date.
933
+ - {provider: bedrock, alias: anthropic.claude-haiku-4-5, channel: aws-bedrock}
934
+ - {provider: bedrock, alias: anthropic.claude-haiku-4-5-20251001, channel: aws-bedrock}
935
+ - {provider: bedrock, alias: global.anthropic.claude-haiku-4-5, channel: aws-bedrock}
936
+ - {provider: bedrock, alias: global.anthropic.claude-haiku-4-5-20251001, channel: aws-bedrock}
937
+ - {provider: bedrock, alias: us.anthropic.claude-haiku-4-5, channel: aws-bedrock-geo}
938
+ - {provider: bedrock, alias: us.anthropic.claude-haiku-4-5-20251001, channel: aws-bedrock-geo}
939
+ - {provider: bedrock, alias: eu.anthropic.claude-haiku-4-5, channel: aws-bedrock-geo}
940
+ - {provider: bedrock, alias: eu.anthropic.claude-haiku-4-5-20251001, channel: aws-bedrock-geo}
814
941
  prices:
815
942
  - channel: anthropic-api
816
943
  region: global
@@ -831,6 +958,28 @@ models:
831
958
  cache_read_per_mtok: 0.10
832
959
  cache_write_5m_per_mtok: 1.25
833
960
  source_url: https://ai-gateway.vercel.sh/v1/models
961
+ - channel: aws-bedrock
962
+ region: global
963
+ effective_from: "2025-10-15"
964
+ input_per_mtok: 1.00
965
+ output_per_mtok: 5.00
966
+ cache_read_per_mtok: 0.10
967
+ cache_write_5m_per_mtok: 1.25
968
+ cache_write_1h_per_mtok: 2.00
969
+ batch_input_per_mtok: 0.50
970
+ batch_output_per_mtok: 2.50
971
+ source_url: https://aws.amazon.com/bedrock/pricing/
972
+ - channel: aws-bedrock-geo
973
+ region: global
974
+ effective_from: "2025-10-15"
975
+ input_per_mtok: 1.10
976
+ output_per_mtok: 5.50
977
+ cache_read_per_mtok: 0.11
978
+ cache_write_5m_per_mtok: 1.375
979
+ cache_write_1h_per_mtok: 2.20
980
+ batch_input_per_mtok: 0.55
981
+ batch_output_per_mtok: 2.75
982
+ source_url: https://aws.amazon.com/bedrock/pricing/
834
983
 
835
984
  - canonical_id: anthropic/claude-sonnet-4.6
836
985
  publisher: anthropic
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.2.36
3
+ Version: 0.2.38
4
4
  Summary: Reusable MeterGraph catalog and deterministic billing engine
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.10