# 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.

- Page: https://models.litellm.ai/models/qwen-coder
- Lab: Alibaba
- LiteLLM model name: `dashscope/qwen-coder`
- Context window: 1,000,000 tokens
- Max output: 16,384 tokens
- Added to LiteLLM: September 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Alibaba Cloud Model Studio | `dashscope/qwen-coder` | $0.30 | $1.50 | – | – | – | 1M |
| Qianwen AI Platform | `qwen_ai_platform/qwen-coder` | $0.30 | $1.50 | – | – | – | 1M |
| QwenCloud | `qwencloud/qwen-coder` | $0.30 | $1.50 | – | – | – | 1M |

## Cost examples

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

## Features

Supported: Function calling, Reasoning.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="dashscope/qwen-coder",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
