Models, measured side by side
Phi-4 vs Qwen3 Coder 30B A3B Instruct
Compare Phi-4, Qwen3 Coder 30B A3B Instruct by token pricing, context length, benchmark results, speed and tool support.
Updated Dec 2026 · Last verified Dec 4, 2026 · Public listed prices. Confirm with the provider.
Verdict
Phi-4 vs Qwen3 Coder 30B A3B InstructCheaper
Phi-4
29% less than next at 3:1
Smarter
Qwen3 Coder 30B A3B Instruct
AA 9.6 vs 5.9
Bigger context
Qwen3 Coder 30B A3B Instruct
262K vs 16K
Choose Phi-4 if…
- you want the lowest cost on input-heavy work (29% cheaper at 3:1)
- you generate a lot of output ($0.140 vs $0.280 per 1M output tokens)
Choose Qwen3 Coder 30B A3B Instruct if…
- you need the biggest context window (262K vs 16K tokens)
- you need the strongest reasoning (AA Intelligence 9.6 vs 5.9)
- you need longer single responses (up to 236K output tokens)
10M input + 2M output / monthPhi-4: $0.980Qwen3 Coder 30B A3B Instruct: $1.26
Monthly workload
Monthly cost breakdown
InputOutput
Phi-4
$2.10 / mo
Qwen3 Coder 30B A3B Instruct
$2.80 / mo
Performance comparison
Phi-4
5.9
Qwen3 Coder 30B A3B Instruct
9.6
Overview
Pricing & capacity
| Pricing & capacity | Phi-4 | Qwen3 Coder 30B A3B Instruct |
|---|---|---|
| Input / 1M tokens | $0.07 | $0.07 |
| Output / 1M tokens | $0.14 | $0.28 |
| Monthly cost | $2.10 | $2.80 |
| Context window | 16K | 262K |
| Maximum output | 15K | 236K |
Input / 1M tokens
- Phi-4
- $0.07
- Qwen3 Coder 30B A3B Instruct
- $0.07
Output / 1M tokens
- Phi-4
- $0.14
- Qwen3 Coder 30B A3B Instruct
- $0.28
Monthly cost
- Phi-4
- $2.10
- Qwen3 Coder 30B A3B Instruct
- $2.80
Context window
- Phi-4
- 16K
- Qwen3 Coder 30B A3B Instruct
- 262K
Maximum output
- Phi-4
- 15K
- Qwen3 Coder 30B A3B Instruct
- 236K
Benchmarks & performance
| Benchmarks & performance | Phi-4 | Qwen3 Coder 30B A3B Instruct |
|---|---|---|
| Arena Elo | 1,123 | Not listed |
| MMLU-Pro | 60.7% | Not listed |
| Intelligence Index | 5.9 | 9.6 |
| GPQA | 57.5% | 51.6% |
| Humanity’s Last Exam | 3.8% | 3.8% |
| Output speed | 39 tokens/s | 87 tokens/s |
| Time to first token | 2.59 s | 2.65 s |
Arena Elo
- Phi-4
- 1,123
- Qwen3 Coder 30B A3B Instruct
- Not listed
MMLU-Pro
- Phi-4
- 60.7%
- Qwen3 Coder 30B A3B Instruct
- Not listed
Intelligence Index
- Phi-4
- 5.9
- Qwen3 Coder 30B A3B Instruct
- 9.6
GPQA
- Phi-4
- 57.5%
- Qwen3 Coder 30B A3B Instruct
- 51.6%
Humanity’s Last Exam
- Phi-4
- 3.8%
- Qwen3 Coder 30B A3B Instruct
- 3.8%
Output speed
- Phi-4
- 39 tokens/s
- Qwen3 Coder 30B A3B Instruct
- 87 tokens/s
Time to first token
- Phi-4
- 2.59 s
- Qwen3 Coder 30B A3B Instruct
- 2.65 s
Tools & features
| Tools & features | Phi-4 | Qwen3 Coder 30B A3B Instruct |
|---|---|---|
| Function calling | Not listed | Supported |
| Structured outputs | Supported | Supported |
| JSON mode | Supported | Supported |
| Deterministic seed | Supported | Not listed |
Function calling
- Phi-4
- Not listed
- Qwen3 Coder 30B A3B Instruct
- Supported
Structured outputs
- Phi-4
- Supported
- Qwen3 Coder 30B A3B Instruct
- Supported
JSON mode
- Phi-4
- Supported
- Qwen3 Coder 30B A3B Instruct
- Supported
Deterministic seed
- Phi-4
- Supported
- Qwen3 Coder 30B A3B Instruct
- Not listed
API & availability
| API & availability | Phi-4 | Qwen3 Coder 30B A3B Instruct |
|---|---|---|
| API identifier | phi-4 | qwen3-coder-30b-a3b-instruct |
| API providers | DeepInfra | SiliconFlow, Amazon Bedrock |
| Knowledge cutoff | 2024-06-30 | 2025-06-30 |
| Prices checked | Dec 4, 2026 | Dec 4, 2026 |
API identifier
- Phi-4
phi-4- Qwen3 Coder 30B A3B Instruct
qwen3-coder-30b-a3b-instruct
API providers
- Phi-4
- DeepInfra
- Qwen3 Coder 30B A3B Instruct
- SiliconFlow, Amazon Bedrock
Knowledge cutoff
- Phi-4
- 2024-06-30
- Qwen3 Coder 30B A3B Instruct
- 2025-06-30
Prices checked
- Phi-4
- Dec 4, 2026
- Qwen3 Coder 30B A3B Instruct
- Dec 4, 2026
About the models
Qwen3 Coder 30B A3B Instruct
Qwen3-Coder-30B-A3B-Instruct is a 30.5B parameter Mixture-of-Experts (MoE) model with 128 experts (8 active per forward pass), designed for advanced code generation, repository-scale understanding, and agentic tool use. Built on the...
Full pricing & detailsComparison FAQ
Phi-4: $0.07 input and $0.14 output per million tokens. Qwen3 Coder 30B A3B Instruct: $0.07 input and $0.28 output per million tokens. The cheaper choice depends on your input-to-output ratio; a model can have a lower input rate but a higher output rate.
For an example workload of 20 million input tokens and 5 million output tokens per month: Phi-4: $2.10. Qwen3 Coder 30B A3B Instruct: $2.80. These are token-only estimates using the displayed rates, without caching discounts, additional tool charges or taxes. Actual bills depend on usage and endpoint pricing.
Phi-4: 16K tokens of context; maximum output 15K tokens. Qwen3 Coder 30B A3B Instruct: 262K tokens of context; maximum output 236K tokens. Context capacity and maximum output are separate limits. A larger context window allows more material in a request but does not guarantee more accurate answers.
Phi-4: Artificial Analysis SciCode not listed. Qwen3 Coder 30B A3B Instruct: Artificial Analysis SciCode not listed. Compare coding results within the same evaluation, then test representative tasks from your own codebase. A missing score is not a zero, and a single benchmark does not establish the best model for every programming task.
These evaluations measure different tasks and use different scales. Arena Elo and DesignArena ratings must remain separate, as must Artificial Analysis Intelligence Index and MMLU-Pro. Compare models within the same evaluation rather than combining scores. Missing results are marked Not listed, not treated as measured zeroes.
Phi-4: Artificial Analysis output speed 39 tokens/s; time to first token 2.59 seconds. Qwen3 Coder 30B A3B Instruct: Artificial Analysis output speed 87 tokens/s; time to first token 2.65 seconds. Output speed measures generation throughput, while time to first token measures the initial wait. Real-world latency also depends on the API provider, request size and load; missing measurements cannot establish a speed winner.
Phi-4: listed input formats: text; output formats: text. Qwen3 Coder 30B A3B Instruct: listed input formats: text; output formats: text. Input and output support are different capabilities: accepting an image does not mean a model generates images. Confirm formats and file limits for the endpoint you plan to use.
Phi-4: listed features: Structured outputs, JSON mode, Deterministic seed. Qwen3 Coder 30B A3B Instruct: listed features: Function calling, Structured outputs, JSON mode. Only recorded capabilities are shown; an unlisted feature is not proof that it is unsupported. Availability can vary by API provider, so confirm tool calling and JSON schema support for your chosen endpoint.
Phi-4: cached input price not listed. Qwen3 Coder 30B A3B Instruct: cached input price not listed. Caching may reduce charges for eligible repeated input when supported by the endpoint. A listed cached rate does not guarantee every request qualifies; cache duration, minimum token counts and any write charges depend on the provider.
Phi-4: catalog status active; API identifier phi-4; listed API hosts DeepInfra. Qwen3 Coder 30B A3B Instruct: catalog status active; API identifier qwen3-coder-30b-a3b-instruct; listed API hosts SiliconFlow, Amazon Bedrock. Catalog status is not a live availability check. Before integrating, verify the provider's documentation, endpoint access, rate limits, regional availability and data-handling terms.
