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]

Add OpenRouter Qwen 3.6 Plus metadata (#27486)

oss-agent-shinf2e97380d2de
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 4fba1980103..76d2d35a53a 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -27187,6 +27187,20 @@
"supports_reasoning": true,
"supports_tool_choice": true
},
+ "openrouter/qwen/qwen3.6-plus": {
+ "input_cost_per_token": 3.25e-07,
+ "litellm_provider": "openrouter",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 65536,
+ "max_tokens": 65536,
+ "mode": "chat",
+ "output_cost_per_token": 1.95e-06,
+ "source": "https://openrouter.ai/qwen/qwen3.6-plus",
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_tool_choice": true,
+ "supports_vision": true
+ },
"openrouter/qwen/qwen3.5-35b-a3b": {
"input_cost_per_token": 2.5e-07,
"litellm_provider": "openrouter",
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 92e87c00ef6..e66ad8e0cf6 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -27192,6 +27192,20 @@
"supports_reasoning": true,
"supports_tool_choice": true
},
+ "openrouter/qwen/qwen3.6-plus": {
+ "input_cost_per_token": 3.25e-07,
+ "litellm_provider": "openrouter",
+ "max_input_tokens": 1000000,
+ "max_output_tokens": 65536,
+ "max_tokens": 65536,
+ "mode": "chat",
+ "output_cost_per_token": 1.95e-06,
+ "source": "https://openrouter.ai/qwen/qwen3.6-plus",
+ "supports_function_calling": true,
+ "supports_reasoning": true,
+ "supports_tool_choice": true,
+ "supports_vision": true
+ },
"openrouter/qwen/qwen3.5-35b-a3b": {
"input_cost_per_token": 2.5e-07,
"litellm_provider": "openrouter",
diff --git a/tests/test_litellm/test_cost_calculator.py b/tests/test_litellm/test_cost_calculator.py
index ebe175b2503..e53484dd287 100644
--- a/tests/test_litellm/test_cost_calculator.py
+++ b/tests/test_litellm/test_cost_calculator.py
@@ -110,6 +110,25 @@ def test_wandb_model_api_pricing_entries():
assert model_info["output_cost_per_token"] == output_cost
+def test_openrouter_qwen36_plus_model_info():
+ os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
+ litellm.model_cost = litellm.get_model_cost_map(url="")
+
+ model_info = litellm.model_cost.get("openrouter/qwen/qwen3.6-plus")
+
+ assert model_info is not None
+ assert model_info["litellm_provider"] == "openrouter"
+ assert model_info["mode"] == "chat"
+ assert model_info["max_input_tokens"] == 1000000
+ assert model_info["max_output_tokens"] == 65536
+ assert model_info["input_cost_per_token"] == 3.25e-07
+ assert model_info["output_cost_per_token"] == 1.95e-06
+ assert model_info["supports_function_calling"] is True
+ assert model_info["supports_tool_choice"] is True
+ assert model_info["supports_reasoning"] is True
+ assert model_info["supports_vision"] is True
+
+
def test_cost_calculator_with_usage(monkeypatch):
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
litellm.model_cost = litellm.get_model_cost_map(url="")