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]

add sonar pricings (#8476)

Lucca Zenóbiodfb5a9985df5
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 612e5ad1a15..309cb25ee00 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -8196,6 +8196,24 @@
"deprecation_date": "2025-02-22",
"supports_tool_choice": true
},
+ "perplexity/sonar": {
+ "max_tokens": 127072,
+ "max_input_tokens": 127072,
+ "max_output_tokens": 127072,
+ "input_cost_per_token": 0.000001,
+ "output_cost_per_token": 0.000001,
+ "litellm_provider": "perplexity",
+ "mode": "chat"
+ },
+ "perplexity/sonar-pro": {
+ "max_tokens": 200000,
+ "max_input_tokens": 200000,
+ "max_output_tokens": 8096,
+ "input_cost_per_token": 0.000003,
+ "output_cost_per_token": 0.000015,
+ "litellm_provider": "perplexity",
+ "mode": "chat"
+ },
"perplexity/pplx-7b-chat": {
"max_tokens": 8192,
"max_input_tokens": 8192,
@@ -9068,4 +9086,4 @@
"output_cost_per_second": 0.00,
"litellm_provider": "assemblyai"
}
-}
\ No newline at end of file
+}
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 612e5ad1a15..309cb25ee00 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -8196,6 +8196,24 @@
"deprecation_date": "2025-02-22",
"supports_tool_choice": true
},
+ "perplexity/sonar": {
+ "max_tokens": 127072,
+ "max_input_tokens": 127072,
+ "max_output_tokens": 127072,
+ "input_cost_per_token": 0.000001,
+ "output_cost_per_token": 0.000001,
+ "litellm_provider": "perplexity",
+ "mode": "chat"
+ },
+ "perplexity/sonar-pro": {
+ "max_tokens": 200000,
+ "max_input_tokens": 200000,
+ "max_output_tokens": 8096,
+ "input_cost_per_token": 0.000003,
+ "output_cost_per_token": 0.000015,
+ "litellm_provider": "perplexity",
+ "mode": "chat"
+ },
"perplexity/pplx-7b-chat": {
"max_tokens": 8192,
"max_input_tokens": 8192,
@@ -9068,4 +9086,4 @@
"output_cost_per_second": 0.00,
"litellm_provider": "assemblyai"
}
-}
\ No newline at end of file
+}