GPT-4 vs Llama 3.1 70B Instruct
GPT-4 leads Llama 3.1 70B Instruct on the Artificial Analysis Intelligence Index, 6.7 to 6.6, and Llama 3.1 70B Instruct costs 107.1x less per output token ($0.56 vs $60.00 per million). Updated October 21, 2026; 35 benchmarks have a result for both.
GPT-4 or Llama 3.1 70B Instruct: which to pick
Neither model has a coding score yet, so the two cannot be ranked on coding.
Pick GPT-4 for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 35
- GPT-4 only
- 10
- Llama 3.1 70B Instruct only
- 12
- Like-for-like categories
- 6 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Neither has a coding score yet.
One side not measured
Intelligence
AA Intelligence Index
GPT-4
GPT-4 leads, 6.7 against 6.6.
Same board, both measured
Long documents
Listed context window
Llama 3.1 70B Instruct
Llama 3.1 70B Instruct takes 131K tokens against 8K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Llama 3.1 70B Instruct
GPT-4 $0.060, Llama 3.1 70B Instruct $0.0008 per turn.
List prices
At a glance
- Coding index
- GPT-4 not benchmarked, Llama 3.1 70B Instruct not benchmarked.
- Widest category
- Knowledge, 13.9 points apart on average over 6 shared benchmarks.
- Widest single gap
- LMArena Text: medicine and healthcare: GPT-4 1145 against Llama 3.1 70B Instruct 1257, 18.7 points apart on a 0 to 100 scale.
- Output price
- GPT-4 $60.00 against Llama 3.1 70B Instruct $0.56 per million output tokens, 107.1x apart.
- Context window
- GPT-4 takes 8K tokens, Llama 3.1 70B Instruct 131K.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | GPT-4 | Bars | Llama 3.1 70B Instruct | Ties |
|---|---|---|---|---|
| Coding | 0 | 2 | ||
| Intelligence | 1 | 1 | ||
| Reasoning | 0 | 4 | ||
| Math | 0 | 2 | ||
| Knowledge | 1 | 5 | ||
| General | 3 | 16 | ||
| All shared boards | 5 | 30 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| SWE-bench Verified | 22.4% | Not measured | Only GPT-4 measured |
| SWE-bench Lite | 39.7% | Not measured | Only GPT-4 measured |
| SWE-bench (full test set) | 12.5% | Not measured | Only GPT-4 measured |
| AA Coding Index | 13.1 | Not measured | Only GPT-4 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 23.2% | Only Llama 3.1 70B Instruct measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 3.0% | Only Llama 3.1 70B Instruct measured |
| WeirdML | Not measured | 9.0% | Only Llama 3.1 70B Instruct measured |
| LMArena Text: coding | 1209 | 1260 | Llama 3.1 70B Instruct |
| LMArena Text: software and IT | 1195 | 1260 | Llama 3.1 70B Instruct |
| Neither model has a result on the other 29 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| AA Intelligence Index | 6.7 | 6.6 | GPT-4 |
| Epoch Capabilities Index | 125.7 | 125.9 | Llama 3.1 70B Instruct |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| τ²-Bench Telecom | Not measured | 15.2% | Only Llama 3.1 70B Instruct measured |
| BALROG | Not measured | 27.9% | Only Llama 3.1 70B Instruct measured |
| TheAgentCompany | Not measured | 6.9% | Only Llama 3.1 70B Instruct measured |
| Neither model has a result on the other 36 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| GPQA Diamond (Artificial Analysis run) | 34.9% | 40.9% | Llama 3.1 70B Instruct |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 4.5% | Only Llama 3.1 70B Instruct measured |
| GPQA Diamond (Epoch AI run) | Not measured | 44.2% | Only Llama 3.1 70B Instruct measured |
| BIG-Bench Hard | 75.1% | Not measured | Only GPT-4 measured |
| LMArena Text: hard prompts | 1200 | 1241 | Llama 3.1 70B Instruct |
| LMArena Text: expert | 1149 | 1209 | Llama 3.1 70B Instruct |
| LMArena Text: hard prompts in English | 1209 | 1261 | Llama 3.1 70B Instruct |
| Neither model has a result on the other 14 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| AA Math Index | Not measured | 4.0 | Only Llama 3.1 70B Instruct measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 4.0% | Only Llama 3.1 70B Instruct measured |
| OTIS Mock AIME | Not measured | 3.6% | Only Llama 3.1 70B Instruct measured |
| MATH level 5 | Not measured | 36.7% | Only Llama 3.1 70B Instruct measured |
| GSM8K | 92.0% | Not measured | Only GPT-4 measured |
| LMArena Text: math | 1230 | 1252 | Llama 3.1 70B Instruct |
| LMArena Text: mathematical work | 1228 | 1253 | Llama 3.1 70B Instruct |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index15
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| MMLU Pro (Artificial Analysis run) | 56.2% | 67.6% | Llama 3.1 70B Instruct |
| MMLU | 86.4% | 80.1% | GPT-4 |
| AI2 Reasoning Challenge | 96.3% | Not measured | Only GPT-4 measured |
| LMArena Text: science | 1177 | 1276 | Llama 3.1 70B Instruct |
| LMArena Text: medicine and healthcare | 1145 | 1257 | Llama 3.1 70B Instruct |
| LMArena Text: legal and government | 1191 | 1283 | Llama 3.1 70B Instruct |
| LMArena Text: business and finance | 1145 | 1235 | Llama 3.1 70B Instruct |
| Neither model has a result on the other 10 boards here | |||
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| Neither model has a result on 9 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index316
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| IFBench | 33.2% | 34.4% | Llama 3.1 70B Instruct |
| DTBench | 62.7% | 60.0% | GPT-4 |
| LMCA | 17.1% | 14.8% | GPT-4 |
| HellaSwag | 95.3% | Not measured | Only GPT-4 measured |
| WinoGrande | 87.5% | Not measured | Only GPT-4 measured |
| LMArena Text | 1206 | 1261 | Llama 3.1 70B Instruct |
| LMArena Text: instruction following | 1201 | 1231 | Llama 3.1 70B Instruct |
| LMArena Text: creative writing | 1191 | 1232 | Llama 3.1 70B Instruct |
| LMArena Text: English | 1220 | 1294 | Llama 3.1 70B Instruct |
| LMArena Text: non-English | 1194 | 1219 | Llama 3.1 70B Instruct |
| LMArena Text: Chinese | 1184 | 1215 | Llama 3.1 70B Instruct |
| LMArena Text: German | 1198 | 1222 | Llama 3.1 70B Instruct |
| LMArena Text: Japanese | 1137 | 1132 | GPT-4 |
| LMArena Text: Korean | 1087 | 1140 | Llama 3.1 70B Instruct |
| LMArena Text: French | 1220 | 1262 | Llama 3.1 70B Instruct |
| LMArena Text: Spanish | 1197 | 1253 | Llama 3.1 70B Instruct |
| LMArena Text: Russian | 1195 | 1234 | Llama 3.1 70B Instruct |
| LMArena Text: Polish | 1265 | Not measured | Only GPT-4 measured |
| LMArena Text: multi-turn | 1206 | 1256 | Llama 3.1 70B Instruct |
| LMArena Text: longer queries | 1190 | 1241 | Llama 3.1 70B Instruct |
| LMArena Text: writing and language | 1219 | 1236 | Llama 3.1 70B Instruct |
| LMArena Text: entertainment and media | 1184 | 1230 | Llama 3.1 70B Instruct |
| Neither model has a result on the other 24 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-4 | Llama 3.1 70B Instruct | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Llama 3.1 70B Instruct costs less
Repository review
50K input + 3K output tokens
Llama 3.1 70B Instruct costs less
Agent loop
200K input + 10K output tokens
Llama 3.1 70B Instruct costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | OpenAI GPT-4 | Meta Llama 3.1 70B Instruct |
|---|---|---|
| Maker | OpenAI | Meta Llama |
| Weights | No public weights listed | Open weights |
| Released | May 28, 2023 | July 23, 2024 |
| Context window | 8K | 131K |
| Input $/Mtok | $30.00 | $0.56 |
| Output $/Mtok | $60.00 | $0.56 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-4 better than Llama 3.1 70B Instruct for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. Pick GPT-4 for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, GPT-4 or Llama 3.1 70B Instruct?
GPT-4 costs $30.00 per million input tokens and $60.00 per million output tokens; Llama 3.1 70B Instruct costs $0.56 and $0.56. Cost per solved task is known for neither of them.
Which has the bigger context window, GPT-4 or Llama 3.1 70B Instruct?
Llama 3.1 70B Instruct, with 131K tokens against 8K.
How many benchmarks is the GPT-4 vs Llama 3.1 70B Instruct comparison based on?
35 benchmarks have a result for both models as of October 21, 2026. GPT-4's coding index rests on 0 independent benchmarks and Llama 3.1 70B Instruct's on 0. Where only one model has a result, the page says so instead of naming a winner.