Route requests to
Qwen Plus
with Merge Gateway

Apply your own routing policies, reduce token costs automatically, and see every routing decision in real time with Merge Gateway.

What Qwen Plus costs to run

| Vendor | Input / 1M tokens | Output / 1M tokens | Zero data retention | | --- | ---: | ---: | --- | | Alibaba | $0.1150 | $0.2870 | No |

Test Qwen Plus
with Gateway’s Simulator

See a prompt's output, token spend, latency, and more with Qwen Plus.

Route requests to Qwen Plus in minutes

To get started in seconds, add our Gateway Implementation skill to your project, or pick your preferred SDK below. Check out our other quick start skills here.
Install the Merge Gateway SDK
Python
Copied!
1$ pip install merge-gateway-sdk
Send a request
Python
Copied!
1from merge_gateway import MergeGateway
2
3client = MergeGateway(api_key="YOUR_API_KEY")
4
5response = client.responses.create(
6    model="openai/gpt-5.2",
7    input=[
8        {"type": "message", "role": "system", "content": "You are a helpful programming tutor. Explain the concepts clearly with practical examples."},
9        {"type": "message", "role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
10    ],
11)
12
13print(response.output[0].content[0].text)
Try a diffrent model
Swap the model string to route to a different provider. No other code changes needed.
Anthropic
Copied!
1response = client.responses.create(
2    model="anthropic/claude-sonnet-4-20250514",
3    input=[
4        {"type": "message", "role": "system", "content": "You are a helpful programming tutor. Explain the concepts clearly with practical examples."},
5        {"type": "message", "role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
6    ],
7)
Point to Gateway
Python
Copied!
1from openai import OpenAI
2
3client = OpenAI(
4    api_key="YOUR_API_KEY",
5    base_url="https://api-gateway.merge.dev/v1/openai",
6)
Send a request
Use the standard chat.completions.create method. No provider prefix needed on the model name.
Python
Copied!
1response = client.chat.completions.create(
2    model="gpt-5.2",
3    messages=[
4        {"role": "system", "content": "You are a helpful programming tutor. Explain the concepts clearly with practical examples."},
5        {"role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
6    ],
7)
8
9print(response.choices[0].message.content)
Install packages
Copied!
1npm install merge-gateway-ai-sdk-provider ai
Create the provider
TypeScript
Copied!
1import { createMergeGateway } from "merge-gateway-ai-sdk-provider";
2
3const gateway = createMergeGateway({
4  apiKey: "YOUR_API_KEY",
5});
Send a request
Use generateText to send a request. Model names use the provider/model format.
TypeScript
Copied!
1import { generateText } from "ai";
2
3const { text } = await generateText({
4  model: gateway("openai/gpt-4o"),
5  prompt: "Explain the concept of recursion in programming with a simple set of examples.",
6});
7
8console.log(text);
If you already have @ai-sdk/openai installed, point it at Gateway with a base URL change:
TypeScript
Copied!
1import { createOpenAI } from "@ai-sdk/openai";
2
3const gateway = createOpenAI({
4  apiKey: "YOUR_API_KEY",
5  baseURL: "https://api-gateway.merge.dev/v1/ai-sdk",
6});
7
8// All generateText/streamText calls work unchanged
Install the Merge Gateway SDK
Anthropic SDK
Copied!
1from anthropic import Anthropic
2
3client = Anthropic(
4    api_key="YOUR_API_KEY",
5    base_url="https://api-gateway.merge.dev/v1/anthropic",
6)
7
8message = client.messages.create(
9    model="claude-sonnet-4-20250514",
10    max_tokens=1024,
11    messages=[
12        {"role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
13    ],
14)
15
16print(message.content[0].text)

Explore other models available in Merge Gateway

model logo
Amazon Nova 2 Lite
model logo
Amazon Nova 2 Sonic
model logo
Amazon Nova Lite
model logo
Amazon Nova Micro
model logo
Amazon Nova Premier
model logo
Amazon Nova Pro
model logo
Claude 3.7 Sonnet
model logo
Claude Haiku 4.5 (20251001)
model logo
Claude Opus 4.6
model logo
Claude Opus 4.7
model logo
Claude Opus 4.8
model logo
Claude Sonnet 4.5
model logo
Claude Sonnet 4.6
model logo
Claude Sonnet 5
model logo
Codestral
model logo
Codestral 25.08
model logo
Command R 08-2024
model logo
Command R+ 08-2024
model logo
Command R7B 12-2024
model logo
DeepSeek R1
model logo
DeepSeek V3
model logo
DeepSeek V3.2
model logo
DeepSeek V4 Flash
model logo
DeepSeek V4 Pro

Qwen Plus FAQ

For anyone with more questions about Qwen Plus, we've covered a few more below. The details here reflect what was known on 06/08/2026 and are subject to change.

Heading

What other models does Alibaba offer?

Qwen Plus is Alibaba's mid-tier hosted API product, occupying the space between the cost-focused Qwen Flash and the higher-capability proprietary models in a lineup that also includes several open-weight options. Here are some other models Alibaba supports:

  • Qwen Flash: Alibaba's fastest and most affordable hosted API tier at $0.05 per 1M input and $0.40 per 1M output, with a 1M-token context window, built for simple, high-volume jobs where output quality requirements are lower and cost control is the priority
  • Qwen3 Next 80B A3B Thinking: Alibaba's highest-performing open-weight reasoning model, scoring 27 on the Artificial Analysis Intelligence Index, and ranking 8th out of 61 reasoning models, with a 262k-token context window at $0.50 per 1M input and $6.00 per 1M output for complex chain-of-thought workloads
  • Qwen3 235B A22B: The largest open-weight model in the Qwen3 generation with 235 billion total parameters and 22 billion active, available under Apache 2.0, text-only in and out with a 33k-token context window at $0.45 per 1M input and $1.80 per 1M output
  • QwQ 32B: Alibaba's open-weight reasoning model with a 131k-token context window and extended chain-of-thought capabilities, scoring 20 on the Intelligence Index, at $0.66 per 1M input and $1.00 per 1M output
  • Qwen3 14B: A dense open-weight model with 14 billion parameters and a 33k-token context window, providing a self-hostable option for teams that want Alibaba model quality without a managed API dependency, at $0.235 per 1M input and $0.82 per 1M output

How does Qwen Plus differ from Alibaba's other models?

Qwen Plus occupies the balanced mid-tier of Alibaba's hosted API lineup, offering capabilities that Qwen Flash lacks, at a cost below the reasoning-specialized and flagship models.

  • Multimodal input: Qwen Plus supports text, image, and video input, whereas Qwen Flash is text-only and the open-weight Qwen3 dense models are also text-only. This makes it the most accessible Alibaba-hosted option for pipelines that occasionally receive visual content without needing the full multimodal stack
  • Thinking mode: Qwen Plus includes both a standard instruct mode and an optional thinking mode, allowing teams to request chain-of-thought reasoning selectively without upgrading to a dedicated reasoning model. Qwen Flash also supports thinking mode, but Qwen Plus is positioned for higher-complexity tasks where the thinking output carries more value
  • Pricing: At $0.40 per 1M input and $1.16 per 1M output (as of 06/08/2026), Qwen Plus costs approximately eight times more on input than Qwen Flash ($0.05) but is considerably cheaper than Qwen3 Next 80B A3B Thinking's $6.00 per 1M output. This positions it as the reasonable step up when Qwen Flash quality isn't sufficient
  • Context window: With a 1M-token context window matching Qwen Flash, Qwen Plus supports long-document ingestion, large conversation histories, and retrieval-augmented generation over large corpora, an area where the 33k-token open-weight Qwen3 dense models fall short
  • Tiered pricing: Like Qwen Flash, Qwen Plus uses tiered pricing that increases for longer inputs ($0.40 to $1.20 per 1M input depending on context length). Teams with predictably long prompts should calculate their effective rate at production context lengths

Qwen Plus is best suited for production workloads that mix text and visual inputs, benefit from optional reasoning mode, and need a longer context window than the open-weight Qwen3 series provides.

What models should I consider using alongside Qwen Plus?

No single model is optimal for every task. Here are models worth pairing with Qwen Plus depending on what your product needs:

  • Qwen Flash (Alibaba): For high-volume, low-complexity requests in the same pipeline, routing simpler tasks to Qwen Flash at $0.05 per 1M input reserves Qwen Plus for requests that actually benefit from its multimodal support and higher output quality. Intelligent routing between the two tiers can cut blended costs substantially
  • Qwen3 Next 80B A3B Thinking (Alibaba): When a request requires deep multi-step reasoning, complex math, or structured problem decomposition that exceeds what Qwen Plus's thinking mode produces, routing to Qwen3 Next 80B A3B Thinking provides chain-of-thought at scale with a top-10 Intelligence Index ranking among reasoning models
  • Claude Sonnet 4.5 (Anthropic): For tasks requiring strong instruction adherence, precise structured output, or cross-provider redundancy, Claude Sonnet 4.5 serves as a well-tested alternative to Qwen Plus in mixed-provider routing configurations where Alibaba endpoint availability is a concern
  • Gemini 2.5 Pro (Google): For workloads with heavy video or audio analysis requirements where Qwen Plus's video support may be insufficient for the task depth needed, Gemini 2.5 Pro provides best-in-class multimodal reasoning alongside a long context window
  • GPT-4.1 (OpenAI): For deployments that prioritize broad regional availability and a proven enterprise SLA, GPT-4.1 provides a strong general-purpose fallback with competitive benchmark performance and well-documented uptime history

What are the challenges of using Qwen Plus in my product?

Like any production LLM, Qwen Plus comes with tradeoffs worth planning for:

  • Tiered input pricing: Qwen Plus pricing scales from $0.40 to $1.20 per 1M input tokens depending on context length. Workloads that regularly send long prompts or documents will pay substantially more than the headline rate, so teams should calculate the effective input cost at their actual prompt length distribution before committing at scale
  • Thinking mode verbosity and cost: When thinking mode is enabled, Qwen Plus generates extended chain-of-thought tokens before producing a final answer. These reasoning tokens count toward output billing at $1.16 per 1M. For high-volume use cases, selectively enabling thinking mode only when needed is important to avoid output costs that exceed expectations
  • Cost at scale: As request volume grows, token costs compound quickly without active cost management. At $1.16 per 1M output tokens, Qwen Plus is meaningfully more expensive than Qwen Flash for workloads where the quality difference doesn't justify the premium at every request type
  • Provider dependency: Relying on a single provider creates fragility when the provider has an outage or deprecates a model version. Alibaba has retired Qwen Turbo in favor of Qwen Flash, demonstrating that tier naming evolves. Having a documented cross-provider fallback avoids service disruptions when these transitions occur
  • Variable benchmark transparency: Qwen Plus is a proprietary model and Alibaba does not publish detailed benchmark scores for this tier directly. Performance should be validated by teams on their own tasks rather than relying on general intelligence rankings, which primarily reflect open-weight evaluations

Why should I use Merge Gateway to route LLM requests with Qwen Plus and every other model?

Using Qwen Plus through Merge Gateway gives you access to the model itself and the infrastructure layer around it:

  • Intelligent routing and automatic failover: Merge routes around Alibaba outages automatically. Routing policies based on cost, latency, or quality can reduce spend by 40 to 60% without touching your application code. Pairing Qwen Plus with Qwen Flash routing is straightforward with a cost-based policy
  • One API, every provider: Access Qwen Plus and every other major LLM through a single endpoint and API key. Change providers by swapping the model string, with no application code changes required
  • Cost governance: Set hard or soft project budgets so Qwen Plus spend stays within plan. Every request is attributed to a model, project, and tag in a unified billing dashboard across all providers
  • Build Your Own Router: Define what "best" means for your traffic by selecting from curated ML benchmarks or adding your own eval scores. The router scores each available model against your weights and picks the winner per request, with a plain-language explanation of every decision
  • Security and compliance controls: Apply DLP rules and prompt injection protection before every request reaches Alibaba. Enforce per-project model and region policies without adding that logic to your application

How can I start routing requests to Qwen Plus via Merge Gateway?

Getting Qwen Plus running through Merge Gateway takes a few minutes:

1. Create an account and get your API key from the dashboard.

2. Install the Merge Gateway SDK: run pip install merge-gateway-sdk (Python) or npm install merge-gateway-sdk (Node). Alternatively, if you're already using the OpenAI SDK, set base_url = "https://api-gateway.merge.dev/v1/openai" and your existing code works as-is.

3. Make your first request using the provider/model format. For Qwen Plus, the model string is alibaba/qwen-plus. Swap the model string to route to any other provider without changing anything else.

4. Configure a routing policy in the dashboard to set failover behavior, cost limits, and optimization strategy. Your first policy can be as simple as naming Qwen Plus as primary with one fallback.

Full setup instructions and SDK references are in the Merge Gateway docs.

Try Qwen Plus through Merge Gateway

Route, observe, and control AI requests across providers from one API.