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

What Qwen3 Coder Plus costs to run
Test Qwen3 Coder Plus
with Gateway’s Simulator
See a prompt's output, token spend, latency, and more with Qwen3 Coder Plus.
Route requests to Qwen3 Coder Plus in minutes
1$ pip install merge-gateway-sdk1from 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)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)1from openai import OpenAI
2
3client = OpenAI(
4 api_key="YOUR_API_KEY",
5 base_url="https://api-gateway.merge.dev/v1/openai",
6)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)1npm install merge-gateway-ai-sdk-provider ai1import { createMergeGateway } from "merge-gateway-ai-sdk-provider";
2
3const gateway = createMergeGateway({
4 apiKey: "YOUR_API_KEY",
5});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);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 unchanged1from 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
Qwen3 Coder Plus FAQ
Heading
What other models does Alibaba offer?
Qwen3 Coder Plus is one of several models Alibaba provides across coding, general reasoning, and multimodal categories. Here are some other models Alibaba supports:
- Qwen3 Coder Flash: The fast and cost-efficient companion to this model, priced at $0.20 per 1M input and $0.97 per 1M output tokens with the same 1M-token context window, optimized for high-volume coding tasks where per-token cost matters more than peak output quality
- Qwen3 Coder 480B A35B: The flagship open-weight coding model in the Qwen3 family with 480 billion total parameters and 35 billion active, a 256k native context extendable to 1M tokens, and an Apache 2.0 license for teams that want to self-host at maximum coding capability
- Qwen3.7 Max: Alibaba's flagship general-purpose proprietary model, scoring 57 on the Artificial Analysis Intelligence Index and ranking in the top 10 of over 150 evaluated models, with a 1M-token context window and multimodal input support for text, images, and video
- Qwen3.6 Plus: A proprietary mid-tier reasoning model released in April 2026 with a 1M-token context window, scoring 50 on the Intelligence Index, priced at $0.50 per 1M input and $3.00 per 1M output, positioned between the general Qwen3.5 tier and the Qwen3.7 Max flagship
- Qwen3.5 Flash: Alibaba's most cost-efficient hosted model at $0.10 per 1M input and $0.40 per 1M output with a 1M-token context window, designed for lightweight, high-volume tasks where speed and cost efficiency take priority over advanced reasoning or coding depth
How does Qwen3 Coder Plus differ from Alibaba's other models?
Qwen3 Coder Plus is Alibaba's proprietary flagship coding agent model, built for autonomous programming via tool calling rather than serving as a general reasoning or multimodal model.
- Coding specialization: Unlike general Qwen3.5, Qwen3.6, and Qwen3.7 models that cover reasoning, instruction following, and multimodal tasks, Qwen3 Coder Plus optimizes specifically for agentic code generation, tool use in programming contexts, and long coding workflows
- Context window: Qwen3 Coder Plus supports a 1M-token context window natively, matching the hosted general-purpose tier. This is larger than the open-weight Qwen3 Coder 480B A35B, which has a 256k native context and requires YaRN interpolation to reach 1M tokens
- Pricing: At $0.65 per 1M input and $3.25 per 1M output tokens, Qwen3 Coder Plus sits at a higher price point than Qwen3.5 Plus ($0.30/$1.80) and Qwen3.6 Plus ($0.50/$3.00). The cost reflects its positioning as a premium coding-focused API model rather than a general-purpose tier
- Modality: Qwen3 Coder Plus accepts text input only. General Qwen3.5 Plus, Qwen3.6 Plus, and Qwen3.7 Max all support image and video input, making those models necessary for workflows that involve visual context such as UI screenshots or diagram-to-code tasks
- Speed: Teams with strict latency requirements should benchmark it directly against Qwen3 Coder Flash, which is designed to trade some output quality for faster response times
Qwen3 Coder Plus is best suited for production coding agent pipelines, autonomous programming tools, and agentic workflows where output quality on complex code tasks is the primary concern and text-only input is acceptable.
What models should I consider using alongside Qwen3 Coder Plus?
No single model is optimal for every task. Here are models worth pairing with Qwen3 Coder Plus depending on what your product needs:
- Qwen3 Coder Flash (Alibaba): When you need to handle high-volume, lower-complexity coding tasks such as inline completions or quick function generation at a fraction of the cost, route those to Qwen3 Coder Flash at $0.20/$0.97 per 1M tokens and reserve Qwen3 Coder Plus for the more demanding agentic tasks
- Gemini 2.5 Flash (Google): For tasks that require processing visual context alongside code, such as generating code from UI mockups or extracting logic from architecture diagrams, Gemini 2.5 Flash's multimodal support covers the image-input gap that Qwen3 Coder Plus cannot address
- Claude Sonnet 4.6 (Anthropic): When code output needs to be paired with precise structured formatting, complex instruction following, or detailed written explanations for documentation pipelines, Claude Sonnet 4.6 provides a reliable cross-provider complement for non-generation coding work
- GPT-4.1 (OpenAI): For multi-step agentic pipelines that rely on tight function-calling contracts and tool orchestration, GPT-4.1's strong tool-use reliability makes it a useful failover or parallel option for tasks where tool schema compliance is critical
- Llama 3.3 70B (Meta): For low-stakes code-assist tasks or development environments where self-hosting is preferred, Llama 3.3 70B is widely supported, runs on commodity hardware, and keeps per-token costs near zero compared to Qwen3 Coder Plus's API pricing
What are the challenges of using Qwen3 Coder Plus in my product?
Like any production LLM, Qwen3 Coder Plus comes with tradeoffs worth planning for:
- No multimodal input: Qwen3 Coder Plus is a text-only model. Teams building tools that include visual context, such as screenshot-to-code features, UI description tasks, or diagram parsing, will need a separate multimodal model in their routing layer, adding pipeline complexity
- Cost at scale: At $3.25 per 1M output tokens, agentic coding workflows that generate long completions, run iterative debugging loops, or produce verbose scaffolding code can accumulate output token costs quickly without active budget management
- Limited benchmark transparency: Verified benchmark scores for Qwen3 Coder Plus on tasks like SWE-bench Verified or LiveCodeBench are not publicly reported by Alibaba or major third-party evaluators, making direct performance comparisons against Claude Sonnet or GPT-4.1 on coding tasks difficult to quantify
- Provider dependency: Relying on Alibaba's DashScope API as a single provider creates fragility when the provider has an outage or deprecates a model version. Alibaba iterates quickly across the Qwen family, which can mean migration timelines arrive sooner than expected
- Rate limits in agentic pipelines: Autonomous coding agents often issue bursts of rapid tool-calling requests. If your pipeline hits Alibaba's rate limits mid-task, incomplete code generation or tool-call failures can disrupt workflows in ways that are harder to recover from than simple inference errors
Why should I use Merge Gateway to route LLM requests with Qwen3 Coder Plus and every other model?
Using Qwen3 Coder Plus through Merge Gateway gives you access to the model itself and the infrastructure layer around it:
- One API, every provider: Access Qwen3 Coder 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
- 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
- Cost governance: Set hard or soft project budgets so Qwen3 Coder 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 coding traffic by selecting from curated ML benchmarks or adding your own eval scores for code task quality. 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 Qwen3 Coder Plus via Merge Gateway?
Getting Qwen3 Coder 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 Qwen3 Coder Plus, the model string is alibaba/qwen3-coder-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 Qwen3 Coder Plus as primary with one fallback.
Full setup instructions and SDK references are in the Merge Gateway docs.
Try Qwen3 Coder Plus through Merge Gateway
Route, observe, and control AI requests across providers from one API.





