Qwen2.5 Coder 32B Instruct
Where it stands
Quality in independent tests against price, next to 135 other models. Up means more capable, left means cheaper.
About this model
Qwen2.5 Coder 32B Instruct is an AI model from Alibaba Qwen, made available through the API on November 11, 2024. It can read up to 32,768 tokens in one request, roughly 61 pages of text, and write up to 29,491 tokens in a single answer.
Through the API it costs $0.66 per million input tokens and $1 per million output tokens. Its pricing sits in the middle of the market.
Its weights are openly published (Qwen/Qwen2.5-Coder-32B-Instruct), so it can also be downloaded and run on your own hardware.
Quality scores
Rankings →Where to use it
Companies that serve this model through an API: 1. Prices per million tokens, cheapest first.
Availability and prices come from OpenRouter’s public API and are refreshed daily. Uptime is the share of successful requests over the last 24 hours. Some providers run a compressed version of open models (fp8, int4), which is cheaper but can be slightly less accurate.
Use it in your code
Call Qwen2.5 Coder 32B Instruct through OpenRouter’s OpenAI-compatible API: create a key on openrouter.ai, then run one of these examples.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen/qwen-2.5-coder-32b-instruct", "messages": [{"role": "user", "content": "Hello! What can you do?"}]}'import os
from openai import OpenAI
client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
reply = client.chat.completions.create(
model="qwen/qwen-2.5-coder-32b-instruct",
messages=[{"role": "user", "content": "Hello! What can you do?"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey: process.env.OPENROUTER_API_KEY });
const reply = await client.chat.completions.create({
model: "qwen/qwen-2.5-coder-32b-instruct",
messages: [{ role: "user", content: "Hello! What can you do?" }],
});
console.log(reply.choices[0].message.content);The same code works with every model on this site: only the model ID changes. Many labs also offer their own API and SDK.
What it costs in practice
- 1,000 chat replies$0.63
- Summarise a 100-page document$0.034
- An app with 10,000 requests a day for a month$318
Similar-priced alternatives
| Model | Inputi | Outputi | Contexti | |
|---|---|---|---|---|
DeepSeek V4 Pro 0813DeepSeek | $0.66 | $1.98 | 1M | Compare with ⇄ |
Kimi K2.7 CodeMoonshot AI | $0.66 | $3.30 | 256K | Compare with ⇄ |
Aion 3.5 MiniAion Labs | $0.70 | $1.40 | 256K | Compare with ⇄ |
Nemotron 3 UltraNVIDIA | $0.60 | $2.40 | 256K | Compare with ⇄ |
GLM 5Z.ai (Zhipu) | $0.60 | $1.92 | 200K | Compare with ⇄ |
Palmyra X5Writer | $0.60 | $6 | 1M | Compare with ⇄ |
News about Alibaba Qwen
See all →Frequently asked questions
- How much does Qwen2.5 Coder 32B Instruct cost?
- Qwen2.5 Coder 32B Instruct costs $0.66 per million input tokens and $1 per million output tokens through the API. For example, 1,000 chat replies of about 500 tokens in and 300 out cost around $0.63.
- What is the context window of Qwen2.5 Coder 32B Instruct?
- Qwen2.5 Coder 32B Instruct can read up to 32,768 tokens in one request, about 61 pages of text. It can write up to 29,491 tokens in a single answer.
- Is Qwen2.5 Coder 32B Instruct open source?
- Yes. Its weights are published (Qwen/Qwen2.5-Coder-32B-Instruct), so you can download it and run it on your own hardware, or use it through one of 1 API providers.
- Who makes Qwen2.5 Coder 32B Instruct?
- Qwen2.5 Coder 32B Instruct is made by Alibaba Qwen. It became available through the API on November 11, 2024.
- How good is Qwen2.5 Coder 32B Instruct?
- Qwen2.5 Coder 32B Instruct has an overall index of 119.4 in Epoch AI’s independent tests, ranking #128 of 136 models we track.
- Can Qwen2.5 Coder 32B Instruct read images?
- No. Qwen2.5 Coder 32B Instruct only accepts text as input.
- What are the alternatives to Qwen2.5 Coder 32B Instruct?
- Models with a similar price from other companies include DeepSeek V4 Pro 0813, Kimi K2.7 Code and Aion 3.5 Mini. You can compare them side by side on this page.