LiteLLMModels

Qwen Coder API Pricing

As of October 10, 2026, Qwen Coder costs $0.30 per 1M input tokens and $1.50 per 1M output tokens on Alibaba Cloud Model Studio. It has a 1,000,000-token context window and returns up to 16,384 tokens per response.

By AlibabaModel ID dashscope/qwen-coderPrices updated Checked
Input
$0.30 / 1M tokens
Output
$1.50 / 1M tokens
Context window
1,000,000 tokens
Max output
16,384 tokens
Providers
3
Added to LiteLLM
September 2025

Qwen Coder pricing by provider

3 listings across 3 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputContext
Alibaba Cloud Model Studiodashscope/qwen-coder$0.30$1.501M
Qianwen AI Platformqwen_ai_platform/qwen-coder$0.30$1.501M
QwenCloudqwencloud/qwen-coder$0.30$1.501M

What Qwen Coder costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Alibaba Cloud Model Studio$1.35
Qianwen AI Platform$1.35
QwenCloud$1.35

100 long-document requests with 100,000 input and 2,000 output tokens each

Alibaba Cloud Model Studio$3.30
Qianwen AI Platform$3.30
QwenCloud$3.30

Qwen Coder features

Use Qwen Coder with LiteLLM

Call Qwen Coder through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="dashscope/qwen-coder",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: qwen-coder
    litellm_params:
      model: dashscope/qwen-coder
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "qwen-coder",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Qwen Coder FAQ

How much does Qwen Coder cost?

Qwen Coder costs $0.30 per 1M input tokens and $1.50 per 1M output tokens on Alibaba Cloud Model Studio.

What is the context window of Qwen Coder?

Qwen Coder has a 1,000,000-token context window and returns up to 16,384 tokens per response.

Which providers offer Qwen Coder?

Qwen Coder is available from 3 providers through LiteLLM: Alibaba Cloud Model Studio, Qianwen AI Platform and QwenCloud.

How do I call Qwen Coder with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="dashscope/qwen-coder", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Qwen Coder support?

Qwen Coder supports function calling and reasoning.

When did LiteLLM add Qwen Coder?

Qwen Coder was added to LiteLLM's model price file in September 2025.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: Alibaba Cloud Model Studio, Qianwen AI Platform.

Provider pages: Alibaba Cloud Model Studio, Qianwen AI Platform, QwenCloud.