Enter opens the highlighted result. Esc closes.

Llama 3.1 8B Instruct vs Hy4 preview

Llama 3.1 8B Instruct costs 31.3x less per output token than Hy4 preview ($0.08 vs $2.501 per million). Updated October 22, 2026; no benchmark has tested both models yet.

Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
Hy4 previewTencent
Coding
44.3
Overall
No data
Output $/M
$2.501
vs $0.08 vs $2.501 per 1M output tokens. Llama 3.1 8B Instruct is 31.3x cheaper.

Llama 3.1 8B Instruct or Hy4 preview: which to pick

Only Hy4 preview has a coding score, 44.3 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding.

Pick Llama 3.1 8B Instruct for output tokens 31.3x cheaper ($0.08 vs $2.501 per million).

No benchmark has tested both yet. Llama 3.1 8B Instruct has results on AA Coding Index, LiveCodeBench (Artificial Analysis run) and Terminal-Bench Hard (Artificial Analysis run); Hy4 preview on LMArena WebDev, Terminal-Bench 4 (Vals AI) and Vibe Code Bench (Vals AI). Compare them on price and context instead.

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 8B Instruct not benchmarked, Hy4 preview 44.3 from 3 benchmarks.
Widest category
None yet: no category has been tested on both models.
Widest single gap
None yet: no benchmark has tested both models.
Output price
Llama 3.1 8B Instruct $0.08 against Hy4 preview $2.501 per million output tokens, 31.3x apart.
Context window
Llama 3.1 8B Instruct takes 131K tokens, Hy4 preview 1.05M.

Benchmark by benchmark

Every board either model has a result on, a category to a fold; bars are each result on a 0 to 100 scale. Only one model is measured on each, so no row names a leader.

CodingDirectional onlySix of these boards feed the Vibe Coding Index16 boards measured
Coding benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
LMArena WebDevNot measured1631Only Hy4 preview measured
AA Coding Index5.4Not measuredOnly Llama 3.1 8B Instruct measured
Terminal-Bench 4 (Vals AI)Not measured8.1%Only Hy4 preview measured
Vibe Code Bench (Vals AI)Not measured77.5%Only Hy4 preview measured
Code migration (Vals AI)Not measured47.4%Only Hy4 preview measured
ProgramBench (Vals AI)Not measured0.0%Only Hy4 preview measured
IOI (Vals AI)Not measured59.3%Only Hy4 preview measured
Terminal-Bench 2.1 (Vals AI)Not measured55.1%Only Hy4 preview measured
CyberBench (Vals AI)Not measured65.4%Only Hy4 preview measured
LiveCodeBench (Artificial Analysis run)11.6%Not measuredOnly Llama 3.1 8B Instruct measured
Terminal-Bench Hard (Artificial Analysis run)0.8%Not measuredOnly Llama 3.1 8B Instruct measured
WeirdML1.7%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: coding1195Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: software and IT1195Not measuredOnly Llama 3.1 8B Instruct measured
LMArena WebDev: ReactNot measured1653Only Hy4 preview measured
LMArena WebDev: HTMLNot measured1620Only Hy4 preview measured
Neither model has a result on the other 23 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards measured
Intelligence benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
AA Intelligence Index6.9Not measuredOnly Llama 3.1 8B Instruct measured
Epoch Capabilities Index116.5Not measuredOnly Llama 3.1 8B Instruct measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards measured
Agentic work benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
SREBench (Vals AI)Not measured2.3%Only Hy4 preview measured
Finance Agent (Vals AI)Not measured55.1%Only Hy4 preview measured
Tax Agent Bench (Vals AI)Not measured32.6%Only Hy4 preview measured
Legal Research Bench (Vals AI)Not measured45.2%Only Hy4 preview measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured8.8%Only Hy4 preview measured
Excel Modeling Benchmark (Vals AI)Not measured58.1%Only Hy4 preview measured
BioMysteryBench (Vals AI)Not measured69.3%Only Hy4 preview measured
Terminal-Bench-Science (Vals AI)Not measured1.4%Only Hy4 preview measured
τ²-Bench Telecom16.4%Not measuredOnly Llama 3.1 8B Instruct measured
BALROG15.1%Not measuredOnly Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)25.8%Not measuredOnly Llama 3.1 8B Instruct measured
Neither model has a result on the other 30 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
Reasoning benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
GPQA Diamond (Artificial Analysis run)25.9%Not measuredOnly Llama 3.1 8B Instruct measured
Humanity's Last Exam (Artificial Analysis run)5.3%Not measuredOnly Llama 3.1 8B Instruct measured
GPQA Diamond (Epoch AI run)27.0%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: hard prompts1175Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: expert1144Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: hard prompts in English1196Not measuredOnly Llama 3.1 8B Instruct measured
Neither model has a result on the other 16 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index8 boards measured
Math benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
AA Math Index4.3Not measuredOnly Llama 3.1 8B Instruct measured
AIME 2025 (Artificial Analysis run)4.3%Not measuredOnly Llama 3.1 8B Instruct measured
OTIS Mock AIME1.7%Not measuredOnly Llama 3.1 8B Instruct measured
ProofBenchNot measured75.0%Only Hy4 preview measured
MATH level 522.9%Not measuredOnly Llama 3.1 8B Instruct measured
GSM8K82.4%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: math1179Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: mathematical work1180Not measuredOnly Llama 3.1 8B Instruct measured
Neither model has a result on the other 5 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index8 boards measured
Knowledge benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
LegalBench (Vals AI)Not measured83.8%Only Hy4 preview measured
MedCode (Vals AI)Not measured43.3%Only Hy4 preview measured
MMLU Pro (Artificial Analysis run)47.6%Not measuredOnly Llama 3.1 8B Instruct measured
MMLU56.1%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: science1193Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: medicine and healthcare1182Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: legal and government1206Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: business and finance1166Not measuredOnly Llama 3.1 8B Instruct measured
Neither model has a result on the other 10 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index24 boards measured
General benchmarks for Llama 3.1 8B Instruct and Hy4 preview
BenchmarkLlama 3.1 8B InstructHy4 previewLeader
Vals IndexNot measured53.2%Only Hy4 preview measured
Public Benefits Bench (Vals AI)Not measured68.6%Only Hy4 preview measured
MedScribe (Vals AI)Not measured83.6%Only Hy4 preview measured
IFBench28.6%Not measuredOnly Llama 3.1 8B Instruct measured
Long context reasoning (AA-LCR)18.0%Not measuredOnly Llama 3.1 8B Instruct measured
DTBench50.9%Not measuredOnly Llama 3.1 8B Instruct measured
LMCA5.4%Not measuredOnly Llama 3.1 8B Instruct measured
PIQA81.2%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text1187Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: instruction following1159Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: creative writing1154Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: English1218Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: non-English1148Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: Chinese1151Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: German1144Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: Japanese1061Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: Korean1053Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: French1178Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: Spanish1169Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: Russian1158Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: multi-turn1172Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: longer queries1181Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: writing and language1162Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: entertainment and media1145Not measuredOnly Llama 3.1 8B Instruct measured
Neither model has a result on the other 22 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 8B Instruct$0.0001Fits in one request
Hy4 preview$0.0021Fits in one request

Llama 3.1 8B Instruct costs less

Repository review

50K input + 3K output tokens

Llama 3.1 8B Instruct$0.0027Fits in one request
Hy4 preview$0.049Fits in one request

Llama 3.1 8B Instruct costs less

Agent loop

200K input + 10K output tokens

Llama 3.1 8B Instruct$0.011Exceeds the context window
Hy4 preview$0.192Fits in one request

Llama 3.1 8B 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.

Specifications of Llama 3.1 8B Instruct and Hy4 preview
SpecificationMeta Llama 3.1 8B InstructTencent Hy4 preview
MakerMeta LlamaTencent
WeightsOpen weightsOpen weights
ReleasedJuly 23, 2024August 28, 2026
Context window131K1.05M
Input $/Mtok$0.05$0.834
Output $/Mtok$0.08$2.501
Coding indexNot benchmarked44.3
Independent measurements behind it03
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Llama 3.1 8B Instruct better than Hy4 preview for coding?

Only Hy4 preview has a coding score, 44.3 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding. Pick Llama 3.1 8B Instruct for output tokens 31.3x cheaper ($0.08 vs $2.501 per million).

Which is cheaper, Llama 3.1 8B Instruct or Hy4 preview?

Llama 3.1 8B Instruct costs $0.05 per million input tokens and $0.08 per million output tokens; Hy4 preview costs $0.834 and $2.501. Cost per solved task is known for neither of them.

Which has the bigger context window, Llama 3.1 8B Instruct or Hy4 preview?

Hy4 preview, with 1.05M tokens against 131K.

Has any benchmark tested both Llama 3.1 8B Instruct and Hy4 preview?

No benchmark has tested both yet. Llama 3.1 8B Instruct has results on AA Coding Index, LiveCodeBench (Artificial Analysis run) and Terminal-Bench Hard (Artificial Analysis run); Hy4 preview on LMArena WebDev, Terminal-Bench 4 (Vals AI) and Vibe Code Bench (Vals AI). Compare them on price and context instead. Data as of October 22, 2026.

Compare next