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]

Revert incorrect changes to sonnet-4 max output tokens (#14933)

Nicolas Herment50f625433de8
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 48a88f7afcb..e5cc96ea528 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -566,8 +566,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -834,8 +834,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -4831,8 +4831,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "anthropic",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -7650,8 +7650,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -19639,8 +19639,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -20979,8 +20979,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "vertex_ai-anthropic_models",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -21009,8 +21009,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "vertex_ai-anthropic_models",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 48a88f7afcb..e04c75655db 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -566,8 +566,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -834,8 +834,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -4831,8 +4831,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "anthropic",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -7650,8 +7650,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -16660,8 +16660,8 @@
"output_cost_per_token_above_200k_tokens": 2.25e-05,
"litellm_provider": "openrouter",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"supports_assistant_prefill": true,
@@ -19639,8 +19639,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -20979,8 +20979,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "vertex_ai-anthropic_models",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {
@@ -21009,8 +21009,8 @@
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
"litellm_provider": "vertex_ai-anthropic_models",
"max_input_tokens": 1000000,
- "max_output_tokens": 1000000,
- "max_tokens": 1000000,
+ "max_output_tokens": 64000,
+ "max_tokens": 64000,
"mode": "chat",
"output_cost_per_token": 1.5e-05,
"search_context_cost_per_query": {