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(openai): add GPT-6 Sol and GPT-6 Luna (#42515)

devin-ai-integration[bot]e0c2cbff21fb
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 589c4099bd7..8f9958e0031 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -34269,6 +34269,158 @@
"supports_web_search": true,
"supports_xhigh_reasoning_effort": true
},
+ "gpt-6-sol": {
+ "cache_creation_input_token_cost": 2.5e-06,
+ "cache_creation_input_token_cost_above_272k_tokens": 5e-06,
+ "cache_creation_input_token_cost_above_272k_tokens_flex": 2.5e-06,
+ "cache_creation_input_token_cost_above_272k_tokens_priority": 1e-05,
+ "cache_creation_input_token_cost_flex": 1.25e-06,
+ "cache_creation_input_token_cost_priority": 5e-06,
+ "cache_read_input_token_cost": 2e-07,
+ "cache_read_input_token_cost_above_272k_tokens": 4e-07,
+ "cache_read_input_token_cost_above_272k_tokens_flex": 2e-07,
+ "cache_read_input_token_cost_above_272k_tokens_priority": 8e-07,
+ "cache_read_input_token_cost_batches": 1e-07,
+ "cache_read_input_token_cost_above_272k_tokens_batches": 2e-07,
+ "cache_creation_input_token_cost_batches": 1.25e-06,
+ "cache_creation_input_token_cost_above_272k_tokens_batches": 2.5e-06,
+ "cache_read_input_token_cost_flex": 1e-07,
+ "cache_read_input_token_cost_priority": 4e-07,
+ "input_cost_per_token": 2e-06,
+ "input_cost_per_token_above_272k_tokens": 4e-06,
+ "input_cost_per_token_above_272k_tokens_flex": 2e-06,
+ "input_cost_per_token_above_272k_tokens_priority": 8e-06,
+ "input_cost_per_token_batches": 1e-06,
+ "input_cost_per_token_above_272k_tokens_batches": 2e-06,
+ "input_cost_per_token_flex": 1e-06,
+ "input_cost_per_token_priority": 4e-06,
+ "litellm_provider": "openai",
+ "max_input_tokens": 922000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 1e-05,
+ "output_cost_per_token_above_272k_tokens": 1.5e-05,
+ "output_cost_per_token_above_272k_tokens_flex": 7.5e-06,
+ "output_cost_per_token_above_272k_tokens_priority": 3e-05,
+ "output_cost_per_token_batches": 5e-06,
+ "output_cost_per_token_above_272k_tokens_batches": 7.5e-06,
+ "output_cost_per_token_flex": 5e-06,
+ "output_cost_per_token_priority": 2e-05,
+ "regional_processing_uplift_multiplier_eu": 1.1,
+ "regional_processing_uplift_multiplier_us": 1.1,
+ "search_context_cost_per_query": {
+ "search_context_size_high": 0.01,
+ "search_context_size_low": 0.01,
+ "search_context_size_medium": 0.01
+ },
+ "source": "https://developers.openai.com/api/docs/pricing",
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/batch",
+ "/v1/responses"
+ ],
+ "supported_modalities": [
+ "text",
+ "image"
+ ],
+ "supported_output_modalities": [
+ "text"
+ ],
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_minimal_reasoning_effort": false,
+ "supports_native_streaming": true,
+ "supports_none_reasoning_effort": true,
+ "supports_parallel_function_calling": true,
+ "supports_pdf_input": true,
+ "supports_prompt_cache_breakpoint": true,
+ "supports_prompt_caching": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true,
+ "supports_vision": true,
+ "supports_web_search": true,
+ "supports_xhigh_reasoning_effort": true
+ },
+ "gpt-6-luna": {
+ "cache_creation_input_token_cost": 1.25e-07,
+ "cache_creation_input_token_cost_above_272k_tokens": 2.5e-07,
+ "cache_creation_input_token_cost_above_272k_tokens_flex": 1.25e-07,
+ "cache_creation_input_token_cost_above_272k_tokens_priority": 5e-07,
+ "cache_creation_input_token_cost_flex": 6.25e-08,
+ "cache_creation_input_token_cost_priority": 2.5e-07,
+ "cache_read_input_token_cost": 1e-08,
+ "cache_read_input_token_cost_above_272k_tokens": 2e-08,
+ "cache_read_input_token_cost_above_272k_tokens_flex": 1e-08,
+ "cache_read_input_token_cost_above_272k_tokens_priority": 4e-08,
+ "cache_read_input_token_cost_batches": 5e-09,
+ "cache_read_input_token_cost_above_272k_tokens_batches": 1e-08,
+ "cache_creation_input_token_cost_batches": 6.25e-08,
+ "cache_creation_input_token_cost_above_272k_tokens_batches": 1.25e-07,
+ "cache_read_input_token_cost_flex": 5e-09,
+ "cache_read_input_token_cost_priority": 2e-08,
+ "input_cost_per_token": 1e-07,
+ "input_cost_per_token_above_272k_tokens": 2e-07,
+ "input_cost_per_token_above_272k_tokens_flex": 1e-07,
+ "input_cost_per_token_above_272k_tokens_priority": 4e-07,
+ "input_cost_per_token_batches": 5e-08,
+ "input_cost_per_token_above_272k_tokens_batches": 1e-07,
+ "input_cost_per_token_flex": 5e-08,
+ "input_cost_per_token_priority": 2e-07,
+ "litellm_provider": "openai",
+ "max_input_tokens": 922000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 5e-07,
+ "output_cost_per_token_above_272k_tokens": 7.5e-07,
+ "output_cost_per_token_above_272k_tokens_flex": 3.75e-07,
+ "output_cost_per_token_above_272k_tokens_priority": 1.5e-06,
+ "output_cost_per_token_batches": 2.5e-07,
+ "output_cost_per_token_above_272k_tokens_batches": 3.75e-07,
+ "output_cost_per_token_flex": 2.5e-07,
+ "output_cost_per_token_priority": 1e-06,
+ "regional_processing_uplift_multiplier_eu": 1.1,
+ "regional_processing_uplift_multiplier_us": 1.1,
+ "search_context_cost_per_query": {
+ "search_context_size_high": 0.01,
+ "search_context_size_low": 0.01,
+ "search_context_size_medium": 0.01
+ },
+ "source": "https://developers.openai.com/api/docs/pricing",
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/batch",
+ "/v1/responses"
+ ],
+ "supported_modalities": [
+ "text",
+ "image"
+ ],
+ "supported_output_modalities": [
+ "text"
+ ],
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_minimal_reasoning_effort": false,
+ "supports_native_streaming": true,
+ "supports_none_reasoning_effort": true,
+ "supports_parallel_function_calling": true,
+ "supports_pdf_input": true,
+ "supports_prompt_cache_breakpoint": true,
+ "supports_prompt_caching": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true,
+ "supports_vision": true,
+ "supports_web_search": true,
+ "supports_xhigh_reasoning_effort": true
+ },
"gpt-5.6": {
"cache_creation_input_token_cost": 5e-06,
"cache_creation_input_token_cost_above_272k_tokens": 1e-05,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 589c4099bd7..8f9958e0031 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -34269,6 +34269,158 @@
"supports_web_search": true,
"supports_xhigh_reasoning_effort": true
},
+ "gpt-6-sol": {
+ "cache_creation_input_token_cost": 2.5e-06,
+ "cache_creation_input_token_cost_above_272k_tokens": 5e-06,
+ "cache_creation_input_token_cost_above_272k_tokens_flex": 2.5e-06,
+ "cache_creation_input_token_cost_above_272k_tokens_priority": 1e-05,
+ "cache_creation_input_token_cost_flex": 1.25e-06,
+ "cache_creation_input_token_cost_priority": 5e-06,
+ "cache_read_input_token_cost": 2e-07,
+ "cache_read_input_token_cost_above_272k_tokens": 4e-07,
+ "cache_read_input_token_cost_above_272k_tokens_flex": 2e-07,
+ "cache_read_input_token_cost_above_272k_tokens_priority": 8e-07,
+ "cache_read_input_token_cost_batches": 1e-07,
+ "cache_read_input_token_cost_above_272k_tokens_batches": 2e-07,
+ "cache_creation_input_token_cost_batches": 1.25e-06,
+ "cache_creation_input_token_cost_above_272k_tokens_batches": 2.5e-06,
+ "cache_read_input_token_cost_flex": 1e-07,
+ "cache_read_input_token_cost_priority": 4e-07,
+ "input_cost_per_token": 2e-06,
+ "input_cost_per_token_above_272k_tokens": 4e-06,
+ "input_cost_per_token_above_272k_tokens_flex": 2e-06,
+ "input_cost_per_token_above_272k_tokens_priority": 8e-06,
+ "input_cost_per_token_batches": 1e-06,
+ "input_cost_per_token_above_272k_tokens_batches": 2e-06,
+ "input_cost_per_token_flex": 1e-06,
+ "input_cost_per_token_priority": 4e-06,
+ "litellm_provider": "openai",
+ "max_input_tokens": 922000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 1e-05,
+ "output_cost_per_token_above_272k_tokens": 1.5e-05,
+ "output_cost_per_token_above_272k_tokens_flex": 7.5e-06,
+ "output_cost_per_token_above_272k_tokens_priority": 3e-05,
+ "output_cost_per_token_batches": 5e-06,
+ "output_cost_per_token_above_272k_tokens_batches": 7.5e-06,
+ "output_cost_per_token_flex": 5e-06,
+ "output_cost_per_token_priority": 2e-05,
+ "regional_processing_uplift_multiplier_eu": 1.1,
+ "regional_processing_uplift_multiplier_us": 1.1,
+ "search_context_cost_per_query": {
+ "search_context_size_high": 0.01,
+ "search_context_size_low": 0.01,
+ "search_context_size_medium": 0.01
+ },
+ "source": "https://developers.openai.com/api/docs/pricing",
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/batch",
+ "/v1/responses"
+ ],
+ "supported_modalities": [
+ "text",
+ "image"
+ ],
+ "supported_output_modalities": [
+ "text"
+ ],
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_minimal_reasoning_effort": false,
+ "supports_native_streaming": true,
+ "supports_none_reasoning_effort": true,
+ "supports_parallel_function_calling": true,
+ "supports_pdf_input": true,
+ "supports_prompt_cache_breakpoint": true,
+ "supports_prompt_caching": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true,
+ "supports_vision": true,
+ "supports_web_search": true,
+ "supports_xhigh_reasoning_effort": true
+ },
+ "gpt-6-luna": {
+ "cache_creation_input_token_cost": 1.25e-07,
+ "cache_creation_input_token_cost_above_272k_tokens": 2.5e-07,
+ "cache_creation_input_token_cost_above_272k_tokens_flex": 1.25e-07,
+ "cache_creation_input_token_cost_above_272k_tokens_priority": 5e-07,
+ "cache_creation_input_token_cost_flex": 6.25e-08,
+ "cache_creation_input_token_cost_priority": 2.5e-07,
+ "cache_read_input_token_cost": 1e-08,
+ "cache_read_input_token_cost_above_272k_tokens": 2e-08,
+ "cache_read_input_token_cost_above_272k_tokens_flex": 1e-08,
+ "cache_read_input_token_cost_above_272k_tokens_priority": 4e-08,
+ "cache_read_input_token_cost_batches": 5e-09,
+ "cache_read_input_token_cost_above_272k_tokens_batches": 1e-08,
+ "cache_creation_input_token_cost_batches": 6.25e-08,
+ "cache_creation_input_token_cost_above_272k_tokens_batches": 1.25e-07,
+ "cache_read_input_token_cost_flex": 5e-09,
+ "cache_read_input_token_cost_priority": 2e-08,
+ "input_cost_per_token": 1e-07,
+ "input_cost_per_token_above_272k_tokens": 2e-07,
+ "input_cost_per_token_above_272k_tokens_flex": 1e-07,
+ "input_cost_per_token_above_272k_tokens_priority": 4e-07,
+ "input_cost_per_token_batches": 5e-08,
+ "input_cost_per_token_above_272k_tokens_batches": 1e-07,
+ "input_cost_per_token_flex": 5e-08,
+ "input_cost_per_token_priority": 2e-07,
+ "litellm_provider": "openai",
+ "max_input_tokens": 922000,
+ "max_output_tokens": 128000,
+ "max_tokens": 128000,
+ "mode": "chat",
+ "output_cost_per_token": 5e-07,
+ "output_cost_per_token_above_272k_tokens": 7.5e-07,
+ "output_cost_per_token_above_272k_tokens_flex": 3.75e-07,
+ "output_cost_per_token_above_272k_tokens_priority": 1.5e-06,
+ "output_cost_per_token_batches": 2.5e-07,
+ "output_cost_per_token_above_272k_tokens_batches": 3.75e-07,
+ "output_cost_per_token_flex": 2.5e-07,
+ "output_cost_per_token_priority": 1e-06,
+ "regional_processing_uplift_multiplier_eu": 1.1,
+ "regional_processing_uplift_multiplier_us": 1.1,
+ "search_context_cost_per_query": {
+ "search_context_size_high": 0.01,
+ "search_context_size_low": 0.01,
+ "search_context_size_medium": 0.01
+ },
+ "source": "https://developers.openai.com/api/docs/pricing",
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/batch",
+ "/v1/responses"
+ ],
+ "supported_modalities": [
+ "text",
+ "image"
+ ],
+ "supported_output_modalities": [
+ "text"
+ ],
+ "supports_computer_use": true,
+ "supports_function_calling": true,
+ "supports_max_reasoning_effort": true,
+ "supports_minimal_reasoning_effort": false,
+ "supports_native_streaming": true,
+ "supports_none_reasoning_effort": true,
+ "supports_parallel_function_calling": true,
+ "supports_pdf_input": true,
+ "supports_prompt_cache_breakpoint": true,
+ "supports_prompt_caching": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_system_messages": true,
+ "supports_tool_choice": true,
+ "supports_vision": true,
+ "supports_web_search": true,
+ "supports_xhigh_reasoning_effort": true
+ },
"gpt-5.6": {
"cache_creation_input_token_cost": 5e-06,
"cache_creation_input_token_cost_above_272k_tokens": 1e-05,
diff --git a/tests/test_litellm/router_utils/test_reasoning_effort_capability.py b/tests/test_litellm/router_utils/test_reasoning_effort_capability.py
index adee44aa8a3..4617839c5e3 100644
--- a/tests/test_litellm/router_utils/test_reasoning_effort_capability.py
+++ b/tests/test_litellm/router_utils/test_reasoning_effort_capability.py
@@ -418,6 +418,25 @@ class TestGpt6AstraAdvertisesItsDocumentedLevels:
)
+class TestGpt6SolAndLunaAdvertiseNoneThroughMax:
+ @pytest.mark.parametrize("model", ["gpt-6-sol", "gpt-6-luna"])
+ def test_the_entry_advertises_none_through_max(self, local_model_cost_map, model):
+ """OpenAI documents none, low, medium (default), high, xhigh and max for both. Unlike
+ gpt-6-astra they take none."""
+ from litellm.utils import _get_model_info_helper
+
+ model_info = dict(_get_model_info_helper(model=model, custom_llm_provider="openai"))
+
+ assert resolve_supported_reasoning_efforts(model_info, deployment_is_mapped=True) == (
+ "none",
+ "low",
+ "medium",
+ "high",
+ "xhigh",
+ "max",
+ )
+
+
class TestNearestDeclaredReasoningEffort:
def test_a_declared_level_is_kept(self):
assert nearest_declared_reasoning_effort("high", ("none", "high")) == "high"
diff --git a/tests/test_litellm/test_openai_service_tier_long_context_pricing.py b/tests/test_litellm/test_openai_service_tier_long_context_pricing.py
index c766370230c..9b3a1e57169 100644
--- a/tests/test_litellm/test_openai_service_tier_long_context_pricing.py
+++ b/tests/test_litellm/test_openai_service_tier_long_context_pricing.py
@@ -58,6 +58,18 @@ PRIORITY_LONG_CONTEXT = {
"cache_read_input_token_cost_above_272k_tokens_priority": 4e-06,
"cache_creation_input_token_cost_above_272k_tokens_priority": 5e-05,
},
+ "gpt-6-sol": {
+ "input_cost_per_token_above_272k_tokens_priority": 8e-06,
+ "output_cost_per_token_above_272k_tokens_priority": 3e-05,
+ "cache_read_input_token_cost_above_272k_tokens_priority": 8e-07,
+ "cache_creation_input_token_cost_above_272k_tokens_priority": 1e-05,
+ },
+ "gpt-6-luna": {
+ "input_cost_per_token_above_272k_tokens_priority": 4e-07,
+ "output_cost_per_token_above_272k_tokens_priority": 1.5e-06,
+ "cache_read_input_token_cost_above_272k_tokens_priority": 4e-08,
+ "cache_creation_input_token_cost_above_272k_tokens_priority": 5e-07,
+ },
}
EXPECTED = {**FLEX_LONG_CONTEXT, **PRIORITY_LONG_CONTEXT}
@@ -90,4 +102,6 @@ TIERED_COST_CASES = [
("gpt-5.6-terra", "priority", 8e-06, 3.6e-05),
("gpt-5.6-luna", "priority", 8e-07, 3.6e-06),
("gpt-6-astra", "priority", 4e-05, 0.00015),
+ ("gpt-6-sol", "priority", 8e-06, 3e-05),
+ ("gpt-6-luna", "priority", 4e-07, 1.5e-06),
]