Enter opens the highlighted result. Esc closes.

Llama 3.1 70B Instruct vs Phi 4

Llama 3.1 70B Instruct leads Phi 4 on the Artificial Analysis Intelligence Index, 6.6 to 5.9, and Phi 4 costs 4.0x less per output token ($0.14 vs $0.56 per million). Updated October 21, 2026; 43 benchmarks have a result for both.

Llama 3.1 70B InstructMeta Llama
Coding
No data
Overall
24.3
Output $/M
$0.56
29
Phi 4Microsoft
Coding
No data
Overall
24.7
Output $/M
$0.14
14
vs boards won of 43 shared

Llama 3.1 70B Instruct or Phi 4: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick Llama 3.1 70B Instruct for a larger context window (131K against 16K tokens) and work measured by Terminal-Bench Hard (Artificial Analysis run) or Epoch Capabilities Index, where it leads.

Shared results
43
Llama 3.1 70B Instruct only
4
Phi 4 only
3
Like-for-like categories
7 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.

At a glance

Coding index
Llama 3.1 70B Instruct not benchmarked, Phi 4 not benchmarked.
Widest category
Agentic work, 15.8 points apart on average over 2 shared benchmarks.
Widest single gap
MATH level 5: Llama 3.1 70B Instruct 36.7% against Phi 4 64.9%, 28.3 points apart on a 0 to 100 scale.
Output price
Llama 3.1 70B Instruct $0.56 against Phi 4 $0.14 per million output tokens, 4.0x apart.
Context window
Llama 3.1 70B Instruct takes 131K tokens, Phi 4 16K.

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.

Boards won, where both have a result
CategoryLlama 3.1 70B InstructBarsPhi 4Ties
Coding31
Intelligence11
Agentic work20
Reasoning42
Math15
Knowledge42
General143
All shared boards2914
CodingLike-for-likeSix of these boards feed the Vibe Coding Index31
Coding benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
LiveCodeBench (Artificial Analysis run)23.2%23.1%Llama 3.1 70B Instruct
Terminal-Bench Hard (Artificial Analysis run)3.0%3.8%Phi 4
WeirdML9.0%Not measuredOnly Llama 3.1 70B Instruct measured
LMArena Text: coding12601231Llama 3.1 70B Instruct
LMArena Text: software and IT12601228Llama 3.1 70B Instruct
Neither model has a result on the other 34 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
AA Intelligence Index6.65.9Llama 3.1 70B Instruct
Epoch Capabilities Index125.9130.5Phi 4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
Agentic work benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
τ²-Bench Telecom15.2%0.0%Llama 3.1 70B Instruct
BALROG27.9%11.6%Llama 3.1 70B Instruct
TheAgentCompany6.9%Not measuredOnly Llama 3.1 70B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)Not measured28.8%Only Phi 4 measured
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index42
Reasoning benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
GPQA Diamond (Artificial Analysis run)40.9%57.5%Phi 4
Humanity's Last Exam (Artificial Analysis run)4.5%3.8%Llama 3.1 70B Instruct
GPQA Diamond (Epoch AI run)44.2%56.1%Phi 4
LMArena Text: hard prompts12411220Llama 3.1 70B Instruct
LMArena Text: expert12091203Llama 3.1 70B Instruct
LMArena Text: hard prompts in English12611230Llama 3.1 70B Instruct
Neither model has a result on the other 16 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index15
Math benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
AA Math Index4.018.0Phi 4
AIME 2025 (Artificial Analysis run)4.0%18.0%Phi 4
OTIS Mock AIME3.6%13.8%Phi 4
MATH level 536.7%64.9%Phi 4
LMArena Text: math12521246Llama 3.1 70B Instruct
LMArena Text: mathematical work12531254Phi 4
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index42
Knowledge benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
MMLU Pro (Artificial Analysis run)67.6%71.4%Phi 4
MMLU80.1%84.8%Phi 4
LMArena Text: science12761206Llama 3.1 70B Instruct
LMArena Text: medicine and healthcare12571202Llama 3.1 70B Instruct
LMArena Text: legal and government12831241Llama 3.1 70B Instruct
LMArena Text: business and finance12351199Llama 3.1 70B Instruct
Neither model has a result on the other 12 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index143
General benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
IFBench34.4%23.5%Llama 3.1 70B Instruct
Long context reasoning (AA-LCR)Not measured0.0%Only Phi 4 measured
DTBench60.0%Not measuredOnly Llama 3.1 70B Instruct measured
LMCA14.8%Not measuredOnly Llama 3.1 70B Instruct measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text12611217Llama 3.1 70B Instruct
LMArena Text: instruction following12311201Llama 3.1 70B Instruct
LMArena Text: creative writing12321181Llama 3.1 70B Instruct
LMArena Text: English12941231Llama 3.1 70B Instruct
LMArena Text: non-English12191197Llama 3.1 70B Instruct
LMArena Text: Chinese12151212Llama 3.1 70B Instruct
LMArena Text: German12221222Phi 4
LMArena Text: Japanese11321158Phi 4
LMArena Text: Korean11401151Phi 4
LMArena Text: French12621224Llama 3.1 70B Instruct
LMArena Text: Spanish12531234Llama 3.1 70B Instruct
LMArena Text: Russian12341209Llama 3.1 70B Instruct
LMArena Text: multi-turn12561206Llama 3.1 70B Instruct
LMArena Text: longer queries12411217Llama 3.1 70B Instruct
LMArena Text: writing and language12361198Llama 3.1 70B Instruct
LMArena Text: entertainment and media12301162Llama 3.1 70B Instruct
Neither model has a result on the other 25 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Llama 3.1 70B Instruct and Phi 4
BenchmarkLlama 3.1 70B InstructPhi 4Leader
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$0.0008Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Llama 3.1 70B Instruct$0.030Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Llama 3.1 70B Instruct$0.118Exceeds the context window
Phi 4$0.015Exceeds the context window

Phi 4 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.

Specifications of Llama 3.1 70B Instruct and Phi 4
SpecificationMeta Llama 3.1 70B InstructMicrosoft Phi 4
MakerMeta LlamaMicrosoft
WeightsOpen weightsOpen weights
ReleasedJuly 23, 2024January 10, 2025
Context window131K16K
Input $/Mtok$0.56$0.07
Output $/Mtok$0.56$0.14
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Llama 3.1 70B Instruct better than Phi 4 for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Llama 3.1 70B Instruct for a larger context window (131K against 16K tokens) and work measured by Terminal-Bench Hard (Artificial Analysis run) or Epoch Capabilities Index, where it leads.

Which is cheaper, Llama 3.1 70B Instruct or Phi 4?

Llama 3.1 70B Instruct costs $0.56 per million input tokens and $0.56 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for neither of them.

Which has the bigger context window, Llama 3.1 70B Instruct or Phi 4?

Llama 3.1 70B Instruct, with 131K tokens against 16K.

How many benchmarks is the Llama 3.1 70B Instruct vs Phi 4 comparison based on?

43 benchmarks have a result for both models as of October 21, 2026. Llama 3.1 70B Instruct's coding index rests on 0 independent benchmarks and Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next