Qwen2-7B
Newer version available: Qwen2.5-7B
- Family
- Qwen2
- Released
- 2024-06-05
- Context
- 128K
- Parameters
- 7.07B
- Architecture
- Decoder Only
- Specialization
- general
- Openness
- Open source
- License
- Apache 2.0OSI-approvedPermitted
- Weights
- Unknown
- Code
- Unknown
- Training
- Fine-tuned
No tracked provider pricing is available yet.
No tracked provider pricing is available yet.
About
Qwen2-7B is Alibaba's Qwen2 model. It offers a 128K-token context window and scores 55.4 on GPQA.
Top use-case fit: coding, agents, and build tasks
Coding
Q/$ AProviders(2)
Compare all 2Compare API pricing across 2 tracked provider routes for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Route |
|---|---|---|---|
| Microsoft Foundry | - | - | ProvisionedPartial |
| NVIDIA NIM | - | - | ServerlessPartial |
Deprecated provider routes(3)
| Provider | Status | Catalog ID |
|---|---|---|
| DeepInfra | DeprecatedRetired November 6, 2025 | Qwen/Qwen2-7B-Instruct |
| OctoAI API (Deprecated) | Deprecated | — |
| Fireworks AI | Deprecated | — |
Available via routers & gateways(7)
LiteLLM
GatewayOpen-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.
OpenRouter
HybridUnified hybrid gateway to 500+ models from 80+ providers via a single OpenAI-compatible API, with an optional Auto Router that selects a model per prompt from market spend data.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, caching, and guardrails; MIT-licensed open-source core is self-hostable. Now part of Palo Alto Networks as Prisma AIRS AI Gateway.
Azure AI Foundry Model Router
RouterMicrosoft Azure AI Foundry's native model router that uses a trained ML model to route each prompt in real time to the optimal Azure-hosted model, with Balanced/Cost/Quality mode selection and automatic failover.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache-2.0 open-source platform with a managed hosted tier for logging and analytics.
Kong AI Gateway
GatewayMulti-LLM AI gateway built on Kong Gateway 3.x, adding semantic routing, load balancing, guardrails, and MCP traffic analytics as plugins over Kong's existing API management platform.
Capabilities
Benchmark peer barsfor Coding
Benchmark scores(5)
| Benchmark | Score | Version | Evaluation | Source |
|---|---|---|---|---|
| 55.4 | diamondObserved 2026-03-06 | — | ||
| 92.0 | 10-shotObserved 2026-03-06 | — | ||
| 80.9 | pass@1Observed 2026-03-06 | — | ||
| 80.2 | 5-shotObserved 2026-03-06 | — | ||
| 82.7 | —Observed 2026-05-28 | — |
Migration checks
No linked migration route is available for this model yet.