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.
Meta
Llama-3.1-70B-Instruct
51/100- ECI124.7
- Price$0.72 / $0.72
- Context128K
- Our pick
OpenAI
GPT-4o mini
57/100- ECI123.8
- Price$0.15 / $0.60
- Context128K
Google
Gemma 2 27B
45/100- ECI118.6
- Price$0.65 / $0.65
- Context8K
Meta
Llama-3.1-70B-Instruct
50/100- ECI124.7
- Price$0.72 / $0.72
- Context128K
OpenAI
GPT-4o mini
49/100- ECI123.8
- Price$0.15 / $0.60
- Context128K
Google
Gemma 2 27B
40/100- ECI118.6
- Price$0.65 / $0.65
- Context8K
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
| Measure | Weight | Llama-3.1-70B-Instruct | GPT-4o mini | Gemma 2 27B |
|---|---|---|---|---|
| CapabilityCapabilities Index (ECI) | 59% | 54 | 53 | 48 |
| Price | 29% | 54 | 74 | 56 |
| Context window | 12% | 32 | 32 | 0 |
| Overall | 100% | 51/100 | 57/100 | 45/100 |
Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.
| Measure | Weight | Llama-3.1-70B-Instruct | GPT-4o mini | Gemma 2 27B |
|---|---|---|---|---|
| CapabilityCapabilities Index (ECI) | 83% | 54 | 53 | 48 |
| Context window | 17% | 32 | 32 | 0 |
| Overall | 100% | 50/100 | 49/100 | 40/100 |
Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.
Every spec in one table
Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.
| Specification | |||
|---|---|---|---|
| Capability | |||
| Capabilities Index (ECI) | 124.7 (best) | 123.8 | 118.6 |
| ECI rank | #146 of 158 (best) | #147 of 158 | #152 of 158 |
| ECI confidence interval | 121.4–127.7 | 120.5–126.8 | 114.2–122.4 |
| ECI evaluation date | Jul 23, 2024 | Jul 18, 2024 | Jun 24, 2024 |
| Documented capabilities | Open Llama instruction model for multilingual chat, reasoning, and coding | Small omni GPT for cheap multimodal assistance and production-scale traffic | Open Gemma instruction model for efficient chat and self-hosted deployments |
| Model parameters | Not published | Not published | Not published |
| Output modalities | Text | Text | Text |
| GPQA DiamondGraduate-level science questions | 44.2% (best) | 37.7% | 36.5% |
| FrontierMath Tiers 1–3Research-level mathematics | Not published | 0.7% | Not published |
| OTIS Mock AIME 2024–2025Competition mathematics | 3.6% | 6.9% (best) | 1.4% |
| SimpleQA VerifiedShort factual questions | Not published | 8.3% | Not published |
| Publisher-reported benchmarks | |||
| Aider PolyglotPublisher-reported result | Not published | 3.6percent correctReported resultDec 21, 2024 | Not published |
| SciCodePublisher-reported result | Not published | 22.9percent correctReported resultMar 11, 2026 | Not published |
| Price per million tokens | |||
| Input | $0.72 | $0.15 (best) | $0.65 |
| Output | $0.72 | $0.60 (best) | $0.65 |
| Cached input | Not published | $0.075 | Not published |
| Blended (3:1) | $0.72 | $0.263 (best) | $0.65 |
| Long-context rate | Same rate | Same rate | Same rate |
| Price source | Median of 8 providers | Official OpenAI API | Median of 4 providers |
| Limits | |||
| Context window | 128,000 tokens (best) | 128,000 tokens (best) | 8,192 tokens |
| Max input | Not published | Not published | Not published |
| Max output | 4,096 tokens | 16,384 tokens (best) | 2,048 tokens |
| Inputs and features | |||
| Text | Yes | Yes | Yes |
| Images | No | Yes | No |
| PDFs | No | Yes | No |
| Audio | No | No | No |
| Video | No | No | No |
| Reasoning | No | No | No |
| Tool calling | Yes | Yes | No |
| Structured output | Not published | Yes | Not published |
| File attachments | No | Yes | No |
| Temperature control | Yes | Yes | Yes |
| Reasoning control | Not published | Not published | Not published |
| Availability | |||
| Weights | Open | Proprietary | Open |
| API model ID | Not published | gpt-4o-mini | Not published |
| API providers | 8 | 28 (best) | 4 |
| Released | Jul 23, 2024 | Jul 18, 2024 | Jul 13, 2024 |
| Knowledge cutoff | Dec 2023 | Sep 2023 | Jun 30, 2024 |
| Publisher documentation | Model weights | Publisher documentation | Model weights |
| Source metadata updated | Jul 23, 2024 | Jul 18, 2024 | Jul 13, 2024 |
| Data sources | models.dev · Epoch AI | models.dev · Epoch AI | models.dev · Epoch AI |
| Catalog checked | Nov 24, 2026 | Nov 24, 2026 | Nov 24, 2026 |
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
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.