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(pricing): add GovCloud Claude Opus 5 and us-gov. inference profile rows

mateo-berri43f31b0a4bde
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 44c4f10ec38..945653e09ef 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -42414,6 +42414,102 @@
"supports_vision": true,
"supports_xhigh_reasoning_effort": true
},
+ "us-gov.anthropic.claude-opus-5": {
+ "bedrock_converse_supports_strict_tools": false,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ "input_cost_per_token": 6e-06,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3e-05,
+ "prompt_cache_min_tokens": 512,
+ "supports_adaptive_thinking": true,
+ "supports_assistant_prefill": false,
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_mid_conversation_system": true,
+ "supports_native_structured_output": false,
+ "supports_output_config": true,
+ "supports_parallel_tool_use_config": 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
+ },
+ "us-gov.nvidia.nemotron-nano-3-30b": {
+ "input_cost_per_token": 7.2e-08,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 262144,
+ "max_output_tokens": 8192,
+ "max_tokens": 8192,
+ "mode": "chat",
+ "output_cost_per_token": 2.88e-07,
+ "source": "https://aws.amazon.com/bedrock/pricing/",
+ "supports_function_calling": true,
+ "supports_native_structured_output": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true
+ },
+ "us-gov.nvidia.nemotron-nano-12b-v2": {
+ "input_cost_per_token": 2.4e-07,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 128000,
+ "max_output_tokens": 8192,
+ "max_tokens": 8192,
+ "mode": "chat",
+ "output_cost_per_token": 7.2e-07,
+ "supports_system_messages": true,
+ "supports_vision": true
+ },
+ "us-gov.nvidia.nemotron-super-3-120b": {
+ "input_cost_per_token": 1.8e-07,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 256000,
+ "max_output_tokens": 32768,
+ "max_tokens": 32768,
+ "mode": "chat",
+ "output_cost_per_token": 7.8e-07,
+ "source": "https://aws.amazon.com/bedrock/pricing/",
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true
+ },
+ "us-gov.openai.gpt-oss-20b-1:0": {
+ "input_cost_per_token": 8.4e-08,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 128000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3.6e-07,
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true
+ },
+ "us-gov.openai.gpt-oss-120b-1:0": {
+ "input_cost_per_token": 1.8e-07,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 128000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 7.2e-07,
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true
+ },
"au.anthropic.claude-haiku-4-5-20251001-v1:0": {
"cache_creation_input_token_cost": 1.375e-06,
"cache_creation_input_token_cost_above_1hr": 2.2e-06,
@@ -58218,6 +58314,37 @@
"supports_vision": true,
"supports_xhigh_reasoning_effort": true
},
+ "bedrock/us-gov-west-1/anthropic.claude-opus-5": {
+ "bedrock_converse_supports_strict_tools": false,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ "input_cost_per_token": 6e-06,
+ "litellm_provider": "bedrock",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3e-05,
+ "prompt_cache_min_tokens": 512,
+ "supports_adaptive_thinking": true,
+ "supports_assistant_prefill": false,
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_mid_conversation_system": true,
+ "supports_native_structured_output": false,
+ "supports_output_config": true,
+ "supports_parallel_tool_use_config": 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
+ },
"bedrock/us-gov-east-1/nvidia.nemotron-nano-3-30b": {
"input_cost_per_token": 7.2e-08,
"litellm_provider": "bedrock",
@@ -58347,6 +58474,37 @@
"supports_vision": true,
"supports_xhigh_reasoning_effort": true
},
+ "bedrock/us-gov-east-1/anthropic.claude-opus-5": {
+ "bedrock_converse_supports_strict_tools": false,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ "input_cost_per_token": 6e-06,
+ "litellm_provider": "bedrock",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3e-05,
+ "prompt_cache_min_tokens": 512,
+ "supports_adaptive_thinking": true,
+ "supports_assistant_prefill": false,
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_mid_conversation_system": true,
+ "supports_native_structured_output": false,
+ "supports_output_config": true,
+ "supports_parallel_tool_use_config": 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
+ },
"bedrock_mantle/us-gov-west-1/openai.gpt-5.6-terra": {
"litellm_provider": "bedrock_mantle",
"max_input_tokens": 1050000,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 44c4f10ec38..945653e09ef 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -42414,6 +42414,102 @@
"supports_vision": true,
"supports_xhigh_reasoning_effort": true
},
+ "us-gov.anthropic.claude-opus-5": {
+ "bedrock_converse_supports_strict_tools": false,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ "input_cost_per_token": 6e-06,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3e-05,
+ "prompt_cache_min_tokens": 512,
+ "supports_adaptive_thinking": true,
+ "supports_assistant_prefill": false,
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_mid_conversation_system": true,
+ "supports_native_structured_output": false,
+ "supports_output_config": true,
+ "supports_parallel_tool_use_config": 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
+ },
+ "us-gov.nvidia.nemotron-nano-3-30b": {
+ "input_cost_per_token": 7.2e-08,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 262144,
+ "max_output_tokens": 8192,
+ "max_tokens": 8192,
+ "mode": "chat",
+ "output_cost_per_token": 2.88e-07,
+ "source": "https://aws.amazon.com/bedrock/pricing/",
+ "supports_function_calling": true,
+ "supports_native_structured_output": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true
+ },
+ "us-gov.nvidia.nemotron-nano-12b-v2": {
+ "input_cost_per_token": 2.4e-07,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 128000,
+ "max_output_tokens": 8192,
+ "max_tokens": 8192,
+ "mode": "chat",
+ "output_cost_per_token": 7.2e-07,
+ "supports_system_messages": true,
+ "supports_vision": true
+ },
+ "us-gov.nvidia.nemotron-super-3-120b": {
+ "input_cost_per_token": 1.8e-07,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 256000,
+ "max_output_tokens": 32768,
+ "max_tokens": 32768,
+ "mode": "chat",
+ "output_cost_per_token": 7.8e-07,
+ "source": "https://aws.amazon.com/bedrock/pricing/",
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true
+ },
+ "us-gov.openai.gpt-oss-20b-1:0": {
+ "input_cost_per_token": 8.4e-08,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 128000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3.6e-07,
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true
+ },
+ "us-gov.openai.gpt-oss-120b-1:0": {
+ "input_cost_per_token": 1.8e-07,
+ "litellm_provider": "bedrock_converse",
+ "max_input_tokens": 128000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 7.2e-07,
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true
+ },
"au.anthropic.claude-haiku-4-5-20251001-v1:0": {
"cache_creation_input_token_cost": 1.375e-06,
"cache_creation_input_token_cost_above_1hr": 2.2e-06,
@@ -58218,6 +58314,37 @@
"supports_vision": true,
"supports_xhigh_reasoning_effort": true
},
+ "bedrock/us-gov-west-1/anthropic.claude-opus-5": {
+ "bedrock_converse_supports_strict_tools": false,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ "input_cost_per_token": 6e-06,
+ "litellm_provider": "bedrock",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3e-05,
+ "prompt_cache_min_tokens": 512,
+ "supports_adaptive_thinking": true,
+ "supports_assistant_prefill": false,
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_mid_conversation_system": true,
+ "supports_native_structured_output": false,
+ "supports_output_config": true,
+ "supports_parallel_tool_use_config": 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
+ },
"bedrock/us-gov-east-1/nvidia.nemotron-nano-3-30b": {
"input_cost_per_token": 7.2e-08,
"litellm_provider": "bedrock",
@@ -58347,6 +58474,37 @@
"supports_vision": true,
"supports_xhigh_reasoning_effort": true
},
+ "bedrock/us-gov-east-1/anthropic.claude-opus-5": {
+ "bedrock_converse_supports_strict_tools": false,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ "input_cost_per_token": 6e-06,
+ "litellm_provider": "bedrock",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 3e-05,
+ "prompt_cache_min_tokens": 512,
+ "supports_adaptive_thinking": true,
+ "supports_assistant_prefill": false,
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_mid_conversation_system": true,
+ "supports_native_structured_output": false,
+ "supports_output_config": true,
+ "supports_parallel_tool_use_config": 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
+ },
"bedrock_mantle/us-gov-west-1/openai.gpt-5.6-terra": {
"litellm_provider": "bedrock_mantle",
"max_input_tokens": 1050000,
diff --git a/tests/test_litellm/test_bedrock_usgov_pricing.py b/tests/test_litellm/test_bedrock_usgov_pricing.py
index f7d95ecda01..45c867db70b 100644
--- a/tests/test_litellm/test_bedrock_usgov_pricing.py
+++ b/tests/test_litellm/test_bedrock_usgov_pricing.py
@@ -132,6 +132,13 @@ CLAUDE_GOV_EXPECTED = {
"cache_creation_input_token_cost_above_1hr": 1.2e-05,
"cache_read_input_token_cost": 6e-07,
},
+ "anthropic.claude-opus-5": {
+ "input_cost_per_token": 6e-06,
+ "output_cost_per_token": 3e-05,
+ "cache_creation_input_token_cost": 7.5e-06,
+ "cache_creation_input_token_cost_above_1hr": 1.2e-05,
+ "cache_read_input_token_cost": 6e-07,
+ },
}
@@ -144,15 +151,16 @@ USGOV_CLAUDE_KEY_TEMPLATES = {
@pytest.mark.parametrize("base_key", CLAUDE_GOV_EXPECTED)
@pytest.mark.parametrize("key_template,expected_provider", USGOV_CLAUDE_KEY_TEMPLATES.items())
-def test_usgov_claude_sonnet5_opus48_pricing(model_data, key_template, expected_provider, base_key):
- """Sonnet 5 and Opus 4.8 gov entries, both in-region keys and the us-gov.
- geo inference profile the model cards list for GovCloud, must match the
- rates AWS publishes on the Bedrock pricing page (1.2x global).
+def test_usgov_claude_pricing(model_data, key_template, expected_provider, base_key):
+ """Sonnet 5, Opus 4.8, and Opus 5 gov entries, both in-region keys and the
+ us-gov. geo inference profile the model cards list for GovCloud, must match
+ the rates AWS publishes in the GovCloud offer file (1.2x global).
"""
gov_key = key_template.format(base_key=base_key)
assert gov_key in model_data, f"Missing model entry: {gov_key}"
info = model_data[gov_key]
assert info["litellm_provider"] == expected_provider
+ assert "search_context_cost_per_query" not in info
for field, expected in CLAUDE_GOV_EXPECTED[base_key].items():
assert info[field] == expected, f"{gov_key}: {field} should be {expected} (got {info[field]})"
ratio = info[field] / model_data[base_key][field]
@@ -169,18 +177,19 @@ CONVERSE_GOV_EXPECTED = {
@pytest.mark.parametrize("base_key", CONVERSE_GOV_EXPECTED)
[email protected]("region", ["us-gov-east-1", "us-gov-west-1"])
-def test_usgov_converse_model_pricing(model_data, region, base_key):
- """Nemotron and gpt-oss gov entries must match the AWS Bedrock offer file,
- which prices both GovCloud regions identically at 1.2x commercial.
[email protected]("key_template,expected_provider", USGOV_CLAUDE_KEY_TEMPLATES.items())
+def test_usgov_converse_model_pricing(model_data, key_template, expected_provider, base_key):
+ """Nemotron and gpt-oss gov entries, in-region and the us-gov. geo inference
+ profile both GovCloud regions list as ACTIVE, must match the AWS Bedrock
+ offer file, which prices both regions identically at 1.2x commercial.
"""
- gov_key = f"bedrock/{region}/{base_key}"
+ gov_key = key_template.format(base_key=base_key)
assert gov_key in model_data, f"Missing model entry: {gov_key}"
info = model_data[gov_key]
expected_input, expected_output = CONVERSE_GOV_EXPECTED[base_key]
assert info["input_cost_per_token"] == expected_input
assert info["output_cost_per_token"] == expected_output
- assert info["litellm_provider"] == "bedrock"
+ assert info["litellm_provider"] == expected_provider
base = model_data[base_key]
assert abs(info["input_cost_per_token"] / base["input_cost_per_token"] - 1.2) < 1e-9
assert abs(info["output_cost_per_token"] / base["output_cost_per_token"] - 1.2) < 1e-9
diff --git a/whitelisted_bedrock_models.txt b/whitelisted_bedrock_models.txt
index 8753d7c3c77..1dc817ffe48 100644
--- a/whitelisted_bedrock_models.txt
+++ b/whitelisted_bedrock_models.txt
@@ -231,3 +231,5 @@ bedrock/us-gov-east-1/openai.gpt-oss-20b-1:0
bedrock/us-gov-east-1/openai.gpt-oss-120b-1:0
bedrock/us-gov-east-1/anthropic.claude-sonnet-5
bedrock/us-gov-east-1/anthropic.claude-opus-4-8
+bedrock/us-gov-west-1/anthropic.claude-opus-5
+bedrock/us-gov-east-1/anthropic.claude-opus-5