ZMIME
Comparison · 3 models · Updated Nov 2, 2026

Qwen2.5 7B Instruct vs Claude Haiku 3.5 vs Llama-3.1-8B-Instruct

Too close to call on our weighted score (Qwen2.5 7B Instruct 50, Llama-3.1-8B-Instruct 49, Claude Haiku 3.5 46). The right pick depends on what you value most.

  1. Alibaba (Qwen)

    Qwen2.5 7B Instruct

    Released Sep 19, 2024

    50/100
    • ECI118.5
    • Price$0.05 / $0.10
    • Context131K
  2. Anthropic

    Claude Haiku 3.5

    Released Oct 22, 2024

    46/100
    • ECI127.0
    • Price$0.80 / $4.00
    • Context200K
  3. Meta

    Llama-3.1-8B-Instruct

    Released Jul 23, 2024

    49/100
    • ECI116.4
    • Price$0.06 / $0.08
    • Context128K
01 — Verdict

Too close to call

It is close. Our weighted score puts them within 1 points (Qwen2.5 7B Instruct 50/100, Llama-3.1-8B-Instruct 49/100, Claude Haiku 3.5 46/100), so choose by what matters most for your work: Claude Haiku 3.5 for raw capability and Qwen2.5 7B Instruct on price. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

  • CapabilityClaude Haiku 3.5Capabilities Index (ECI): Claude Haiku 3.5 127.0 · Qwen2.5 7B Instruct 118.5 · Llama-3.1-8B-Instruct 116.4
  • Lowest priceQwen2.5 7B InstructQwen2.5 7B Instruct $0.063 · Llama-3.1-8B-Instruct $0.065 · Claude Haiku 3.5 $1.60 per 1M tokens (3:1 blend)
  • Longest contextClaude Haiku 3.5Claude Haiku 3.5 200,000 · Qwen2.5 7B Instruct 131,072 · Llama-3.1-8B-Instruct 128,000 tokens
  • Widest inputsClaude Haiku 3.5Qwen2.5 7B Instruct: Text · Claude Haiku 3.5: Text, Images, PDFs · Llama-3.1-8B-Instruct: Text
  • Self-hostingQwen2.5 7B Instruct and Llama-3.1-8B-InstructPublishes downloadable weights (Apache 2.0)
How the score is built
MeasureWeightQwen2.5 7B InstructClaude Haiku 3.5Llama-3.1-8B-Instruct
CapabilityCapabilities Index (ECI)50%384835
Price25%10038100
Inputs & features15%256025
Context window10%253224
Overall100%50/10046/10049/100
02 — Side by side

Every spec in one table

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

Qwen2.5 7B Instruct vs Claude Haiku 3.5 vs Llama-3.1-8B-Instruct specifications side by side
SpecificationQwen2.5 7B InstructAlibaba (Qwen)Claude Haiku 3.5AnthropicLlama-3.1-8B-InstructMeta
Capability
Capabilities Index (ECI)118.5127.0 (best)116.4
ECI rank#159 of 165#147 of 165 (best)#162 of 165
GPQA DiamondGraduate-level science questions35.5%38.1% (best)27.0%
OTIS Mock AIME 2024–2025Competition mathematics2.5%4.3% (best)1.7%
Price per million tokens
Input$0.05 (best)$0.80$0.06
Output$0.10$4.00$0.08 (best)
Cached input———
Blended (3:1)$0.063 (best)$1.60$0.065
Long-context rateSame rateSame rateSame rate
Price sourceMedian of 3 providersMedian of 3 providersMedian of 17 providers
Limits
Context window131,072 tokens200,000 tokens (best)128,000 tokens
Max output8,192 tokens (best)8,192 tokens (best)4,096 tokens
Inputs and features
TextYesYesYes
ImagesNoYesNo
PDFsNoYesNo
AudioNoNoNo
VideoNoNoNo
ReasoningNoNoNo
Tool callingYesYesYes
Structured outputNoNoNo
Availability
WeightsOpenApache 2.0ProprietaryOpen
API model ID———
API providers4418 (best)
ReleasedSep 19, 2024Oct 22, 2024Jul 23, 2024
Knowledge cutoff—Jul 31, 2024Dec 2023
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.

  • Qwen2.5 7B Instruct$0.70
  • Claude Haiku 3.5$16.00
  • Llama-3.1-8B-Instruct$0.76
04 — Questions

Which should you choose?

Which is better: Qwen2.5 7B Instruct, Claude Haiku 3.5 or Llama-3.1-8B-Instruct?

It is close. Our weighted score puts them within 1 points (Qwen2.5 7B Instruct 50/100, Llama-3.1-8B-Instruct 49/100, Claude Haiku 3.5 46/100), so choose by what matters most for your work: Claude Haiku 3.5 for raw capability and Qwen2.5 7B Instruct on price. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

Which is cheaper, Qwen2.5 7B Instruct, Claude Haiku 3.5 or Llama-3.1-8B-Instruct?

Qwen2.5 7B Instruct is cheaper at $0.05 input / $0.10 output per million tokens (median across 3 API providers). Llama-3.1-8B-Instruct costs $0.06 input / $0.08 output per million tokens (median across 17 API providers); Claude Haiku 3.5 costs $0.80 input / $4.00 output per million tokens (median across 3 API providers). At a typical mix of three input tokens to one output token, that is $0.063 per million tokens for Qwen2.5 7B Instruct versus $0.065 for Llama-3.1-8B-Instruct (1× as much) and $1.60 for Claude Haiku 3.5 (26× as much).

Which scores higher on benchmarks?

Claude Haiku 3.5 scores higher on the Capabilities Index (ECI): Claude Haiku 3.5 127.0 (#147 of 165), Qwen2.5 7B Instruct 118.5 (#159 of 165) and Llama-3.1-8B-Instruct 116.4 (#162 of 165). Their confidence ranges do not overlap (121.4–129.2 vs 110.6–121.2), so the gap is a real one. On individual benchmarks: GPQA Diamond — Claude Haiku 3.5 38.1%, Qwen2.5 7B Instruct 35.5%, Llama-3.1-8B-Instruct 27.0%; OTIS Mock AIME 2024–2025 — Claude Haiku 3.5 4.3%, Qwen2.5 7B Instruct 2.5%, Llama-3.1-8B-Instruct 1.7%.

Which is better for coding?

There are no published SWE-bench Verified results for Qwen2.5 7B Instruct, Claude Haiku 3.5 and Llama-3.1-8B-Instruct yet, so there is no like-for-like coding score. On overall capability, Claude Haiku 3.5 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?

Claude Haiku 3.5 has the largest context window at 200,000 tokens, against 131,072 for Qwen2.5 7B Instruct and 128,000 for Llama-3.1-8B-Instruct. Maximum output per response: Qwen2.5 7B Instruct up to 8,192, Claude Haiku 3.5 up to 8,192, Llama-3.1-8B-Instruct up to 4,096 tokens.

Which can read images, PDFs, audio or video?

Qwen2.5 7B Instruct accepts text; Claude Haiku 3.5 accepts text, images and PDFs; Llama-3.1-8B-Instruct accepts text. Claude Haiku 3.5 handles the widest range of inputs.

Are any of these open source?

Qwen2.5 7B Instruct and Llama-3.1-8B-Instruct publishes its weights (Apache 2.0) and can be self-hosted; Claude Haiku 3.5 is proprietary.

Which is newer?

Claude Haiku 3.5 is the newest, released Oct 22, 2024. Qwen2.5 7B Instruct came out Sep 19, 2024; Llama-3.1-8B-Instruct came out Jul 23, 2024. Knowledge cutoff: Claude Haiku 3.5 Jul 31, 2024, Llama-3.1-8B-Instruct Dec 2023.

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 Nov 2, 2026.