Models / Qwen2.5 Coder 7B
Qwen2.5 Coder 7B
Tier 1Apache-2.0Lightweight code model for fast inline completions and simple code generation tasks.
qwen/qwen2.5-coder-7bContext Window
131K
Max Output
8K
Providers
1
Released
2024-11
Capabilities
ChatCodeStreaming
Pricing by Provider
Prices shown are the official rate published by the model provider, before any platform discounts. Your actual rate may be lower based on your account's discount tier.
| Provider | Price | Latency p50 | Latency p95 | Status |
|---|---|---|---|---|
| alibaba | $0.30 /M in · $1.50 /M out | 150ms | 380ms |
Quick Start
Python
import magicrouter
mr = magicrouter.Client(
provider_keys={"alibaba": "your-api-key"}
)
response = mr.chat(
"qwen/qwen2.5-coder-7b",
"Your prompt here"
)
print(response.choices[0].message.content)TypeScript
import { MagicRouter } from "magicrouter";
const mr = new MagicRouter({
providerKeys: { alibaba: "your-api-key" }
});
const response = await mr.chat({
model: "qwen/qwen2.5-coder-7b",
messages: [{ role: "user", content: "Your prompt here" }]
});
console.log(response.choices[0].message.content);cURL
curl https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-coder-flash",
"messages": [{"role": "user", "content": "Your prompt here"}]
}'