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(bedrock): add jp.anthropic.claude-opus-4-8 to model cost map (#32840)
Mateo Wang4737e75c8603
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 2a269d693ec..f3adfaedbdc 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -1653,6 +1653,41 @@"bedrock_output_config_effort_ceiling": "xhigh","supports_parallel_tool_use_config": true},+ "jp.anthropic.claude-opus-4-8": {+ "bedrock_converse_supports_strict_tools": false,+ "supports_adaptive_thinking": true,+ "cache_creation_input_token_cost": 6.875e-06,+ "cache_creation_input_token_cost_above_1hr": 1.1e-05,+ "cache_read_input_token_cost": 5.5e-07,+ "input_cost_per_token": 5.5e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 1000000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 2.75e-05,+ "search_context_cost_per_query": {+ "search_context_size_high": 0.01,+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01+ },+ "supports_assistant_prefill": false,+ "supports_computer_use": true,+ "supports_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_sampling_params": false,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_xhigh_reasoning_effort": true,+ "supports_native_structured_output": true,+ "supports_max_reasoning_effort": true,+ "supports_output_config": true,+ "bedrock_output_config_effort_ceiling": "xhigh",+ "supports_parallel_tool_use_config": true+ },"jp.anthropic.claude-opus-4-7": {"bedrock_converse_supports_strict_tools": false,"cache_creation_input_token_cost": 6.875e-06,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex e79ddbe35d2..a85b8922849 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -1653,6 +1653,41 @@"bedrock_output_config_effort_ceiling": "xhigh","supports_parallel_tool_use_config": true},+ "jp.anthropic.claude-opus-4-8": {+ "bedrock_converse_supports_strict_tools": false,+ "supports_adaptive_thinking": true,+ "cache_creation_input_token_cost": 6.875e-06,+ "cache_creation_input_token_cost_above_1hr": 1.1e-05,+ "cache_read_input_token_cost": 5.5e-07,+ "input_cost_per_token": 5.5e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 1000000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 2.75e-05,+ "search_context_cost_per_query": {+ "search_context_size_high": 0.01,+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01+ },+ "supports_assistant_prefill": false,+ "supports_computer_use": true,+ "supports_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_sampling_params": false,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_xhigh_reasoning_effort": true,+ "supports_native_structured_output": true,+ "supports_max_reasoning_effort": true,+ "supports_output_config": true,+ "bedrock_output_config_effort_ceiling": "xhigh",+ "supports_parallel_tool_use_config": true+ },"jp.anthropic.claude-opus-4-7": {"bedrock_converse_supports_strict_tools": false,"cache_creation_input_token_cost": 6.875e-06,diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.pyindex d739f9c116a..bdb25120563 100644--- a/tests/test_litellm/test_utils.py+++ b/tests/test_litellm/test_utils.py@@ -1091,8 +1091,8 @@ def test_get_model_info_bedrock_regional_inference_profile_pricing(local_model_cdef test_get_model_info_bedrock_regional_profile_without_entry_falls_back_to_base(local_model_cost_map):"""A regional profile with no dedicated cost-map entry must still resolve to itsregion-stripped base entry."""- assert "jp.anthropic.claude-opus-4-8" not in litellm.model_cost- info = litellm.get_model_info(model="bedrock/jp.anthropic.claude-opus-4-8")+ assert "apac.anthropic.claude-opus-4-8" not in litellm.model_cost+ info = litellm.get_model_info(model="bedrock/apac.anthropic.claude-opus-4-8")assert info["key"] == "anthropic.claude-opus-4-8"