Qwen Coder
qwen-coderPricing
List prices at Alibaba DashScope, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.30 | $1.50 |
What it costs a month
At Alibaba DashScope list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$203
- RAG over documents2,000 requests a day, 8K in / 0.6K out$198
- Coding agent1,000 requests a day, 40K in / 2K out$450
- Overnight batch20,000 requests a day, 4K in / 0.4K out$1,080
Where to run it
3 hosts serve Qwen Coder. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
Alibaba DashScopeLab API qwen-coder | $0.30 / $1.50 | qwen-coder | |
Qianwen AI PlatformLab API qwen-coder | $0.30 / $1.50 | qwen-coder | |
Qwen CloudLab API qwen-coder | $0.30 / $1.50 | qwen-coder |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Text
- Open weights
- License: Apache-2.0Runtimes: Ollama, SGLang, llama.cpp, vLLM
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Alibaba DashScope.
Smaller Alibaba Qwen models
No cheaper Alibaba Qwen model keeps its key capabilities.
Other frontier labs
- 23% less
- 67% less
- 67% less
- 56% less
Open-weight picks
- 13% less
- 13% less
- 20% less
- 25% less
Call it
Using Alibaba DashScope's API.
from litellm import completion
response = completion(
model="dashscope/qwen-coder",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Qwen Coder cost?
On Alibaba DashScope, Qwen Coder costs $0.30 per million input tokens and $1.50 per million output tokens.
Which APIs offer Qwen Coder?
Qwen Coder runs on 3 APIs: Alibaba DashScope, Qianwen AI Platform and Qwen Cloud.
What is Qwen Coder's context window?
1M tokens, with up to 16K tokens in one reply.
Is Qwen Coder being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Qwen Coder?
Models that cost less and keep most of what it can do: GPT-5.4 Nano on OpenAI (23% less), Claude Haiku 5.5 on Anthropic (67% less) and DeepSeek Flash on DeepSeek (13% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Qwen Coder's API model id?
Use qwen-coder with Alibaba DashScope.
Sources
Raw catalog entry for qwen-coder on Alibaba DashScope
{
"input_cost_per_token": 3e-7,
"litellm_provider": "dashscope",
"max_input_tokens": 1000000,
"max_output_tokens": 16384,
"mode": "chat",
"output_cost_per_token": 0.0000015,
"source": "https://www.alibabacloud.com/help/en/model-studio/models",
"supports_function_calling": true,
"supports_reasoning": true,
"supports_tool_choice": true
}