metergraph-core 0.9.3__tar.gz → 0.9.5__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 (31) hide show
  1. {metergraph_core-0.9.3/src/metergraph_core.egg-info → metergraph_core-0.9.5}/PKG-INFO +1 -1
  2. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/pyproject.toml +1 -1
  3. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/catalog.py +1 -0
  4. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/data/models.yaml +31 -1
  5. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/data/prices.yaml +76 -2
  6. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/models.py +5 -1
  7. {metergraph_core-0.9.3 → metergraph_core-0.9.5/src/metergraph_core.egg-info}/PKG-INFO +1 -1
  8. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/MANIFEST.in +0 -0
  9. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/README.md +0 -0
  10. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/setup.cfg +0 -0
  11. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/__init__.py +0 -0
  12. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/billing.py +0 -0
  13. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/calls.py +0 -0
  14. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/catalog_delta.py +0 -0
  15. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/catalogs.py +0 -0
  16. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/data/sources.yaml +0 -0
  17. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/extractors.py +0 -0
  18. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/families.py +0 -0
  19. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/loader.py +0 -0
  20. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/providers/__init__.py +0 -0
  21. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/providers/anthropic.py +0 -0
  22. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/providers/google.py +0 -0
  23. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/refresh.py +0 -0
  24. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/reliability.py +0 -0
  25. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/responses.py +0 -0
  26. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/retrieval.py +0 -0
  27. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core/sources.py +0 -0
  28. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
  29. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
  30. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/src/metergraph_core.egg-info/requires.txt +0 -0
  31. {metergraph_core-0.9.3 → metergraph_core-0.9.5}/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.9.3
3
+ Version: 0.9.5
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "metergraph-core"
3
- version = "0.9.3"
3
+ version = "0.9.5"
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"
@@ -36,6 +36,7 @@ _DIRECT_CHANNEL_BY_PROVIDER = {
36
36
  "openai": "openai-api",
37
37
  # Generic Azure traffic has no channel: its deployment SKU must be known.
38
38
  "azure-foundry-global-standard": "azure-foundry-global-standard",
39
+ "azure_foundry": "azure-foundry-global-standard",
39
40
  "google": "google-api",
40
41
  "vercel": "vercel-ai-gateway",
41
42
  "openrouter": "openrouter-api",
@@ -1,9 +1,14 @@
1
- version: '2026-11-20'
1
+ version: '2026-11-30'
2
2
  # Training use of customer inputs and outputs under each serving provider's
3
3
  # default terms. A pair left out resolves to unknown. A gateway or cloud host
4
4
  # follows its own terms, never the model publisher's. No policy verifies an
5
5
  # account's configuration, opt-ins or separate agreements.
6
6
  provider_defaults:
7
+ azure_foundry:
8
+ azure-foundry-global-standard:
9
+ training_policy:
10
+ training_on_customer_data: prohibited
11
+ source: https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy
7
12
  anthropic:
8
13
  anthropic-api:
9
14
  training_policy:
@@ -50,6 +55,17 @@ provider_defaults:
50
55
  training_on_customer_data: unknown
51
56
  source: https://vercel.com/docs/ai-gateway/security-and-compliance/disallow-prompt-training
52
57
  models:
58
+ - canonical_id: microsoft/mai-thinking-1
59
+ display_name: MAI-Thinking-1
60
+ publisher: microsoft
61
+ routes:
62
+ - key: default:azure_foundry:MAI-Thinking-1
63
+ id: azure_foundry:MAI-Thinking-1
64
+ provider: azure_foundry
65
+ model_id: MAI-Thinking-1
66
+ pricing_channel: azure-foundry-global-standard
67
+ execution_profiles:
68
+ - default
53
69
  - canonical_id: openai/gpt-5.6-sol
54
70
  display_name: GPT-5.6 Sol
55
71
  publisher: openai
@@ -913,6 +929,13 @@ models:
913
929
  display_name: GPT-6.1 Terra
914
930
  publisher: openai
915
931
  routes:
932
+ - key: default:openai/gpt-6.1-terra
933
+ id: openai/gpt-6.1-terra
934
+ provider: vercel
935
+ model_id: openai/gpt-6.1-terra
936
+ pricing_channel: vercel-ai-gateway
937
+ execution_profiles:
938
+ - default
916
939
  - key: default:openai:gpt-6.1-terra
917
940
  id: openai:gpt-6.1-terra
918
941
  provider: openai
@@ -1132,6 +1155,7 @@ models:
1132
1155
  execution_profiles:
1133
1156
  - id: default
1134
1157
  routes:
1158
+ - default:azure_foundry:MAI-Thinking-1
1135
1159
  - default:openai/gpt-5.6-sol
1136
1160
  - default:openai/gpt-5.6-luna
1137
1161
  - default:openai/gpt-6-luna
@@ -1202,6 +1226,7 @@ execution_profiles:
1202
1226
  - default:anthropic:claude-sonnet-5-5
1203
1227
  - default:anthropic:claude-haiku-5-5
1204
1228
  - default:openai:gpt-6.1-terra
1229
+ - default:openai/gpt-6.1-terra
1205
1230
  - default:moonshotai:kimi-k3.1-pro
1206
1231
  - default:moonshotai:kimi-k3.1-pro-highspeed
1207
1232
  - default:minimax/minimax-m3.1-flash
@@ -1233,6 +1258,10 @@ execution_profiles:
1233
1258
  - bedrock:deepseek/deepseek-v3.2
1234
1259
  - bedrock:deepseek/deepseek-v3.1
1235
1260
  offer_groups:
1261
+ - id: azure-foundry-direct
1262
+ credential: AZURE_FOUNDRY_API_KEY
1263
+ routes:
1264
+ - default:azure_foundry:MAI-Thinking-1
1236
1265
  - id: tinker-direct
1237
1266
  credential: TINKER_API_KEY
1238
1267
  routes:
@@ -1305,6 +1334,7 @@ offer_groups:
1305
1334
  - default:openai/gpt-6.2-astra
1306
1335
  - default:openai/gpt-5.4
1307
1336
  - default:google/gemini-4-neon
1337
+ - default:openai/gpt-6.1-terra
1308
1338
  - id: fireworks
1309
1339
  credential: FIREWORKS_API_KEY
1310
1340
  routes:
@@ -6,10 +6,24 @@
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-25.1"
9
+ version: "2026-11-26.1"
10
10
  currency: USD
11
- pricing_verified_at: "2026-11-25"
11
+ pricing_verified_at: "2026-11-26"
12
12
  models:
13
+ - canonical_id: microsoft/mai-thinking-1
14
+ publisher: microsoft
15
+ aliases:
16
+ - {provider: azure_foundry, alias: MAI-Thinking-1, channel: azure-foundry-global-standard}
17
+ prices:
18
+ - channel: azure-foundry-global-standard
19
+ region: global
20
+ effective_from: "2026-08-01"
21
+ input_per_mtok: 2.00
22
+ output_per_mtok: 8.00
23
+ cache_read_per_mtok: 0.20
24
+ rules: {input_includes_cache_read: true}
25
+ source_url: https://prices.azure.com/api/retail/prices
26
+
13
27
  - canonical_id: openai/gpt-6-sol
14
28
  publisher: openai
15
29
  family: {id: openai/gpt-sol, display_name: GPT Sol}
@@ -749,6 +763,7 @@ models:
749
763
  - channel: aws-bedrock
750
764
  region: us-west-2
751
765
  effective_from: "2026-08-17"
766
+ effective_to: "2026-11-20"
752
767
  input_per_mtok: 5.50
753
768
  output_per_mtok: 33.00
754
769
  cache_read_per_mtok: 0.55
@@ -756,6 +771,17 @@ models:
756
771
  rules:
757
772
  long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
758
773
  source_url: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-sol.html
774
+ # First verified current rate, not the date AWS changed it.
775
+ - channel: aws-bedrock
776
+ region: us-west-2
777
+ effective_from: "2026-11-20"
778
+ input_per_mtok: 4.40
779
+ output_per_mtok: 22.00
780
+ cache_read_per_mtok: 0.44
781
+ cache_write_5m_per_mtok: 5.50
782
+ rules:
783
+ long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
784
+ source_url: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-sol.html
759
785
  - channel: openrouter-api
760
786
  region: global
761
787
  effective_from: "2026-10-29"
@@ -5229,7 +5255,18 @@ models:
5229
5255
  rules:
5230
5256
  input_includes_cache_read: true
5231
5257
  input_includes_cache_write: true
5258
+ - {provider: zai, alias: glm-5.3, channel: zai-api}
5259
+ - {provider: unknown, alias: glm-5.3, channel: zai-api}
5260
+ - {provider: litellm, alias: glm-5.3, channel: zai-api}
5232
5261
  prices:
5262
+ # First verified Z.ai rate, not its launch date.
5263
+ - channel: zai-api
5264
+ region: global
5265
+ effective_from: "2026-11-20"
5266
+ input_per_mtok: 1.4
5267
+ output_per_mtok: 4.4
5268
+ cache_read_per_mtok: 0.26
5269
+ source_url: https://docs.z.ai/guides/overview/pricing
5233
5270
  - channel: vercel-ai-gateway
5234
5271
  region: global
5235
5272
  effective_from: "2026-08-14"
@@ -5299,7 +5336,18 @@ models:
5299
5336
  rules:
5300
5337
  input_includes_cache_read: true
5301
5338
  input_includes_cache_write: true
5339
+ - {provider: zai, alias: glm-5.3-flash, channel: zai-api}
5340
+ - {provider: unknown, alias: glm-5.3-flash, channel: zai-api}
5341
+ - {provider: litellm, alias: glm-5.3-flash, channel: zai-api}
5302
5342
  prices:
5343
+ # First verified Z.ai rate, not its launch date.
5344
+ - channel: zai-api
5345
+ region: global
5346
+ effective_from: "2026-11-20"
5347
+ input_per_mtok: 0.15
5348
+ output_per_mtok: 0.50
5349
+ cache_read_per_mtok: 0.03
5350
+ source_url: https://docs.z.ai/guides/overview/pricing
5303
5351
  # Vercel lists this well under half the Fireworks rate. Recorded as listed;
5304
5352
  # if it is promotional it will need an `effective_to` when it moves.
5305
5353
  - channel: vercel-ai-gateway
@@ -10616,6 +10664,9 @@ models:
10616
10664
  rules:
10617
10665
  input_includes_cache_read: true
10618
10666
  input_includes_cache_write: true
10667
+ - {provider: zai, alias: glm-5.3-flashx, channel: zai-api}
10668
+ - {provider: unknown, alias: glm-5.3-flashx, channel: zai-api}
10669
+ - {provider: litellm, alias: glm-5.3-flashx, channel: zai-api}
10619
10670
  prices:
10620
10671
  - channel: vercel-ai-gateway
10621
10672
  region: global
@@ -10624,6 +10675,14 @@ models:
10624
10675
  output_per_mtok: 1.25
10625
10676
  cache_read_per_mtok: 0.075
10626
10677
  source_url: https://ai-gateway.vercel.sh/v1/models
10678
+ # First verified Z.ai rate, not its launch date.
10679
+ - channel: zai-api
10680
+ region: global
10681
+ effective_from: "2026-11-20"
10682
+ input_per_mtok: 0.37
10683
+ output_per_mtok: 1.25
10684
+ cache_read_per_mtok: 0.075
10685
+ source_url: https://docs.z.ai/guides/overview/pricing
10627
10686
 
10628
10687
  - channel: openrouter-api
10629
10688
  region: global
@@ -10634,6 +10693,21 @@ models:
10634
10693
  rules:
10635
10694
  varies_by_provider: true
10636
10695
  source_url: https://openrouter.ai/api/v1/models
10696
+ - canonical_id: zai/glm-5.3-flashx-legal
10697
+ publisher: zai
10698
+ aliases:
10699
+ - {provider: zai, alias: glm-5.3-flashx-legal, channel: zai-api}
10700
+ - {provider: unknown, alias: glm-5.3-flashx-legal, channel: zai-api}
10701
+ - {provider: litellm, alias: glm-5.3-flashx-legal, channel: zai-api}
10702
+ prices:
10703
+ # First verified Z.ai rate, not its launch date.
10704
+ - channel: zai-api
10705
+ region: global
10706
+ effective_from: "2026-11-20"
10707
+ input_per_mtok: 0.37
10708
+ output_per_mtok: 1.25
10709
+ cache_read_per_mtok: 0.075
10710
+ source_url: https://docs.z.ai/guides/overview/pricing
10637
10711
  - canonical_id: zai/glm-5v-turbo
10638
10712
  publisher: zai
10639
10713
  aliases:
@@ -21,11 +21,12 @@ EXECUTION_PROFILES = frozenset({"default", "bedrock"})
21
21
  # "moonshotai", the name its catalog aliases carry ("moonshot" is only an
22
22
  # input alias the catalog normalizes).
23
23
  ROUTE_PROVIDERS = frozenset(
24
- {"anthropic", "bedrock", "fireworks", "mistral", "moonshotai", "openai", "tinker", "vercel"}
24
+ {"anthropic", "azure_foundry", "bedrock", "fireworks", "mistral", "moonshotai", "openai", "tinker", "vercel"}
25
25
  )
26
26
  ROUTE_PROVIDER_CHANNELS = MappingProxyType(
27
27
  {
28
28
  "anthropic": "anthropic-api",
29
+ "azure_foundry": "azure-foundry-global-standard",
29
30
  "bedrock": "aws-bedrock",
30
31
  "fireworks": "fireworks-api",
31
32
  "mistral": "mistral-api",
@@ -38,6 +39,7 @@ ROUTE_PROVIDER_CHANNELS = MappingProxyType(
38
39
  OFFER_GROUP_PROFILES = MappingProxyType(
39
40
  {
40
41
  "gateway": "default",
42
+ "azure-foundry-direct": "default",
41
43
  "fireworks": "default",
42
44
  "openai-direct": "default",
43
45
  "anthropic-direct": "default",
@@ -50,6 +52,7 @@ OFFER_GROUP_PROFILES = MappingProxyType(
50
52
  OFFER_GROUP_CREDENTIALS = MappingProxyType(
51
53
  {
52
54
  "gateway": "AI_GATEWAY_API_KEY",
55
+ "azure-foundry-direct": "AZURE_FOUNDRY_API_KEY",
53
56
  "fireworks": "FIREWORKS_API_KEY",
54
57
  "openai-direct": "OPENAI_API_KEY",
55
58
  "anthropic-direct": "ANTHROPIC_API_KEY",
@@ -62,6 +65,7 @@ OFFER_GROUP_CREDENTIALS = MappingProxyType(
62
65
  OFFER_GROUP_PROVIDERS = MappingProxyType(
63
66
  {
64
67
  "gateway": "vercel",
68
+ "azure-foundry-direct": "azure_foundry",
65
69
  "fireworks": "fireworks",
66
70
  "openai-direct": "openai",
67
71
  "anthropic-direct": "anthropic",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.9.3
3
+ Version: 0.9.5
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