ZMIME
Comparison · 3 models · Updated Dec 2, 2026

Qwen3 30B-A3B Instruct 2507 vs Phi-4 vs GPT OSS 20B

Too close to call on our weighted score (GPT OSS 20B 69, Qwen3 30B-A3B Instruct 2507 68, Phi-4 57). The right pick depends on what you value most.Too close to call on our weighted score (Qwen3 30B-A3B Instruct 2507 60, GPT OSS 20B 58, Phi-4 48). The right pick depends on what you value most.

  1. Alibaba (Qwen)

    Qwen3 30B-A3B Instruct 2507

    Released Jul 28, 2025

    68/100
    • ECI134.9
    • Price$0.10 / $0.30
    • Context262K
  2. Microsoft

    Phi-4

    Released Dec 12, 2024

    57/100
    • ECI129.3
    • Price$0.125 / $0.50
    • Context16K
  3. OpenAI

    GPT OSS 20B

    Released Aug 5, 2025

    69/100
    • ECI135.0
    • Price$0.055 / $0.20
    • Context131K
  4. Alibaba (Qwen)

    Qwen3 30B-A3B Instruct 2507

    Released Jul 28, 2025

    60/100
    • ECI134.9
    • Price$0.10 / $0.30
    • Context262K
  5. Microsoft

    Phi-4

    Released Dec 12, 2024

    48/100
    • ECI129.3
    • Price$0.125 / $0.50
    • Context16K
  6. OpenAI

    GPT OSS 20B

    Released Aug 5, 2025

    58/100
    • ECI135.0
    • Price$0.055 / $0.20
    • Context131K
01 — Verdict

Too close to call

It is close. Our weighted score puts them within 2 points (GPT OSS 20B 69/100, Qwen3 30B-A3B Instruct 2507 68/100, Phi-4 57/100), so choose by what matters most for your work: GPT OSS 20B for raw capability and Qwen3 30B-A3B Instruct 2507 for long inputs. The score weighs capability 59%, price 29%, context window 12%.It is close. Our weighted score puts them within 2 points (Qwen3 30B-A3B Instruct 2507 60/100, GPT OSS 20B 58/100, Phi-4 48/100), so choose by what matters most for your work: GPT OSS 20B for raw capability and Qwen3 30B-A3B Instruct 2507 for long inputs. The score weighs capability 83%, context window 17%.

  • CapabilityGPT OSS 20BCapabilities Index (ECI): GPT OSS 20B 135.0 · Qwen3 30B-A3B Instruct 2507 134.9 · Phi-4 129.3
  • Lowest priceGPT OSS 20BGPT OSS 20B $0.091 · Qwen3 30B-A3B Instruct 2507 $0.15 · Phi-4 $0.219 per 1M tokens (3:1 blend)
  • Longest contextQwen3 30B-A3B Instruct 2507Qwen3 30B-A3B Instruct 2507 262,144 · GPT OSS 20B 131,072 · Phi-4 16,384 tokens
  • Widest inputsSame inputsQwen3 30B-A3B Instruct 2507: Text · Phi-4: Text · GPT OSS 20B: Text
  • Self-hostingAll open weightsEvery model here can be downloaded and run on your own hardware
How the score is built
MeasureWeightQwen3 30B-A3B Instruct 2507Phi-4GPT OSS 20B
CapabilityCapabilities Index (ECI)59%635864
Price29%867995
Context window12%43032
Overall100%68/10057/10069/100

Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.

How the score is built
MeasureWeightQwen3 30B-A3B Instruct 2507Phi-4GPT OSS 20B
CapabilityCapabilities Index (ECI)83%635864
Context window17%43032
Overall100%60/10048/10058/100

Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.

02 — Side by side

Every spec in one table

Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.

Qwen3 30B-A3B Instruct 2507 vs Phi-4 vs GPT OSS 20B specifications side by side
SpecificationQwen3 30B-A3B Instruct 2507Alibaba (Qwen)Phi-4MicrosoftGPT OSS 20BOpenAI
TaskNot publishedText reasoningNot published
Published capabilitiesUpdated compact Qwen3 MoE instruct model for multilingual chat, coding, and tool useMicrosoft’s compact dense model optimized for reasoning over text, including mathematical and scientific prompts.Open GPT reasoning model for self-hosted agents and controllable deployments
Model sizeNot published14B parametersNot published
AccessNot publishedDownloadable weights and a Microsoft Foundry listing.Not published
Operating limitsNot publishedText input and text output. Its 16,384-token context is smaller than several later Phi variants.Not published
SourcesNot publishedModel weights · Additional documentation · Publisher documentationNot published
Capability
Capabilities Index (ECI)134.9129.3135.0 (best)
ECI rank#135 of 167#145 of 167#134 of 167 (best)
ECI confidence interval132.1–137.6126.3–132.1132.5–137.3
ECI evaluation dateJul 29, 2025Dec 12, 2024Aug 5, 2025
Documented capabilitiesUpdated compact Qwen3 MoE instruct model for multilingual chat, coding, and tool useMicrosoft’s compact dense model optimized for reasoning over text, including mathematical and scientific prompts.Open GPT reasoning model for self-hosted agents and controllable deployments
Model parametersNot published14B parametersNot published
Output modalitiesTextTextText
GPQA DiamondGraduate-level science questions55.6%56.1%60.8%medium (best)
OTIS Mock AIME 2024–2025Competition mathematics62.2%13.8%65.3%medium (best)
Price per million tokens
Input$0.10$0.125$0.055 (best)
Output$0.30$0.50$0.20 (best)
Cached inputNot publishedNot publishedNot published
Blended (3:1)$0.15$0.219$0.091 (best)
Long-context rateSame rateSame rateSame rate
Price sourceMedian of 13 providersOfficial Azure APIMedian of 37 providers
Limits
Context window262,144 tokens (best)16,384 tokens131,072 tokens
Max inputNot publishedNot publishedNot published
Max output16,384 tokens16,384 tokens131,072 tokens (best)
Inputs and features
TextYesYesYes
ImagesNoNoNo
PDFsNoNoNo
AudioNoNoNo
VideoNoNoNo
ReasoningNoNoYes
Tool callingYesNoYes
Structured outputNot publishedNot publishedNot published
File attachmentsNoNoNo
Temperature controlYesYesYes
Reasoning controlNot publishedNot publishedalways
Availability
WeightsOpenApache 2.0OpenMITOpen
API model IDNot publishedphi-4Not published
API providers15639 (best)
ReleasedJul 28, 2025Dec 12, 2024Aug 5, 2025
Knowledge cutoffNot publishedJun 2024Jun 2024
Publisher documentationModel weightsModel weights · Additional documentation · Publisher documentationModel weights
Source metadata updatedJul 28, 2025Dec 12, 2024Aug 5, 2025
Data sourcesmodels.dev · Epoch AImodels.dev · Epoch AImodels.dev · Epoch AI
Catalog checkedDec 2, 2026Dec 2, 2026Dec 2, 2026
03 — Cost

What would a month cost?

Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.

  • Qwen3 30B-A3B Instruct 2507$1.60
  • Phi-4$2.25
  • GPT OSS 20B$0.95
04 — Questions

Which should you choose?

Which is better: Qwen3 30B-A3B Instruct 2507, Phi-4 or GPT OSS 20B?

It is close. Our weighted score puts them within 2 points (GPT OSS 20B 69/100, Qwen3 30B-A3B Instruct 2507 68/100, Phi-4 57/100), so choose by what matters most for your work: GPT OSS 20B for raw capability and Qwen3 30B-A3B Instruct 2507 for long inputs. The score weighs capability 59%, price 29%, context window 12%.It is close. Our weighted score puts them within 2 points (Qwen3 30B-A3B Instruct 2507 60/100, GPT OSS 20B 58/100, Phi-4 48/100), so choose by what matters most for your work: GPT OSS 20B for raw capability and Qwen3 30B-A3B Instruct 2507 for long inputs. The score weighs capability 83%, context window 17%.

Which is cheaper, Qwen3 30B-A3B Instruct 2507, Phi-4 or GPT OSS 20B?

GPT OSS 20B is cheaper at $0.055 input / $0.20 output per million tokens (median across 37 API providers). Qwen3 30B-A3B Instruct 2507 costs $0.10 input / $0.30 output per million tokens (median across 13 API providers); Phi-4 costs $0.125 input / $0.50 output per million tokens (official Azure API price). At a typical mix of three input tokens to one output token, that is $0.091 per million tokens for GPT OSS 20B versus $0.15 for Qwen3 30B-A3B Instruct 2507 (1.6× as much) and $0.219 for Phi-4 (2.4× as much).

Which scores higher on benchmarks?

GPT OSS 20B scores higher on the Capabilities Index (ECI): GPT OSS 20B 135.0 (#134 of 167), Qwen3 30B-A3B Instruct 2507 134.9 (#135 of 167) and Phi-4 129.3 (#145 of 167). The confidence ranges of the top two overlap (132.5–137.3 vs 132.1–137.6), so treat the gap as small. On individual benchmarks: GPQA Diamond — GPT OSS 20B 60.8%, Phi-4 56.1%, Qwen3 30B-A3B Instruct 2507 55.6%; OTIS Mock AIME 2024–2025 — GPT OSS 20B 65.3%, Qwen3 30B-A3B Instruct 2507 62.2%, Phi-4 13.8%.

Which is better for coding?

There are no published SWE-bench Verified results for Qwen3 30B-A3B Instruct 2507, Phi-4 and GPT OSS 20B yet, so there is no like-for-like coding score. On overall capability, GPT OSS 20B leads, which tends to carry over to coding, but test on your own codebase. Note that Phi-4 has no confirmed tool-calling support in this comparison.

Which has the bigger context window?

Qwen3 30B-A3B Instruct 2507 has the largest context window at 262,144 tokens, against 131,072 for GPT OSS 20B and 16,384 for Phi-4. Maximum output per response: Qwen3 30B-A3B Instruct 2507 up to 16,384, Phi-4 up to 16,384, GPT OSS 20B up to 131,072 tokens.

Which can read images, PDFs, audio or video?

Qwen3 30B-A3B Instruct 2507 accepts text; Phi-4 accepts text; GPT OSS 20B accepts text. They handle the same number of input types.

Are any of these open source?

Yes, all three publish their weights (Apache 2.0 and MIT), so you can self-host them.

Which is newer?

GPT OSS 20B is the newest, released Aug 5, 2025. Qwen3 30B-A3B Instruct 2507 came out Jul 28, 2025; Phi-4 came out Dec 12, 2024. Knowledge cutoff: Phi-4 Jun 2024, GPT OSS 20B Jun 2024.

How do you decide the winner?

This rating uses capability (59%, independent benchmark results); price (29%, blended price per million tokens (3 input : 1 output), log scale); context window (12%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Dec 2, 2026.This rating uses capability (83%, independent benchmark results); context window (17%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Dec 2, 2026.