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]

[Feat] Add cost tracking for new vertex_ai/llama-3 API models (#12878)

Ishaan Jaffb026f6b28006
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 61d4b5c0dc4..33448775b5c 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -9067,7 +9067,23 @@
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#partner-models",
"supports_tool_choice": true
},
- "vertex_ai/meta/llama-3.2-90b-vision-instruct-maas": {
+ "vertex_ai/meta/llama-3.1-8b-instruct-maas": {
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 2048,
+ "input_cost_per_token": 0.0,
+ "output_cost_per_token": 0.0,
+ "litellm_provider": "vertex_ai-llama_models",
+ "mode": "chat",
+ "supports_system_messages": true,
+ "supports_vision": true,
+ "source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
+ "supports_tool_choice": true,
+ "metadata": {
+ "notes": "VertexAI states that The Llama 3.1 API service for llama-3.1-70b-instruct-maas and llama-3.1-8b-instruct-maas are in public preview and at no cost."
+ }
+ },
+ "vertex_ai/meta/llama-3.1-70b-instruct-maas": {
"max_tokens": 128000,
"max_input_tokens": 128000,
"max_output_tokens": 2048,
@@ -9080,6 +9096,35 @@
"source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
"supports_tool_choice": true
},
+ "vertex_ai/meta/llama-3.1-405b-instruct-maas": {
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 2048,
+ "input_cost_per_token": 5e-06,
+ "output_cost_per_token": 16e-06,
+ "litellm_provider": "vertex_ai-llama_models",
+ "mode": "chat",
+ "supports_system_messages": true,
+ "supports_vision": true,
+ "source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
+ "supports_tool_choice": true
+ },
+ "vertex_ai/meta/llama-3.2-90b-vision-instruct-maas": {
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 2048,
+ "input_cost_per_token": 0.0,
+ "output_cost_per_token": 0.0,
+ "litellm_provider": "vertex_ai-llama_models",
+ "mode": "chat",
+ "supports_system_messages": true,
+ "supports_vision": true,
+ "source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
+ "supports_tool_choice": true,
+ "metadata": {
+ "notes": "VertexAI states that The Llama 3.2 API service is at no cost during public preview, and will be priced as per dollar-per-1M-tokens at GA."
+ }
+ },
"vertex_ai/mistral-large@latest": {
"max_tokens": 8191,
"max_input_tokens": 128000,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 2949fd7284e..6ac7e4e1943 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -9066,7 +9066,23 @@
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#partner-models",
"supports_tool_choice": true
},
- "vertex_ai/meta/llama-3.2-90b-vision-instruct-maas": {
+ "vertex_ai/meta/llama-3.1-8b-instruct-maas": {
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 2048,
+ "input_cost_per_token": 0.0,
+ "output_cost_per_token": 0.0,
+ "litellm_provider": "vertex_ai-llama_models",
+ "mode": "chat",
+ "supports_system_messages": true,
+ "supports_vision": true,
+ "source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
+ "supports_tool_choice": true,
+ "metadata": {
+ "notes": "VertexAI states that The Llama 3.1 API service for llama-3.1-70b-instruct-maas and llama-3.1-8b-instruct-maas are in public preview and at no cost."
+ }
+ },
+ "vertex_ai/meta/llama-3.1-70b-instruct-maas": {
"max_tokens": 128000,
"max_input_tokens": 128000,
"max_output_tokens": 2048,
@@ -9079,6 +9095,35 @@
"source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
"supports_tool_choice": true
},
+ "vertex_ai/meta/llama-3.1-405b-instruct-maas": {
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 2048,
+ "input_cost_per_token": 5e-06,
+ "output_cost_per_token": 16e-06,
+ "litellm_provider": "vertex_ai-llama_models",
+ "mode": "chat",
+ "supports_system_messages": true,
+ "supports_vision": true,
+ "source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
+ "supports_tool_choice": true
+ },
+ "vertex_ai/meta/llama-3.2-90b-vision-instruct-maas": {
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 2048,
+ "input_cost_per_token": 0.0,
+ "output_cost_per_token": 0.0,
+ "litellm_provider": "vertex_ai-llama_models",
+ "mode": "chat",
+ "supports_system_messages": true,
+ "supports_vision": true,
+ "source": "https://console.cloud.google.com/vertex-ai/publishers/meta/model-garden/llama-3.2-90b-vision-instruct-maas",
+ "supports_tool_choice": true,
+ "metadata": {
+ "notes": "VertexAI states that The Llama 3.2 API service is at no cost during public preview, and will be priced as per dollar-per-1M-tokens at GA."
+ }
+ },
"vertex_ai/mistral-large@latest": {
"max_tokens": 8191,
"max_input_tokens": 128000,