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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(model-costs): apply GPT-5.6 Sol promotional pricing cut
Mubashir Osmanie6a6016e3e9c
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex a1961136d11..4f245fcdfbf 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -26104,33 +26104,33 @@"supports_xhigh_reasoning_effort": true},"gpt-5.6-sol": {- "cache_creation_input_token_cost": 6.25e-06,- "cache_creation_input_token_cost_above_272k_tokens": 1.25e-05,- "cache_creation_input_token_cost_above_272k_tokens_flex": 6.25e-06,- "cache_creation_input_token_cost_flex": 3.125e-06,- "cache_creation_input_token_cost_priority": 1.25e-05,- "cache_read_input_token_cost": 5e-07,- "cache_read_input_token_cost_above_272k_tokens": 1e-06,- "cache_read_input_token_cost_above_272k_tokens_flex": 5e-07,- "cache_read_input_token_cost_flex": 2.5e-07,- "cache_read_input_token_cost_priority": 1e-06,- "input_cost_per_token": 5e-06,- "input_cost_per_token_above_272k_tokens": 1e-05,- "input_cost_per_token_above_272k_tokens_flex": 5e-06,- "input_cost_per_token_batches": 2.5e-06,- "input_cost_per_token_flex": 2.5e-06,- "input_cost_per_token_priority": 1e-05,+ "cache_creation_input_token_cost": 5e-06,+ "cache_creation_input_token_cost_above_272k_tokens": 1e-05,+ "cache_creation_input_token_cost_above_272k_tokens_flex": 5e-06,+ "cache_creation_input_token_cost_flex": 2.5e-06,+ "cache_creation_input_token_cost_priority": 1e-05,+ "cache_read_input_token_cost": 4e-07,+ "cache_read_input_token_cost_above_272k_tokens": 8e-07,+ "cache_read_input_token_cost_above_272k_tokens_flex": 4e-07,+ "cache_read_input_token_cost_flex": 2e-07,+ "cache_read_input_token_cost_priority": 8e-07,+ "input_cost_per_token": 4e-06,+ "input_cost_per_token_above_272k_tokens": 8e-06,+ "input_cost_per_token_above_272k_tokens_flex": 4e-06,+ "input_cost_per_token_batches": 2e-06,+ "input_cost_per_token_flex": 2e-06,+ "input_cost_per_token_priority": 8e-06,"litellm_provider": "openai","max_input_tokens": 922000,"max_output_tokens": 128000,"max_tokens": 128000,"mode": "chat",- "output_cost_per_token": 3e-05,- "output_cost_per_token_above_272k_tokens": 4.5e-05,- "output_cost_per_token_above_272k_tokens_flex": 2.25e-05,- "output_cost_per_token_batches": 1.5e-05,- "output_cost_per_token_flex": 1.5e-05,- "output_cost_per_token_priority": 6e-05,+ "output_cost_per_token": 2e-05,+ "output_cost_per_token_above_272k_tokens": 3e-05,+ "output_cost_per_token_above_272k_tokens_flex": 1.5e-05,+ "output_cost_per_token_batches": 1e-05,+ "output_cost_per_token_flex": 1e-05,+ "output_cost_per_token_priority": 4e-05,"regional_processing_uplift_multiplier_eu": 1.1,"regional_processing_uplift_multiplier_us": 1.1,"search_context_cost_per_query": {@@ -26372,19 +26372,19 @@"supports_parallel_function_calling": true},"daybreak-blue-latest": {- "cache_creation_input_token_cost": 6.25e-06,- "cache_creation_input_token_cost_above_272k_tokens": 1.25e-05,- "cache_read_input_token_cost": 5e-07,- "cache_read_input_token_cost_above_272k_tokens": 1e-06,- "input_cost_per_token": 5e-06,- "input_cost_per_token_above_272k_tokens": 1e-05,+ "cache_creation_input_token_cost": 5e-06,+ "cache_creation_input_token_cost_above_272k_tokens": 1e-05,+ "cache_read_input_token_cost": 4e-07,+ "cache_read_input_token_cost_above_272k_tokens": 8e-07,+ "input_cost_per_token": 4e-06,+ "input_cost_per_token_above_272k_tokens": 8e-06,"litellm_provider": "openai","max_input_tokens": 1050000,"max_output_tokens": 128000,"max_tokens": 128000,"mode": "chat",- "output_cost_per_token": 3e-05,- "output_cost_per_token_above_272k_tokens": 4.5e-05,+ "output_cost_per_token": 2e-05,+ "output_cost_per_token_above_272k_tokens": 3e-05,"supported_endpoints": ["/v1/chat/completions","/v1/responses"diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex a1961136d11..4f245fcdfbf 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -26104,33 +26104,33 @@"supports_xhigh_reasoning_effort": true},"gpt-5.6-sol": {- "cache_creation_input_token_cost": 6.25e-06,- "cache_creation_input_token_cost_above_272k_tokens": 1.25e-05,- "cache_creation_input_token_cost_above_272k_tokens_flex": 6.25e-06,- "cache_creation_input_token_cost_flex": 3.125e-06,- "cache_creation_input_token_cost_priority": 1.25e-05,- "cache_read_input_token_cost": 5e-07,- "cache_read_input_token_cost_above_272k_tokens": 1e-06,- "cache_read_input_token_cost_above_272k_tokens_flex": 5e-07,- "cache_read_input_token_cost_flex": 2.5e-07,- "cache_read_input_token_cost_priority": 1e-06,- "input_cost_per_token": 5e-06,- "input_cost_per_token_above_272k_tokens": 1e-05,- "input_cost_per_token_above_272k_tokens_flex": 5e-06,- "input_cost_per_token_batches": 2.5e-06,- "input_cost_per_token_flex": 2.5e-06,- "input_cost_per_token_priority": 1e-05,+ "cache_creation_input_token_cost": 5e-06,+ "cache_creation_input_token_cost_above_272k_tokens": 1e-05,+ "cache_creation_input_token_cost_above_272k_tokens_flex": 5e-06,+ "cache_creation_input_token_cost_flex": 2.5e-06,+ "cache_creation_input_token_cost_priority": 1e-05,+ "cache_read_input_token_cost": 4e-07,+ "cache_read_input_token_cost_above_272k_tokens": 8e-07,+ "cache_read_input_token_cost_above_272k_tokens_flex": 4e-07,+ "cache_read_input_token_cost_flex": 2e-07,+ "cache_read_input_token_cost_priority": 8e-07,+ "input_cost_per_token": 4e-06,+ "input_cost_per_token_above_272k_tokens": 8e-06,+ "input_cost_per_token_above_272k_tokens_flex": 4e-06,+ "input_cost_per_token_batches": 2e-06,+ "input_cost_per_token_flex": 2e-06,+ "input_cost_per_token_priority": 8e-06,"litellm_provider": "openai","max_input_tokens": 922000,"max_output_tokens": 128000,"max_tokens": 128000,"mode": "chat",- "output_cost_per_token": 3e-05,- "output_cost_per_token_above_272k_tokens": 4.5e-05,- "output_cost_per_token_above_272k_tokens_flex": 2.25e-05,- "output_cost_per_token_batches": 1.5e-05,- "output_cost_per_token_flex": 1.5e-05,- "output_cost_per_token_priority": 6e-05,+ "output_cost_per_token": 2e-05,+ "output_cost_per_token_above_272k_tokens": 3e-05,+ "output_cost_per_token_above_272k_tokens_flex": 1.5e-05,+ "output_cost_per_token_batches": 1e-05,+ "output_cost_per_token_flex": 1e-05,+ "output_cost_per_token_priority": 4e-05,"regional_processing_uplift_multiplier_eu": 1.1,"regional_processing_uplift_multiplier_us": 1.1,"search_context_cost_per_query": {@@ -26372,19 +26372,19 @@"supports_parallel_function_calling": true},"daybreak-blue-latest": {- "cache_creation_input_token_cost": 6.25e-06,- "cache_creation_input_token_cost_above_272k_tokens": 1.25e-05,- "cache_read_input_token_cost": 5e-07,- "cache_read_input_token_cost_above_272k_tokens": 1e-06,- "input_cost_per_token": 5e-06,- "input_cost_per_token_above_272k_tokens": 1e-05,+ "cache_creation_input_token_cost": 5e-06,+ "cache_creation_input_token_cost_above_272k_tokens": 1e-05,+ "cache_read_input_token_cost": 4e-07,+ "cache_read_input_token_cost_above_272k_tokens": 8e-07,+ "input_cost_per_token": 4e-06,+ "input_cost_per_token_above_272k_tokens": 8e-06,"litellm_provider": "openai","max_input_tokens": 1050000,"max_output_tokens": 128000,"max_tokens": 128000,"mode": "chat",- "output_cost_per_token": 3e-05,- "output_cost_per_token_above_272k_tokens": 4.5e-05,+ "output_cost_per_token": 2e-05,+ "output_cost_per_token_above_272k_tokens": 3e-05,"supported_endpoints": ["/v1/chat/completions","/v1/responses"diff --git a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.pyindex f66056a54e2..0e7db195865 100644--- a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py+++ b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py@@ -914,7 +914,7 @@ def test_generic_cost_per_token_gpt55_pro():"model,input_cost,output_cost,cache_read_cost,cache_write_cost",[("gpt-5.6", 5e-6, 3e-5, 5e-7, 6.25e-6),- ("gpt-5.6-sol", 5e-6, 3e-5, 5e-7, 6.25e-6),+ ("gpt-5.6-sol", 4e-6, 2e-5, 4e-7, 5e-6),("gpt-5.6-terra", 2e-6, 1.2e-5, 2e-7, 2.5e-6),("gpt-5.6-luna", 2e-7, 1.2e-6, 2e-8, 2.5e-7),],@@ -969,7 +969,7 @@ def test_generic_cost_per_token_gpt56("model,flex_long_input_cost,flex_long_output_cost",[("gpt-5.6", 5e-6, 2.25e-5),- ("gpt-5.6-sol", 5e-6, 2.25e-5),+ ("gpt-5.6-sol", 4e-6, 1.5e-5),("gpt-5.6-terra", 2e-6, 9e-6),("gpt-5.6-luna", 2e-7, 9e-7),],@@ -3300,8 +3300,8 @@ def test_generic_cost_per_token_gemini_35_flash_lite():@pytest.mark.parametrize("service_tier,input_rate,cache_read_rate,cache_write_rate,output_rate",[- ("flex", 2.5e-6, 2.5e-7, 3.125e-6, 1.5e-5),- ("priority", 1e-5, 1e-6, 1.25e-5, 6e-5),+ ("flex", 2e-6, 2e-7, 2.5e-6, 1e-5),+ ("priority", 8e-6, 8e-7, 1e-5, 4e-5),],)def test_service_tier_cache_creation_rates_for_gpt_5_6(@@ -3314,7 +3314,7 @@ def test_service_tier_cache_creation_rates_for_gpt_5_6():"""Regression: gpt-5.6 publishes cache_creation_input_token_cost_flex/_priority, so aflex or priority request must bill cache writes at that tier's rate instead of falling- back to the standard 6.25e-6 rate."""+ back to the standard cache-write rate."""usage = Usage(prompt_tokens=10_000,completion_tokens=500,@@ -3361,8 +3361,8 @@ def test_fast_service_tier_bills_at_the_priority_rate(_local_model_cost_map):model="gpt-5.6-sol", usage=usage, custom_llm_provider="openai", service_tier="fast")- expected_prompt = 800 * 1e-05 + 200 * 1e-06- expected_completion = 500 * 6e-05+ expected_prompt = 800 * 8e-06 + 200 * 8e-07+ expected_completion = 500 * 4e-05assert fast == priorityassert fast[0] == pytest.approx(expected_prompt, rel=1e-9)@@ -3397,8 +3397,8 @@ def test_fast_service_tier_matches_priority_above_the_context_threshold(_local_m)assert fast == priority- assert fast[0] == pytest.approx(300_000 * 1e-05, rel=1e-9)- assert fast[1] == pytest.approx(1_000 * 4.5e-05, rel=1e-9)+ assert fast[0] == pytest.approx(300_000 * 8e-06, rel=1e-9)+ assert fast[1] == pytest.approx(1_000 * 3e-05, rel=1e-9)def test_priority_reasoning_tokens_bill_at_the_priority_output_rate(_local_model_cost_map):diff --git a/tests/test_litellm/test_cost_calculator.py b/tests/test_litellm/test_cost_calculator.pyindex 98938dee62e..2b30138faa2 100644--- a/tests/test_litellm/test_cost_calculator.py+++ b/tests/test_litellm/test_cost_calculator.py@@ -3774,4 +3774,4 @@ def test_completion_cost_prices_anthropic_shaped_cache_read_tokens():custom_llm_provider="openai",)- assert cost == pytest.approx(3 * 5e-6 + 4014 * 5e-7 + 5 * 3e-5, rel=1e-9)+ assert cost == pytest.approx(3 * 4e-6 + 4014 * 4e-7 + 5 * 2e-5, rel=1e-9)