ZMIME
Comparison · 3 models · Updated Nov 24, 2026

Llama-3.1-70B-Instruct vs GPT-4o mini vs Gemma 2 27B

GPT-4o mini comes out ahead, 57 to 51 and 45 on our weighted score, and it is the cheaper option too.Too close to call on our weighted score (Llama-3.1-70B-Instruct 50, GPT-4o mini 49, Gemma 2 27B 40). The right pick depends on what you value most.

  1. Meta

    Llama-3.1-70B-Instruct

    Released Jul 23, 2024

    51/100
    • ECI124.7
    • Price$0.72 / $0.72
    • Context128K
  2. Our pick

    OpenAI

    GPT-4o mini

    Released Jul 18, 2024Deprecated

    57/100
    • ECI123.8
    • Price$0.15 / $0.60
    • Context128K
  3. Google

    Gemma 2 27B

    Released Jul 13, 2024

    45/100
    • ECI118.6
    • Price$0.65 / $0.65
    • Context8K
  4. Meta

    Llama-3.1-70B-Instruct

    Released Jul 23, 2024

    50/100
    • ECI124.7
    • Price$0.72 / $0.72
    • Context128K
  5. OpenAI

    GPT-4o mini

    Released Jul 18, 2024Deprecated

    49/100
    • ECI123.8
    • Price$0.15 / $0.60
    • Context128K
  6. Google

    Gemma 2 27B

    Released Jul 13, 2024

    40/100
    • ECI118.6
    • Price$0.65 / $0.65
    • Context8K
01 — Verdict

GPT-4o mini is our pickToo close to call

GPT-4o mini is the better all-round choice, scoring 57/100 against Llama-3.1-70B-Instruct (51) and Gemma 2 27B (45). It leads on price. The score weighs capability 59%, price 29%, context window 12%.It is close. Our weighted score puts them within a point (Llama-3.1-70B-Instruct 50/100, GPT-4o mini 49/100, Gemma 2 27B 40/100), so choose by what matters most for your work: Llama-3.1-70B-Instruct for raw capability and GPT-4o mini on price. The score weighs capability 83%, context window 17%.

  • CapabilityLlama-3.1-70B-InstructCapabilities Index (ECI): Llama-3.1-70B-Instruct 124.7 · GPT-4o mini 123.8 · Gemma 2 27B 118.6
  • Lowest priceGPT-4o miniGPT-4o mini $0.263 · Gemma 2 27B $0.65 · Llama-3.1-70B-Instruct $0.72 per 1M tokens (3:1 blend)
  • Longest contextLlama-3.1-70B-Instruct and GPT-4o miniLlama-3.1-70B-Instruct 128,000 · GPT-4o mini 128,000 · Gemma 2 27B 8,192 tokens
  • Widest inputsGPT-4o miniLlama-3.1-70B-Instruct: Text · GPT-4o mini: Text, Images, PDFs · Gemma 2 27B: Text
  • Self-hostingLlama-3.1-70B-Instruct and Gemma 2 27BPublishes downloadable weights
How the score is built
MeasureWeightLlama-3.1-70B-InstructGPT-4o miniGemma 2 27B
CapabilityCapabilities Index (ECI)59%545348
Price29%547456
Context window12%32320
Overall100%51/10057/10045/100

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

How the score is built
MeasureWeightLlama-3.1-70B-InstructGPT-4o miniGemma 2 27B
CapabilityCapabilities Index (ECI)83%545348
Context window17%32320
Overall100%50/10049/10040/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.

Llama-3.1-70B-Instruct vs GPT-4o mini vs Gemma 2 27B specifications side by side
SpecificationLlama-3.1-70B-InstructMetaGPT-4o miniOpenAIGemma 2 27BGoogle
Capability
Capabilities Index (ECI)124.7 (best)123.8118.6
ECI rank#146 of 158 (best)#147 of 158#152 of 158
ECI confidence interval121.4–127.7120.5–126.8114.2–122.4
ECI evaluation dateJul 23, 2024Jul 18, 2024Jun 24, 2024
Documented capabilitiesOpen Llama instruction model for multilingual chat, reasoning, and codingSmall omni GPT for cheap multimodal assistance and production-scale trafficOpen Gemma instruction model for efficient chat and self-hosted deployments
Model parametersNot publishedNot publishedNot published
Output modalitiesTextTextText
GPQA DiamondGraduate-level science questions44.2% (best)37.7%36.5%
FrontierMath Tiers 1–3Research-level mathematicsNot published0.7%Not published
OTIS Mock AIME 2024–2025Competition mathematics3.6%6.9% (best)1.4%
SimpleQA VerifiedShort factual questionsNot published8.3%Not published
Publisher-reported benchmarks
Aider PolyglotPublisher-reported resultNot published3.6percent correctReported resultDec 21, 2024Not published
SciCodePublisher-reported resultNot published22.9percent correctReported resultMar 11, 2026Not published
Price per million tokens
Input$0.72$0.15 (best)$0.65
Output$0.72$0.60 (best)$0.65
Cached inputNot published$0.075Not published
Blended (3:1)$0.72$0.263 (best)$0.65
Long-context rateSame rateSame rateSame rate
Price sourceMedian of 8 providersOfficial OpenAI APIMedian of 4 providers
Limits
Context window128,000 tokens (best)128,000 tokens (best)8,192 tokens
Max inputNot publishedNot publishedNot published
Max output4,096 tokens16,384 tokens (best)2,048 tokens
Inputs and features
TextYesYesYes
ImagesNoYesNo
PDFsNoYesNo
AudioNoNoNo
VideoNoNoNo
ReasoningNoNoNo
Tool callingYesYesNo
Structured outputNot publishedYesNot published
File attachmentsNoYesNo
Temperature controlYesYesYes
Reasoning controlNot publishedNot publishedNot published
Availability
WeightsOpenProprietaryOpen
API model IDNot publishedgpt-4o-miniNot published
API providers828 (best)4
ReleasedJul 23, 2024Jul 18, 2024Jul 13, 2024
Knowledge cutoffDec 2023Sep 2023Jun 30, 2024
Publisher documentationModel weightsPublisher documentationModel weights
Source metadata updatedJul 23, 2024Jul 18, 2024Jul 13, 2024
Data sourcesmodels.dev · Epoch AImodels.dev · Epoch AImodels.dev · Epoch AI
Catalog checkedNov 24, 2026Nov 24, 2026Nov 24, 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.

  • Llama-3.1-70B-Instruct$8.64
  • GPT-4o mini$2.70
  • Gemma 2 27B$7.80
04 — Questions

Which should you choose?

Which is better: Llama-3.1-70B-Instruct, GPT-4o mini or Gemma 2 27B?

GPT-4o mini is the better all-round choice, scoring 57/100 against Llama-3.1-70B-Instruct (51) and Gemma 2 27B (45). It leads on price. The score weighs capability 59%, price 29%, context window 12%.It is close. Our weighted score puts them within a point (Llama-3.1-70B-Instruct 50/100, GPT-4o mini 49/100, Gemma 2 27B 40/100), so choose by what matters most for your work: Llama-3.1-70B-Instruct for raw capability and GPT-4o mini on price. The score weighs capability 83%, context window 17%.

Which is cheaper, Llama-3.1-70B-Instruct, GPT-4o mini or Gemma 2 27B?

GPT-4o mini is cheaper at $0.15 input / $0.60 output per million tokens (official OpenAI API price). Gemma 2 27B costs $0.65 input / $0.65 output per million tokens (median across 4 API providers); Llama-3.1-70B-Instruct costs $0.72 input / $0.72 output per million tokens (median across 8 API providers). At a typical mix of three input tokens to one output token, that is $0.263 per million tokens for GPT-4o mini versus $0.65 for Gemma 2 27B (2.5× as much) and $0.72 for Llama-3.1-70B-Instruct (2.7× as much).

Which scores higher on benchmarks?

Llama-3.1-70B-Instruct scores higher on the Capabilities Index (ECI): Llama-3.1-70B-Instruct 124.7 (#146 of 158), GPT-4o mini 123.8 (#147 of 158) and Gemma 2 27B 118.6 (#152 of 158). The confidence ranges of the top two overlap (121.4–127.7 vs 120.5–126.8), so treat the gap as small. On individual benchmarks: GPQA Diamond — Llama-3.1-70B-Instruct 44.2%, GPT-4o mini 37.7%, Gemma 2 27B 36.5%; OTIS Mock AIME 2024–2025 — GPT-4o mini 6.9%, Llama-3.1-70B-Instruct 3.6%, Gemma 2 27B 1.4%.

Which is better for coding?

There are no published SWE-bench Verified results for Llama-3.1-70B-Instruct, GPT-4o mini and Gemma 2 27B yet, so there is no like-for-like coding score. On overall capability, Llama-3.1-70B-Instruct leads, which tends to carry over to coding, but test on your own codebase. Note that Gemma 2 27B has no confirmed tool-calling support in this comparison.

Which has the bigger context window?

Llama-3.1-70B-Instruct and GPT-4o mini have the largest context windows (128,000 and 128,000 tokens), against 8,192 for Gemma 2 27B. Maximum output per response: Llama-3.1-70B-Instruct up to 4,096, GPT-4o mini up to 16,384, Gemma 2 27B up to 2,048 tokens.

Which can read images, PDFs, audio or video?

Llama-3.1-70B-Instruct accepts text; GPT-4o mini accepts text, images and PDFs; Gemma 2 27B accepts text. GPT-4o mini handles the widest range of inputs.

Are any of these open source?

Llama-3.1-70B-Instruct and Gemma 2 27B publishes its weights and can be self-hosted; GPT-4o mini is proprietary.

Which is newer?

Llama-3.1-70B-Instruct is the newest, released Jul 23, 2024. GPT-4o mini came out Jul 18, 2024; Gemma 2 27B came out Jul 13, 2024. Knowledge cutoff: Llama-3.1-70B-Instruct Dec 2023, GPT-4o mini Sep 2023, Gemma 2 27B Jun 30, 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 Nov 24, 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 Nov 24, 2026.