Qwen: Qwen2.5 Coder 7B Instruct✓ Catalog verified
Qwen2.5-Coder-7B-Instruct is a 7B parameter instruction-tuned language model optimized for code-related tasks such as code generation, reasoning, and bug fixing. Based on the Qwen2.5 architecture, it incorporates enhancements like RoPE, SwiGLU, RMSNorm, and GQA attention with support for up to 128K tokens using YaRN-based extrapolation. It is trained on a large corpus of source code, synthetic data, and text-code grounding, providing robust performance across programming languages and agentic coding workflows. This model is part of the Qwen2.5-Coder family and offers strong compatibility with tools like vLLM for efficient deployment. Released under the Apache 2.0 license.
Overview
Qwen2.5-Coder-7B-Instruct is a 7B parameter instruction-tuned language model optimized for code-related tasks such as code generation, reasoning, and bug fixing. Based on the Qwen2.5 architecture, it incorporates enhancements like RoPE, SwiGLU, RMSNorm, and GQA attention with support for up to 128K tokens using YaRN-based extrapolation. It is trained on a large corpus of source code, synthetic data, and text-code grounding, providing robust performance across programming languages and agentic coding workflows. This model is part of the Qwen2.5-Coder family and offers strong compatibility with tools like vLLM for efficient deployment. Released under the Apache 2.0 license.
Access: available through the official Qwen API. Context window: 33K.
Specifications
| API identifier | qwen/qwen2.5-coder-7b-instruct |
| Provider | Qwen |
| Model type | Text LLM |
| Context window | 33K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Apr 15, 2025 |
| Tokenizer | Qwen |
| Moderated | No |
| Architecture modality | text->text |
Pricing
Live pricing components for qwen/qwen2.5-coder-7b-instruct as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $3e-8 | $0.03 / 1M | Per input token |
| Completion tokens | $9e-8 | $0.09 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.03Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | Not advertised | Supports tools / function calling |
| Self-Hosting | ✓ Supported | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Qwen: Qwen2.5 Coder 7B Instruct through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="qwen/qwen2.5-coder-7b-instruct",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| AionLabs: Aion-RP 1.0 (8B) | Aion Labs | 33K | $0.80 | View → |
| Arcee AI: Coder Large | Arcee Ai | 33K | $0.50 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Qwen: Qwen2.5 Coder 7B Instruct cost?
$0.03 per 1M input tokens and $0.09 per 1M output tokens on the official Qwen API.
What is the context window of Qwen: Qwen2.5 Coder 7B Instruct?
Qwen: Qwen2.5 Coder 7B Instruct supports up to 33K tokens of context.
Does Qwen: Qwen2.5 Coder 7B Instruct support tool / function calling?
Qwen: Qwen2.5 Coder 7B Instruct does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.
How do I access Qwen: Qwen2.5 Coder 7B Instruct?
Use the official Qwen API with the model id `qwen/qwen2.5-coder-7b-instruct`. See the Quick start section above for code examples.