metergraph-core 0.8.20__tar.gz → 0.8.22__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.
- {metergraph_core-0.8.20/src/metergraph_core.egg-info → metergraph_core-0.8.22}/PKG-INFO +3 -1
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/README.md +2 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/pyproject.toml +1 -1
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/catalog.py +18 -1
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/data/models.yaml +91 -1
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/data/prices.yaml +160 -7
- {metergraph_core-0.8.20 → metergraph_core-0.8.22/src/metergraph_core.egg-info}/PKG-INFO +3 -1
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/MANIFEST.in +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/setup.cfg +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/__init__.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/billing.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/calls.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/catalog_delta.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/data/sources.yaml +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/extractors.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/families.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/loader.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/models.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/refresh.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/reliability.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/responses.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/retrieval.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core/sources.py +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core.egg-info/requires.txt +0 -0
- {metergraph_core-0.8.20 → metergraph_core-0.8.22}/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.
|
|
3
|
+
Version: 0.8.22
|
|
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
|
|
@@ -237,6 +237,8 @@ otherwise each retains the row's standard cache-write rate.
|
|
|
237
237
|
A `ModelUsage` count left `None` is unknown, not zero. A missing input or
|
|
238
238
|
output count keeps the subtotal that is known, marks the result `partial`, and
|
|
239
239
|
lists `input_tokens` or `output_tokens` in `missing_dimensions`.
|
|
240
|
+
Google API Omni 1.1 and 1.2 calls with aggregate output tokens are `partial`
|
|
241
|
+
with `output_modality_unavailable` because text and video have different rates.
|
|
240
242
|
|
|
241
243
|
`region` selects a regional price and overrides the `region` passed to
|
|
242
244
|
`load_catalog`. When neither names a region:
|
|
@@ -207,6 +207,8 @@ otherwise each retains the row's standard cache-write rate.
|
|
|
207
207
|
A `ModelUsage` count left `None` is unknown, not zero. A missing input or
|
|
208
208
|
output count keeps the subtotal that is known, marks the result `partial`, and
|
|
209
209
|
lists `input_tokens` or `output_tokens` in `missing_dimensions`.
|
|
210
|
+
Google API Omni 1.1 and 1.2 calls with aggregate output tokens are `partial`
|
|
211
|
+
with `output_modality_unavailable` because text and video have different rates.
|
|
210
212
|
|
|
211
213
|
`region` selects a regional price and overrides the `region` passed to
|
|
212
214
|
`load_catalog`. When neither names a region:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "metergraph-core"
|
|
3
|
-
version = "0.8.
|
|
3
|
+
version = "0.8.22"
|
|
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"
|
|
@@ -10,6 +10,11 @@ from typing import Any, Mapping
|
|
|
10
10
|
|
|
11
11
|
_MILLION = Decimal("1000000")
|
|
12
12
|
_COST_QUANTUM = Decimal("0.00000001")
|
|
13
|
+
# Aggregate output tokens cannot distinguish Google's text and video rates.
|
|
14
|
+
_OMNI_OUTPUT_AMBIGUOUS_FROM = {
|
|
15
|
+
"google/gemini-omni-1.1-flash": datetime(2026, 11, 17, tzinfo=timezone.utc),
|
|
16
|
+
"google/gemini-omni-1.2-flash": datetime(2026, 11, 5, tzinfo=timezone.utc),
|
|
17
|
+
}
|
|
13
18
|
_PROVIDER_ALIASES = {
|
|
14
19
|
"amazon-bedrock": "bedrock",
|
|
15
20
|
"aws": "bedrock",
|
|
@@ -608,6 +613,15 @@ def _price_tokens(
|
|
|
608
613
|
if price.batch_cache_write_1h_per_mtok is not None:
|
|
609
614
|
cache_write_1h_rate = price.batch_cache_write_1h_per_mtok
|
|
610
615
|
|
|
616
|
+
ambiguous_from = _OMNI_OUTPUT_AMBIGUOUS_FROM.get(price.model_id)
|
|
617
|
+
output_modality_unknown = (
|
|
618
|
+
price.pricing_channel == "google-api"
|
|
619
|
+
and ambiguous_from is not None
|
|
620
|
+
and at >= ambiguous_from
|
|
621
|
+
)
|
|
622
|
+
if output_modality_unknown:
|
|
623
|
+
output_rate = None
|
|
624
|
+
|
|
611
625
|
input_multiplier = Decimal("1")
|
|
612
626
|
output_multiplier = Decimal("1")
|
|
613
627
|
long_context = rules.get("long_context") or {}
|
|
@@ -644,7 +658,10 @@ def _price_tokens(
|
|
|
644
658
|
input_usd = Decimal(billable_input) * input_rate * input_multiplier / _MILLION
|
|
645
659
|
if output_rate is None:
|
|
646
660
|
if output_count:
|
|
647
|
-
reasons.append(
|
|
661
|
+
reasons.append(
|
|
662
|
+
"output_modality_unavailable"
|
|
663
|
+
if output_modality_unknown else "output_rate_unavailable"
|
|
664
|
+
)
|
|
648
665
|
else:
|
|
649
666
|
output_usd = Decimal(output_count) * output_rate * output_multiplier / _MILLION
|
|
650
667
|
if cache_read_count:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
version: '2026-11-
|
|
1
|
+
version: '2026-11-17'
|
|
2
2
|
models:
|
|
3
3
|
- canonical_id: openai/gpt-5.6-sol
|
|
4
4
|
display_name: GPT-5.6 Sol
|
|
@@ -984,6 +984,82 @@ models:
|
|
|
984
984
|
pricing_channel: tinker-serverless
|
|
985
985
|
execution_profiles:
|
|
986
986
|
- default
|
|
987
|
+
- canonical_id: google/gemini-4-carbon
|
|
988
|
+
display_name: Gemini 4 Carbon
|
|
989
|
+
publisher: google
|
|
990
|
+
released: '2026-11-10'
|
|
991
|
+
routes:
|
|
992
|
+
- key: default:google/gemini-4-carbon
|
|
993
|
+
id: google/gemini-4-carbon
|
|
994
|
+
provider: vercel
|
|
995
|
+
model_id: google/gemini-4-carbon
|
|
996
|
+
pricing_channel: vercel-ai-gateway
|
|
997
|
+
execution_profiles:
|
|
998
|
+
- default
|
|
999
|
+
- canonical_id: google/gemini-4-hydrogen
|
|
1000
|
+
display_name: Gemini 4 Hydrogen
|
|
1001
|
+
publisher: google
|
|
1002
|
+
released: '2026-11-12'
|
|
1003
|
+
routes:
|
|
1004
|
+
- key: default:google/gemini-4-hydrogen
|
|
1005
|
+
id: google/gemini-4-hydrogen
|
|
1006
|
+
provider: vercel
|
|
1007
|
+
model_id: google/gemini-4-hydrogen
|
|
1008
|
+
pricing_channel: vercel-ai-gateway
|
|
1009
|
+
execution_profiles:
|
|
1010
|
+
- default
|
|
1011
|
+
- canonical_id: alibaba/qwen4-max
|
|
1012
|
+
display_name: Qwen 4 Max
|
|
1013
|
+
publisher: alibaba
|
|
1014
|
+
released: '2026-11-15'
|
|
1015
|
+
routes:
|
|
1016
|
+
- key: default:alibaba/qwen4-max
|
|
1017
|
+
id: alibaba/qwen4-max
|
|
1018
|
+
provider: vercel
|
|
1019
|
+
model_id: alibaba/qwen4-max
|
|
1020
|
+
pricing_channel: vercel-ai-gateway
|
|
1021
|
+
execution_profiles:
|
|
1022
|
+
- default
|
|
1023
|
+
- canonical_id: openai/gpt-6.2-sol
|
|
1024
|
+
display_name: GPT-6.2 Sol
|
|
1025
|
+
publisher: openai
|
|
1026
|
+
released: '2026-11-17' # https://developers.openai.com/api/docs/changelog
|
|
1027
|
+
routes:
|
|
1028
|
+
- key: default:openai/gpt-6.2-sol
|
|
1029
|
+
id: openai/gpt-6.2-sol
|
|
1030
|
+
provider: vercel
|
|
1031
|
+
model_id: openai/gpt-6.2-sol
|
|
1032
|
+
pricing_channel: vercel-ai-gateway
|
|
1033
|
+
execution_profiles:
|
|
1034
|
+
- default
|
|
1035
|
+
- key: default:openai:gpt-6.2-sol
|
|
1036
|
+
id: openai:gpt-6.2-sol
|
|
1037
|
+
provider: openai
|
|
1038
|
+
model_id: gpt-6.2-sol
|
|
1039
|
+
pricing_channel: openai-api
|
|
1040
|
+
execution_profiles:
|
|
1041
|
+
- default
|
|
1042
|
+
display_name: GPT-6.2 Sol (direct)
|
|
1043
|
+
- canonical_id: openai/gpt-6.2-astra
|
|
1044
|
+
display_name: GPT-6.2 Astra
|
|
1045
|
+
publisher: openai
|
|
1046
|
+
released: '2026-11-17' # https://developers.openai.com/api/docs/changelog
|
|
1047
|
+
routes:
|
|
1048
|
+
- key: default:openai/gpt-6.2-astra
|
|
1049
|
+
id: openai/gpt-6.2-astra
|
|
1050
|
+
provider: vercel
|
|
1051
|
+
model_id: openai/gpt-6.2-astra
|
|
1052
|
+
pricing_channel: vercel-ai-gateway
|
|
1053
|
+
execution_profiles:
|
|
1054
|
+
- default
|
|
1055
|
+
- key: default:openai:gpt-6.2-astra
|
|
1056
|
+
id: openai:gpt-6.2-astra
|
|
1057
|
+
provider: openai
|
|
1058
|
+
model_id: gpt-6.2-astra
|
|
1059
|
+
pricing_channel: openai-api
|
|
1060
|
+
execution_profiles:
|
|
1061
|
+
- default
|
|
1062
|
+
display_name: GPT-6.2 Astra (direct)
|
|
987
1063
|
execution_profiles:
|
|
988
1064
|
- id: default
|
|
989
1065
|
routes:
|
|
@@ -1067,6 +1143,13 @@ execution_profiles:
|
|
|
1067
1143
|
- default:alibaba/qwen3.8-max
|
|
1068
1144
|
- default:mistral:mistral-small-2603
|
|
1069
1145
|
- default:tinker:inkling-2-small
|
|
1146
|
+
- default:google/gemini-4-carbon
|
|
1147
|
+
- default:google/gemini-4-hydrogen
|
|
1148
|
+
- default:alibaba/qwen4-max
|
|
1149
|
+
- default:openai/gpt-6.2-sol
|
|
1150
|
+
- default:openai/gpt-6.2-astra
|
|
1151
|
+
- default:openai:gpt-6.2-sol
|
|
1152
|
+
- default:openai:gpt-6.2-astra
|
|
1070
1153
|
|
|
1071
1154
|
- id: bedrock
|
|
1072
1155
|
routes:
|
|
@@ -1144,6 +1227,11 @@ offer_groups:
|
|
|
1144
1227
|
- default:meituan/longcat-2.5
|
|
1145
1228
|
- default:particle/particle-1
|
|
1146
1229
|
- default:alibaba/qwen3.8-max
|
|
1230
|
+
- default:google/gemini-4-carbon
|
|
1231
|
+
- default:google/gemini-4-hydrogen
|
|
1232
|
+
- default:alibaba/qwen4-max
|
|
1233
|
+
- default:openai/gpt-6.2-sol
|
|
1234
|
+
- default:openai/gpt-6.2-astra
|
|
1147
1235
|
- id: fireworks
|
|
1148
1236
|
credential: FIREWORKS_API_KEY
|
|
1149
1237
|
routes:
|
|
@@ -1160,6 +1248,8 @@ offer_groups:
|
|
|
1160
1248
|
- default:openai:gpt-5.4-nano
|
|
1161
1249
|
- default:openai:gpt-6.1-sol
|
|
1162
1250
|
- default:openai:gpt-6.1-terra
|
|
1251
|
+
- default:openai:gpt-6.2-sol
|
|
1252
|
+
- default:openai:gpt-6.2-astra
|
|
1163
1253
|
- id: anthropic-direct
|
|
1164
1254
|
credential: ANTHROPIC_API_KEY
|
|
1165
1255
|
routes:
|
|
@@ -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-
|
|
9
|
+
version: "2026-11-17"
|
|
10
10
|
currency: USD
|
|
11
|
-
pricing_verified_at: "2026-11-
|
|
11
|
+
pricing_verified_at: "2026-11-17"
|
|
12
12
|
models:
|
|
13
13
|
- canonical_id: openai/gpt-6-sol
|
|
14
14
|
publisher: openai
|
|
@@ -450,6 +450,94 @@ models:
|
|
|
450
450
|
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
451
451
|
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
452
452
|
|
|
453
|
+
- canonical_id: openai/gpt-6.2-sol
|
|
454
|
+
publisher: openai
|
|
455
|
+
family: {id: openai/gpt-sol, display_name: GPT Sol}
|
|
456
|
+
aliases:
|
|
457
|
+
- {provider: openai, alias: gpt-6.2-sol, channel: openai-api}
|
|
458
|
+
- {provider: litellm, alias: gpt-6.2-sol, channel: openai-api}
|
|
459
|
+
- {provider: unknown, alias: gpt-6.2-sol, channel: openai-api}
|
|
460
|
+
- provider: openai
|
|
461
|
+
alias: openai/gpt-6.2-sol
|
|
462
|
+
channel: vercel-ai-gateway
|
|
463
|
+
rules: {input_includes_cache_read: true, input_includes_cache_write: true}
|
|
464
|
+
- provider: vercel
|
|
465
|
+
alias: openai/gpt-6.2-sol
|
|
466
|
+
channel: vercel-ai-gateway
|
|
467
|
+
rules: {input_includes_cache_read: true, input_includes_cache_write: true}
|
|
468
|
+
prices:
|
|
469
|
+
# The 5m field stores the 30-minute cache-write rate.
|
|
470
|
+
- channel: openai-api
|
|
471
|
+
region: global
|
|
472
|
+
effective_from: "2026-11-17"
|
|
473
|
+
input_per_mtok: 2.00
|
|
474
|
+
output_per_mtok: 10.00
|
|
475
|
+
cache_read_per_mtok: 0.10
|
|
476
|
+
cache_write_5m_per_mtok: 2.50
|
|
477
|
+
batch_input_per_mtok: 1.00
|
|
478
|
+
batch_output_per_mtok: 5.00
|
|
479
|
+
batch_cache_read_per_mtok: 0.05
|
|
480
|
+
batch_cache_write_5m_per_mtok: 1.25
|
|
481
|
+
rules:
|
|
482
|
+
input_includes_cache_read: true
|
|
483
|
+
input_includes_cache_write: true
|
|
484
|
+
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
485
|
+
source_url: https://developers.openai.com/api/docs/models/gpt-6.2-sol
|
|
486
|
+
- channel: vercel-ai-gateway
|
|
487
|
+
region: global
|
|
488
|
+
effective_from: "2026-11-17"
|
|
489
|
+
input_per_mtok: 2.00
|
|
490
|
+
output_per_mtok: 10.00
|
|
491
|
+
cache_read_per_mtok: 0.10
|
|
492
|
+
cache_write_5m_per_mtok: 2.50
|
|
493
|
+
rules:
|
|
494
|
+
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
495
|
+
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
496
|
+
|
|
497
|
+
- canonical_id: openai/gpt-6.2-astra
|
|
498
|
+
publisher: openai
|
|
499
|
+
family: {id: openai/gpt-astra, display_name: GPT Astra}
|
|
500
|
+
aliases:
|
|
501
|
+
- {provider: openai, alias: gpt-6.2-astra, channel: openai-api}
|
|
502
|
+
- {provider: litellm, alias: gpt-6.2-astra, channel: openai-api}
|
|
503
|
+
- {provider: unknown, alias: gpt-6.2-astra, channel: openai-api}
|
|
504
|
+
- provider: openai
|
|
505
|
+
alias: openai/gpt-6.2-astra
|
|
506
|
+
channel: vercel-ai-gateway
|
|
507
|
+
rules: {input_includes_cache_read: true, input_includes_cache_write: true}
|
|
508
|
+
- provider: vercel
|
|
509
|
+
alias: openai/gpt-6.2-astra
|
|
510
|
+
channel: vercel-ai-gateway
|
|
511
|
+
rules: {input_includes_cache_read: true, input_includes_cache_write: true}
|
|
512
|
+
prices:
|
|
513
|
+
# The 5m field stores the 30-minute cache-write rate.
|
|
514
|
+
- channel: openai-api
|
|
515
|
+
region: global
|
|
516
|
+
effective_from: "2026-11-17"
|
|
517
|
+
input_per_mtok: 8.00
|
|
518
|
+
output_per_mtok: 40.00
|
|
519
|
+
cache_read_per_mtok: 0.40
|
|
520
|
+
cache_write_5m_per_mtok: 10.00
|
|
521
|
+
batch_input_per_mtok: 4.00
|
|
522
|
+
batch_output_per_mtok: 20.00
|
|
523
|
+
batch_cache_read_per_mtok: 0.20
|
|
524
|
+
batch_cache_write_5m_per_mtok: 5.00
|
|
525
|
+
rules:
|
|
526
|
+
input_includes_cache_read: true
|
|
527
|
+
input_includes_cache_write: true
|
|
528
|
+
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
529
|
+
source_url: https://developers.openai.com/api/docs/models/gpt-6.2-astra
|
|
530
|
+
- channel: vercel-ai-gateway
|
|
531
|
+
region: global
|
|
532
|
+
effective_from: "2026-11-17"
|
|
533
|
+
input_per_mtok: 8.00
|
|
534
|
+
output_per_mtok: 40.00
|
|
535
|
+
cache_read_per_mtok: 0.40
|
|
536
|
+
cache_write_5m_per_mtok: 10.00
|
|
537
|
+
rules:
|
|
538
|
+
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
539
|
+
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
540
|
+
|
|
453
541
|
- canonical_id: openai/gpt-5.6-sol
|
|
454
542
|
publisher: openai
|
|
455
543
|
family: {id: openai/gpt-sol, display_name: GPT Sol}
|
|
@@ -4942,9 +5030,7 @@ models:
|
|
|
4942
5030
|
- {provider: google, alias: gemini-omni-1.1-flash, channel: google-api}
|
|
4943
5031
|
- {provider: google, alias: models/gemini-omni-1.1-flash, channel: google-api}
|
|
4944
5032
|
prices:
|
|
4945
|
-
# Google lists $9.00 text and $17.50 video output
|
|
4946
|
-
# billed rate, the one its stated 5,792 tokens per second of 720p video
|
|
4947
|
-
# at about $0.10 per second resolves to.
|
|
5033
|
+
# Google lists $9.00 text and $17.50 video output; this row records video.
|
|
4948
5034
|
- channel: google-api
|
|
4949
5035
|
region: global
|
|
4950
5036
|
effective_from: "2026-08-27"
|
|
@@ -4978,9 +5064,17 @@ models:
|
|
|
4978
5064
|
- channel: google-api
|
|
4979
5065
|
region: global
|
|
4980
5066
|
effective_from: "2026-10-31"
|
|
5067
|
+
effective_to: "2026-12-03"
|
|
4981
5068
|
input_per_mtok: 1.50
|
|
4982
5069
|
output_per_mtok: 17.50
|
|
4983
5070
|
source_url: https://ai.google.dev/gemini-api/docs/pricing
|
|
5071
|
+
# Google routes this endpoint to 1.2; output rates depend on modality.
|
|
5072
|
+
- channel: google-api
|
|
5073
|
+
region: global
|
|
5074
|
+
effective_from: "2026-12-03"
|
|
5075
|
+
input_per_mtok: 1.50
|
|
5076
|
+
output_per_mtok: 12.00
|
|
5077
|
+
source_url: https://aistudio.google.com/docs/pricing
|
|
4984
5078
|
|
|
4985
5079
|
# Retrieval prices: USD per 1,000 counted operations (completed searches, tool
|
|
4986
5080
|
# calls, executed grounding queries), billed on the provider's direct channel.
|
|
@@ -5125,6 +5219,34 @@ models:
|
|
|
5125
5219
|
output_per_mtok: 6.00
|
|
5126
5220
|
cache_read_per_mtok: 0.25
|
|
5127
5221
|
source_url: https://fireworks.ai/models/fireworks/qwen3p8-max
|
|
5222
|
+
- canonical_id: alibaba/qwen4-max
|
|
5223
|
+
publisher: alibaba
|
|
5224
|
+
family: {id: alibaba/qwen-max, display_name: Qwen Max}
|
|
5225
|
+
aliases:
|
|
5226
|
+
- {provider: alibaba, alias: qwen4-max, channel: alibaba-api}
|
|
5227
|
+
- {provider: litellm, alias: qwen4-max, channel: alibaba-api}
|
|
5228
|
+
- {provider: unknown, alias: qwen4-max, channel: alibaba-api}
|
|
5229
|
+
- {provider: alibaba, alias: alibaba/qwen4-max, channel: vercel-ai-gateway, rules: {input_includes_cache_read: true, input_includes_cache_write: true}}
|
|
5230
|
+
- {provider: vercel, alias: alibaba/qwen4-max, channel: vercel-ai-gateway, rules: {input_includes_cache_read: true, input_includes_cache_write: true}}
|
|
5231
|
+
prices:
|
|
5232
|
+
# Singapore (International) rates. The Global scope lists lower rates.
|
|
5233
|
+
- channel: alibaba-api
|
|
5234
|
+
region: global
|
|
5235
|
+
effective_from: "2026-11-15"
|
|
5236
|
+
input_per_mtok: 1.50
|
|
5237
|
+
output_per_mtok: 4.50
|
|
5238
|
+
cache_read_per_mtok: 0.075
|
|
5239
|
+
cache_write_5m_per_mtok: 1.875
|
|
5240
|
+
cache_write_1h_per_mtok: 3.00
|
|
5241
|
+
source_url: https://www.alibabacloud.com/help/en/model-studio/model-pricing
|
|
5242
|
+
- channel: vercel-ai-gateway
|
|
5243
|
+
region: global
|
|
5244
|
+
effective_from: "2026-11-15"
|
|
5245
|
+
input_per_mtok: 1.50
|
|
5246
|
+
output_per_mtok: 4.50
|
|
5247
|
+
cache_read_per_mtok: 0.075
|
|
5248
|
+
cache_write_5m_per_mtok: 1.875
|
|
5249
|
+
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
5128
5250
|
- canonical_id: alibaba/qwen3.8-max-prime
|
|
5129
5251
|
publisher: alibaba
|
|
5130
5252
|
aliases:
|
|
@@ -13740,13 +13862,21 @@ models:
|
|
|
13740
13862
|
batch_output_per_mtok: 10.00
|
|
13741
13863
|
batch_cache_read_per_mtok: 0.10
|
|
13742
13864
|
source_url: https://aistudio.google.com/docs/pricing
|
|
13743
|
-
#
|
|
13865
|
+
# Until 2026-11-17, the gateway listed no cache-read rate, so cache reads billed at its input rate.
|
|
13744
13866
|
- channel: vercel-ai-gateway
|
|
13745
13867
|
region: global
|
|
13746
13868
|
effective_from: "2026-11-12"
|
|
13869
|
+
effective_to: "2026-11-17"
|
|
13747
13870
|
input_per_mtok: 2.00
|
|
13748
13871
|
output_per_mtok: 10.00
|
|
13749
13872
|
source_url: https://vercel.com/ai-gateway/models/gemini-4-carbon
|
|
13873
|
+
- channel: vercel-ai-gateway
|
|
13874
|
+
region: global
|
|
13875
|
+
effective_from: "2026-11-17"
|
|
13876
|
+
input_per_mtok: 2.00
|
|
13877
|
+
output_per_mtok: 10.00
|
|
13878
|
+
cache_read_per_mtok: 0.10
|
|
13879
|
+
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
13750
13880
|
|
|
13751
13881
|
- canonical_id: google/gemini-4-hydrogen
|
|
13752
13882
|
publisher: google
|
|
@@ -13776,13 +13906,36 @@ models:
|
|
|
13776
13906
|
batch_output_per_mtok: 3.75
|
|
13777
13907
|
batch_cache_read_per_mtok: 0.0375
|
|
13778
13908
|
source_url: https://aistudio.google.com/docs/pricing
|
|
13779
|
-
#
|
|
13909
|
+
# Until 2026-11-17, the gateway listed no cache-read rate, so cache reads billed at its input rate.
|
|
13780
13910
|
- channel: vercel-ai-gateway
|
|
13781
13911
|
region: global
|
|
13782
13912
|
effective_from: "2026-11-12"
|
|
13913
|
+
effective_to: "2026-11-17"
|
|
13783
13914
|
input_per_mtok: 1.50
|
|
13784
13915
|
output_per_mtok: 7.50
|
|
13785
13916
|
source_url: https://vercel.com/ai-gateway/models/gemini-4-hydrogen
|
|
13917
|
+
- channel: vercel-ai-gateway
|
|
13918
|
+
region: global
|
|
13919
|
+
effective_from: "2026-11-17"
|
|
13920
|
+
input_per_mtok: 1.50
|
|
13921
|
+
output_per_mtok: 7.50
|
|
13922
|
+
cache_read_per_mtok: 0.075
|
|
13923
|
+
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
13924
|
+
|
|
13925
|
+
- canonical_id: google/gemini-omni-1.2-flash
|
|
13926
|
+
publisher: google
|
|
13927
|
+
family: {id: google/gemini-omni-flash, display_name: Gemini Omni Flash}
|
|
13928
|
+
aliases:
|
|
13929
|
+
- {provider: google, alias: gemini-omni-1.2-flash, channel: google-api}
|
|
13930
|
+
- {provider: google, alias: models/gemini-omni-1.2-flash, channel: google-api}
|
|
13931
|
+
prices:
|
|
13932
|
+
# Google lists $9.00 text and $12.00 video output; this row records video.
|
|
13933
|
+
- channel: google-api
|
|
13934
|
+
region: global
|
|
13935
|
+
effective_from: "2026-11-05"
|
|
13936
|
+
input_per_mtok: 1.50
|
|
13937
|
+
output_per_mtok: 12.00
|
|
13938
|
+
source_url: https://aistudio.google.com/docs/pricing
|
|
13786
13939
|
|
|
13787
13940
|
retrieval:
|
|
13788
13941
|
- channel: anthropic-api
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metergraph-core
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.22
|
|
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
|
|
@@ -237,6 +237,8 @@ otherwise each retains the row's standard cache-write rate.
|
|
|
237
237
|
A `ModelUsage` count left `None` is unknown, not zero. A missing input or
|
|
238
238
|
output count keeps the subtotal that is known, marks the result `partial`, and
|
|
239
239
|
lists `input_tokens` or `output_tokens` in `missing_dimensions`.
|
|
240
|
+
Google API Omni 1.1 and 1.2 calls with aggregate output tokens are `partial`
|
|
241
|
+
with `output_modality_unavailable` because text and video have different rates.
|
|
240
242
|
|
|
241
243
|
`region` selects a regional price and overrides the `region` passed to
|
|
242
244
|
`load_catalog`. When neither names a region:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{metergraph_core-0.8.20 → metergraph_core-0.8.22}/src/metergraph_core.egg-info/top_level.txt
RENAMED
|
File without changes
|