Compare / Claude Sonnet 4 vs Llama 3.1 8B Instruct

Claude Sonnet 4 vs Llama 3.1 8B Instruct

Which is cheaper, which is more capable, and which does better at each kind of work, from 18 results on 3 sources that measured both models.

Claude Sonnet 4
Anthropic · profile
Llama 3.1 8B Instruct
Meta · profile
Results compared
18
Shared sources
3

Claude Sonnet 4 or Llama 3.1 8B Instruct? The short answer

  • Llama 3.1 8B Instruct is cheaper: $0.058 against $6.00 per million tokens, 104 times less.
  • Claude Sonnet 4 scores higher on the Artificial Analysis Intelligence Index: 18.9 against 6.9.
  • On our business benchmarks, Claude Sonnet 4 ranks higher for agents and tool use, reasoning and knowledge and writing.

At a glance

Claude Sonnet 4Llama 3.1 8B Instruct
Price per million tokens$3.00 in · $15.00 out$0.050 in · $0.080 out
Blended (3 in : 1 out)$6.00$0.058
Cheapest host, blended$6.00 (Amazon Bedrock)$0.025 (DeepInfra, FP8)
Intelligence Index18.96.9
Spring Prompt overall––
Output speed, tokens a second––
Context window200,000 tokens131,072 tokens
WeightsClosedOpen
Developer based inthe USthe US

Prices are the developer's list price where we have read it, otherwise the typical host on OpenRouter; see every model's price. Intelligence and speed from Artificial Analysis.

Which is better for what

Each model's rank among models available today, for each kind of work, from our own benchmarks and licensed sources. The better rank is in green.

Use caseClaude Sonnet 4Llama 3.1 8B Instruct
Agents and tool useMulti-step tasks with tools: support desks, coding agents, function calls 79 of 161 154 of 161
Reasoning and knowledgeHard questions across science, maths and general knowledge 111 of 195 173 of 195
WritingWhat people prefer in blind comparisons, and judged writing quality 68 of 187 178 of 187
Sticking to the factsSummarising without inventing things, and factual answers 88 of 153 not measured

Every shared result

BenchmarkMetricClaude Sonnet 4Llama 3.1 8B Instruct
Arena (formerly LMArena)reportedBusiness, management and financeArena rating 1,3871,210
Arena (formerly LMArena)reportedCreative writingArena rating 1,3951,177
Arena (formerly LMArena)reportedExpert promptsArena rating 1,4331,198
Arena (formerly LMArena)reportedInstruction followingArena rating 1,4151,191
Arena (formerly LMArena)reportedOverallArena rating 1,4021,211
Arena (formerly LMArena)reportedWriting, literature and languageArena rating 1,3981,182
Artificial AnalysisreportedArtificial Analysis Coding Indexindex score 37.65.40
Artificial AnalysisreportedArtificial Analysis Intelligence Indexindex score 18.96.90
Artificial AnalysisreportedGPQA Diamond% of questions 77.7%25.9%
Artificial AnalysisreportedHumanity's Last Exam% of questions 10.7%5.3%
Artificial AnalysisreportedIFBench% of instructions 54.7%28.6%
Artificial AnalysisreportedLong-context reasoning (AA-LCR)% of questions 70.3%18.0%
Artificial AnalysisreportedTerminal-Bench 2.1% of tasks 36.3%1.5%
Artificial AnalysisreportedTerminal-Bench Hard% of tasks 31.1%0.8%
Artificial AnalysisreportedΤ²-bench telecom% of tasks 64.6%16.4%
UGI LeaderboardreportedRequested-length error% off the requested word count 4.0%20.0%
UGI LeaderboardreportedStyle adherencescore from 0 to 1 0.360.34
UGI LeaderboardreportedWriting scorescore out of 100 63.724.8

Bold green marks the better value on that metric. Where a source reports ranges that overlap, the difference may not be meaningful; see the benchmark page for ranges.

Quick answers

Is Claude Sonnet 4 better than Llama 3.1 8B Instruct?

It depends on the task. Among models available today, on our benchmarks and licensed sources, Claude Sonnet 4 ranks higher for agents and tool use, reasoning and knowledge and writing.

Which is cheaper, Claude Sonnet 4 or Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct costs $0.058 per million tokens (three input to one output), against $6.00 for Claude Sonnet 4.

Run Claude Sonnet 4 and Llama 3.1 8B Instruct on your own prompt

Benchmarks aren't your data. Try both side by side in the playground, with the cost of every answer.