Models / Qwen2.5 Coder 7B

Qwen2.5 Coder 7B

Tier 1Apache-2.0

Lightweight code model for fast inline completions and simple code generation tasks.

qwen/qwen2.5-coder-7b
Context 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.

ProviderPriceLatency p50Latency p95Status
alibaba$0.30 /M in · $1.50 /M out150ms380ms

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"}]
  }'

Use this model

Sign up for free and test Qwen2.5 Coder 7B in the playground

Get Started