Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

build(model_prices_and_context_window.json): add gemini multimodal embedding cost

Krrish Dholakia109add7946ce
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 06f7238c01f..b8e32a24ce4 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -5373,6 +5373,23 @@
"mode": "embedding",
"source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models"
},
+ "multimodalembedding": {
+ "max_tokens": 2048,
+ "max_input_tokens": 2048,
+ "output_vector_size": 768,
+ "input_cost_per_character": 0.0000002,
+ "input_cost_per_image": 0.0001,
+ "input_cost_per_video_per_second": 0.0005,
+ "input_cost_per_video_per_second_above_8s_interval": 0.0010,
+ "input_cost_per_video_per_second_above_15s_interval": 0.0020,
+ "input_cost_per_token": 0.0000008,
+ "output_cost_per_token": 0,
+ "litellm_provider": "vertex_ai-embedding-models",
+ "mode": "embedding",
+ "supported_endpoints": ["/v1/embeddings"],
+ "supported_modalities": ["text", "image", "video"],
+ "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models"
+ },
"text-embedding-large-exp-03-07": {
"max_tokens": 8192,
"max_input_tokens": 8192,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 06f7238c01f..b8e32a24ce4 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -5373,6 +5373,23 @@
"mode": "embedding",
"source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models"
},
+ "multimodalembedding": {
+ "max_tokens": 2048,
+ "max_input_tokens": 2048,
+ "output_vector_size": 768,
+ "input_cost_per_character": 0.0000002,
+ "input_cost_per_image": 0.0001,
+ "input_cost_per_video_per_second": 0.0005,
+ "input_cost_per_video_per_second_above_8s_interval": 0.0010,
+ "input_cost_per_video_per_second_above_15s_interval": 0.0020,
+ "input_cost_per_token": 0.0000008,
+ "output_cost_per_token": 0,
+ "litellm_provider": "vertex_ai-embedding-models",
+ "mode": "embedding",
+ "supported_endpoints": ["/v1/embeddings"],
+ "supported_modalities": ["text", "image", "video"],
+ "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models"
+ },
"text-embedding-large-exp-03-07": {
"max_tokens": 8192,
"max_input_tokens": 8192,
diff --git a/tests/local_testing/test_get_model_info.py b/tests/local_testing/test_get_model_info.py
index 1a0f6d7a8d8..27b9b1a2b69 100644
--- a/tests/local_testing/test_get_model_info.py
+++ b/tests/local_testing/test_get_model_info.py
@@ -441,6 +441,10 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
"input_cost_per_token_batches": {"type": "number"},
"input_cost_per_token_cache_hit": {"type": "number"},
"input_cost_per_video_per_second": {"type": "number"},
+ "input_cost_per_video_per_second_above_8s_interval": {"type": "number"},
+ "input_cost_per_video_per_second_above_15s_interval": {
+ "type": "number"
+ },
"input_cost_per_video_per_second_above_128k_tokens": {"type": "number"},
"input_dbu_cost_per_token": {"type": "number"},
"litellm_provider": {"type": "string"},