ZMIME
Comparison · 3 models · Updated Oct 4, 2026

GPT-4.1 vs Qwen3 32B vs Claude Sonnet 4

Too close to call on our weighted score (GPT-4.1 53, Qwen3 32B 51, Claude Sonnet 4 51). The right pick depends on what you value most.

  1. OpenAI

    GPT-4.1

    Released Apr 14, 2025

    53/100
    • ECI136.8
    • Price$2.00 / $8.00
    • Context1.05M
  2. Alibaba (Qwen)

    Qwen3 32B

    Released Apr 29, 2025

    51/100
    • ECI138.5
    • Price$0.70 / $2.80
    • Context131K
  3. Anthropic

    Claude Sonnet 4

    Released May 22, 2025

    51/100
    • ECI141.7
    • Price$3.00 / $15.00
    • Context200K
01 — Verdict

Too close to call

It is close. Our weighted score puts them within 2 points (GPT-4.1 53/100, Qwen3 32B 51/100, Claude Sonnet 4 51/100), so choose by what matters most for your work: Claude Sonnet 4 for raw capability, Qwen3 32B on price and GPT-4.1 for long inputs. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

  • CapabilityClaude Sonnet 4Capabilities Index (ECI): Claude Sonnet 4 141.7 · Qwen3 32B 138.5 · GPT-4.1 136.8
  • Lowest priceQwen3 32BQwen3 32B $1.23 · GPT-4.1 $3.50 · Claude Sonnet 4 $6.00 per 1M tokens (3:1 blend)
  • Longest contextGPT-4.1GPT-4.1 1,047,576 · Claude Sonnet 4 200,000 · Qwen3 32B 131,072 tokens
  • Widest inputsGPT-4.1 and Claude Sonnet 4GPT-4.1: Text, Images, PDFs · Qwen3 32B: Text · Claude Sonnet 4: Text, Images, PDFs
  • Self-hostingQwen3 32BPublishes downloadable weights
How the score is built
MeasureWeightGPT-4.1Qwen3 32BClaude Sonnet 4
CapabilityCapabilities Index (ECI)50%616468
Price25%244613
Inputs & features15%703570
Context window10%612432
Overall100%53/10051/10051/100
02 — Side by side

Every spec in one table

Highlighted cells lead their row. Dashes mean the data is not published.

GPT-4.1 vs Qwen3 32B vs Claude Sonnet 4 specifications side by side
SpecificationGPT-4.1OpenAIQwen3 32BAlibaba (Qwen)Claude Sonnet 4Anthropic
Capability
Capabilities Index (ECI)136.8138.5141.7 (best)
ECI rank#111 of 148#106 of 148#94 of 148 (best)
GPQA DiamondGraduate-level science questions66.9%65.7%79.2% (best)
FrontierMath Tiers 1–3Research-level mathematics6.0%——
OTIS Mock AIME 2024–2025Competition mathematics38.3%66.9%71.1% (best)
SWE-bench VerifiedFixing real GitHub issues48.5%——
SimpleQA VerifiedShort factual questions31.1%——
Price per million tokens
Input$2.00$0.70 (best)$3.00
Output$8.00$2.80 (best)$15.00
Cached input$0.50——
Blended (3:1)$3.50$1.23 (best)$6.00
Long-context rateSame rateSame rateSame rate
Price sourceOfficial OpenAI APIOfficial Alibaba APIMedian of 9 providers
Limits
Context window1,047,576 tokens (best)131,072 tokens200,000 tokens
Max output32,768 tokens16,384 tokens64,000 tokens (best)
Inputs and features
TextYesYesYes
ImagesYesNoYes
PDFsYesNoYes
AudioNoNoNo
VideoNoNoNo
ReasoningNoYesYes
Tool callingYesYesYes
Structured outputYesNoNo
Availability
WeightsProprietaryOpenProprietary
API model IDgpt-4.1qwen3-32b—
API providers25 (best)149
ReleasedApr 14, 2025Apr 29, 2025May 22, 2025
Knowledge cutoffApr 2024Apr 2025Mar 31, 2025
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.

  • GPT-4.1$36.00
  • Qwen3 32B$12.60
  • Claude Sonnet 4$60.00
04 — Questions

Which should you choose?

Which is better: GPT-4.1, Qwen3 32B or Claude Sonnet 4?

It is close. Our weighted score puts them within 2 points (GPT-4.1 53/100, Qwen3 32B 51/100, Claude Sonnet 4 51/100), so choose by what matters most for your work: Claude Sonnet 4 for raw capability, Qwen3 32B on price and GPT-4.1 for long inputs. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

Which is cheaper, GPT-4.1, Qwen3 32B or Claude Sonnet 4?

Qwen3 32B is cheaper at $0.70 input / $2.80 output per million tokens (official Alibaba API price). GPT-4.1 costs $2.00 input / $8.00 output per million tokens (official OpenAI API price); Claude Sonnet 4 costs $3.00 input / $15.00 output per million tokens (median across 9 API providers). At a typical mix of three input tokens to one output token, that is $1.23 per million tokens for Qwen3 32B versus $3.50 for GPT-4.1 (2.9× as much) and $6.00 for Claude Sonnet 4 (4.9× as much).

Which scores higher on benchmarks?

Claude Sonnet 4 scores higher on the Capabilities Index (ECI): Claude Sonnet 4 141.7 (#94 of 148), Qwen3 32B 138.5 (#106 of 148) and GPT-4.1 136.8 (#111 of 148). The confidence ranges of the top two overlap (139.2–142.9 vs 135.1–140.4), so treat the gap as small. On individual benchmarks: GPQA Diamond — Claude Sonnet 4 79.2%, GPT-4.1 66.9%, Qwen3 32B 65.7%; OTIS Mock AIME 2024–2025 — Claude Sonnet 4 71.1%, Qwen3 32B 66.9%, GPT-4.1 38.3%.

Which is better for coding?

There are no published SWE-bench Verified results for Qwen3 32B and Claude Sonnet 4 yet, so there is no like-for-like coding score. On overall capability, Claude Sonnet 4 leads, which tends to carry over to coding, but test on your own codebase. All three support tool calling for agent workflows.

Which has the bigger context window?

GPT-4.1 has the largest context window at 1,047,576 tokens, against 200,000 for Claude Sonnet 4 and 131,072 for Qwen3 32B. Maximum output per response: GPT-4.1 up to 32,768, Qwen3 32B up to 16,384, Claude Sonnet 4 up to 64,000 tokens.

Which can read images, PDFs, audio or video?

GPT-4.1 accepts text, images and PDFs; Qwen3 32B accepts text; Claude Sonnet 4 accepts text, images and PDFs. GPT-4.1 handles the widest range of inputs.

Are any of these open source?

Qwen3 32B publishes its weights and can be self-hosted; GPT-4.1 and Claude Sonnet 4 is proprietary.

Which is newer?

Claude Sonnet 4 is the newest, released May 22, 2025. Qwen3 32B came out Apr 29, 2025; GPT-4.1 came out Apr 14, 2025. Knowledge cutoff: GPT-4.1 Apr 2024, Qwen3 32B Apr 2025, Claude Sonnet 4 Mar 31, 2025.

How do you decide the winner?

Each model gets a 0–100 score on capability (50%, independent benchmark results); price (25%, blended price per million tokens (3 input : 1 output), log scale); inputs & features (15%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (10%, 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 Oct 4, 2026.