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.
- Price
- Free
- Context window
- 262,144 tokens
- Max output
- 262,144 tokens
- Providers
- 2
- Added to LiteLLM
- July 2025
Qwen3 Coder pricing by provider
2 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Ollama | ollama/qwen3-coder:480b-cloud | $0 | $0 | 256K |
| Vercel AI Gateway | vercel_ai_gateway/alibaba/qwen3-coder | $0.40 | $1.60 | 256K |
What Qwen3 Coder costs in practice
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 |
Qwen3 Coder features
- Function calling
Use Qwen3 Coder with LiteLLM
Call Qwen3 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.
from litellm import completion
response = completion(
model="ollama/qwen3-coder:480b-cloud",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: qwen3-coder
litellm_params:
model: ollama/qwen3-coder:480b-cloud
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "qwen3-coder",
"messages": [{"role": "user", "content": "Hello!"}]
}'Qwen3 Coder 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.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.
LiteLLM docs: Ollama, Vercel AI Gateway.
Provider pages: Ollama, Vercel AI Gateway.
