Skip to content

Commit 9e1d428

Browse files
authored
update gemini embedding model cost metrics (#1010)
# Add cost metrics to Gemini embedding models Adds `input_cost_per_mil_tokens` and `output_cost_per_mil_tokens` to the Gemini embedding models in `model_list.json`, covering both the Gemini API entries and the Vertex (`publishers/google/models/...`) entries: | Model | Input ($/1M tokens) | Output ($/1M tokens) | |---|---|---| | `gemini-embedding-001` | 0.15 | 0 | | `gemini-embedding-2` | 0.20 | 0 | Pricing verified against the [official Gemini API pricing page](https://ai.google.dev/gemini-api/docs/pricing). Embedding models have no billed output tokens, so output cost is set to 0. **Note:** `gemini-embedding-2` is multimodal with per-modality input pricing (text $0.20/1M, image $0.45/1M, audio $6.50/1M, video $12.00/1M). The schema only supports a single input cost, so these entries reflect the text rate; non-text embedding inputs will be under-costed until per-modality cost fields exist.
1 parent 2e7e690 commit 9e1d428

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/proxy/schema/model_list.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7320,6 +7320,8 @@
73207320
"format": "google",
73217321
"flavor": "embedding",
73227322
"multimodal": true,
7323+
"input_cost_per_mil_tokens": 0.2,
7324+
"output_cost_per_mil_tokens": 0,
73237325
"displayName": "Gemini embedding 2",
73247326
"available_providers": [
73257327
"vertex"
@@ -7328,6 +7330,8 @@
73287330
"publishers/google/models/gemini-embedding-001": {
73297331
"format": "google",
73307332
"flavor": "embedding",
7333+
"input_cost_per_mil_tokens": 0.15,
7334+
"output_cost_per_mil_tokens": 0,
73317335
"displayName": "Gemini embedding 001",
73327336
"available_providers": [
73337337
"vertex"
@@ -11614,6 +11618,8 @@
1161411618
"format": "google",
1161511619
"flavor": "embedding",
1161611620
"multimodal": true,
11621+
"input_cost_per_mil_tokens": 0.2,
11622+
"output_cost_per_mil_tokens": 0,
1161711623
"displayName": "Gemini embedding 2",
1161811624
"fallback_models": [
1161911625
"publishers/google/models/gemini-embedding-2"
@@ -11626,6 +11632,8 @@
1162611632
"gemini-embedding-001": {
1162711633
"format": "google",
1162811634
"flavor": "embedding",
11635+
"input_cost_per_mil_tokens": 0.15,
11636+
"output_cost_per_mil_tokens": 0,
1162911637
"displayName": "Gemini embedding 001",
1163011638
"fallback_models": [
1163111639
"publishers/google/models/gemini-embedding-001"

0 commit comments

Comments
 (0)