# Qwen3 Coder API Pricing

As of October 10, 2026, Qwen3 Coder is free to use from Ollama, the lowest of 2 providers. It has a 262,144-token context window and returns up to 262,144 tokens per response.

- Page: https://models.litellm.ai/models/qwen3-coder
- Lab: Alibaba
- LiteLLM model name: `ollama/qwen3-coder:480b-cloud`
- Context window: 262,144 tokens
- Max output: 262,144 tokens
- Added to LiteLLM: July 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 |
|---|---|---|---|---|---|---|---|
| Ollama | `ollama/qwen3-coder:480b-cloud` | $0 | $0 | – | – | – | 256K |
| Vercel AI Gateway | `vercel_ai_gateway/alibaba/qwen3-coder` | $0.40 | $1.60 | – | – | – | 256K |

## Cost examples

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

- Ollama: $0
- Vercel AI Gateway: $1.60

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

- Ollama: $0
- Vercel AI Gateway: $4.32

## Features

Supported: Function calling.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="ollama/qwen3-coder:480b-cloud",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does Qwen3 Coder cost?

Qwen3 Coder is free to use from Ollama, the lowest of 2 providers.

### What is the context window of Qwen3 Coder?

Qwen3 Coder has a 262,144-token context window and returns up to 262,144 tokens per response.

### Which providers offer Qwen3 Coder?

Qwen3 Coder is available from 2 providers through LiteLLM: Ollama and Vercel AI Gateway. The lowest price is on Ollama.

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

Use the LiteLLM Python SDK with model="ollama/qwen3-coder:480b-cloud", 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 Qwen3 Coder support?

Qwen3 Coder supports function calling.

### When did LiteLLM add Qwen3 Coder?

Qwen3 Coder was added to LiteLLM's model price file in July 2025.

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