LiteLLMLiteLLM/ MODELS

Qwen Coder API Pricing

By Alibaba · 3 providersdashscope/qwen-coderCompare
Input / output
$0.30 / $1.50 per 1M tokens
Context
1M tokens
Max output
16K tokens

As of November 24, 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.

Prices updated Checked

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.

Qwen Coder prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
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 cost calculator

At Alibaba Cloud Model Studio's price ($0.30 input, $1.50 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $10.50 a day, about $315 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.00105
Per day
$10.50
Per month (30 days)
$315

Qwen Coder features

Input: text. Output: text.

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 $LITELLM_API_KEY" \
  -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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

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

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