HumanEval Leaderboard

Python function synthesis from docstrings. · Prices checked November 11, 2026

HumanEval asks a model to write a self-contained Python function from its docstring, then runs the function against hidden unit tests. It measures code generation in isolation, no repository, no dependencies, no existing tests to satisfy.

Leaderboard

60 of 205 scored

LeaderboardScores as published by each benchmark. Prices checked November 11, 2026.

o4-mini leads on HumanEval at 97.3%. The median across the 205 models we hold a score for is 76%. The cheapest model on this board is DeepSeek-Coder-V2 at $0.1820/M blended, scoring 90.2%.

#ModelProviderScoreInput /1MOutput /1MBlended 70/30Context
1o4-miniOpenAI97.3%$1.10$4.40$2.09200,000
2o3-miniOpenAI96.3%$1.10$4.40$2.09200,000
3GPT-5OpenAI96%$1.25$10.00$3.88400,000
4Claude Opus 4.6Anthropic95%$5.00$25.00$11.001,000,000
5GPT-4.1OpenAI94.5%$2.00$8.00$3.801,000,000
6GPT-4.1 miniOpenAI93.8%$0.4000$1.60$0.76001,000,000
7Claude Sonnet 3.5Anthropic93.7%$3.00$15.00$6.60200,000
8Claude Opus 4.5Anthropic93%$5.00$25.00$11.00200,000
9Qwen2.5-Coder-32B (Groq)Groq92.7%$0.7900$0.7900$0.7900128,000
10Qwen2.5-Coder-32BQwen92.7%$0.7000$0.7000$0.7000128,000
11Claude Sonnet 4.6Anthropic92%$3.00$15.00$6.601,000,000
12Gemini 2.5 ProGoogle92%$1.25$10.00$3.881,000,000
13Mistral Large 2Mistral92%$2.00$6.00$3.20128,000
14Nova PremierAmazon92%$2.50$12.50$5.50300,000
15Mistral-Large-2 (NIM)Nvidia92%$2.00$6.00$3.20128,000
16Kimi k1.5Moonshot AI92%$2.50$10.00$4.75128,000
17Claude Sonnet 4.5Anthropic91%$3.00$15.00$6.60200,000
18GPT-4oOpenAI90.2%$2.50$10.00$4.75128,000
19DeepSeek-Coder-V2DeepSeek90.2%$0.1400$0.2800$0.1820128,000
20DeepSeek-R1DeepSeek90%$0.5500$2.19$1.0464,000
21DeepSeek-R1-0528DeepSeek90%$0.5500$2.19$1.0464,000
22Pixtral LargeMistral90%$2.00$6.00$3.20128,000
23DeepSeek-R1 (Groq)Groq90%$0.7500$0.9900$0.8220128,000
24DeepSeek-R1 (Together)Together AI90%$3.00$7.00$4.2064,000
25DeepSeek-R1 (fw)Fireworks AI90%$3.00$8.00$4.5064,000
26DeepSeek-R1 (DI)DeepInfra90%$0.5500$2.19$1.0464,000
27DeepSeek-R1 (Cerebras)Cerebras90%$0.5500$0.9900$0.682064,000
28Qwen2.5-MaxQwen90%$1.60$6.40$3.0432,000
29o1OpenAI89%$15.00$60.00$28.50200,000
30DeepSeek-V3DeepSeek89%$0.3200$0.8900$0.491064,000
31DeepSeek-V3-0324DeepSeek89%$0.2900$1.14$0.5450128,000
32Llama 3.1 405BMeta89%$0.8000$0.8000$0.8000128,000
33Nova ProAmazon89%$0.8000$3.20$1.52300,000
34Llama 3.1 405B (Groq)Groq89%$2.99$2.99$2.99128,000
35Llama 3.1 405B (Together)Together AI89%$3.50$3.50$3.50128,000
36Llama 3.1 405B (fw)Fireworks AI89%$3.00$3.00$3.00131,000
37Llama 3.1 405B (Rep)Replicate89%$9.50$9.50$9.50128,000
38Llama 3.1 405B (DI)DeepInfra89%$0.8000$0.8000$0.8000128,000
39Llama-3.1-405B (Cerebras)Cerebras89%$0.9900$0.9900$0.9900128,000
40Llama 3.1 405B (Hyp)Hyperbolic89%$4.00$4.00$4.00128,000
41Qwen2.5-Coder-14BQwen89%$0.3500$0.3500$0.3500128,000
42Grok 2xAI88.4%$2.00$10.00$4.40131,000
43Grok 2 VisionxAI88.4%$2.00$10.00$4.4032,000
44Llama 3.3 70BMeta88.4%$0.2300$0.4000$0.2810128,000
45Llama 3.3 70B (Groq)Groq88.4%$0.5900$0.7900$0.6500128,000
46Llama 3.3 70B (Together)Together AI88.4%$0.8800$0.8800$0.8800128,000
47Llama 3.3 70B (DI)DeepInfra88.4%$0.2300$0.4000$0.2810128,000
48Llama-3.3-70B (Cerebras)Cerebras88.4%$0.5900$0.9900$0.7100128,000
49Qwen2.5-32B-InstructQwen88.4%$0.7000$0.7000$0.7000128,000
50GPT-4 TurboOpenAI88.2%$10.00$30.00$16.00128,000
51Claude Haiku 3.5Anthropic88.1%$0.8000$4.00$1.76200,000
52Claude Sonnet 3.7Anthropic88%$3.00$15.00$6.60200,000
53Llama 4 MaverickMeta88%$0.3500$1.00$0.5450128,000
54Sonar Reasoning ProPerplexity88%$2.00$8.00$3.80127,000
55o3OpenAI87.4%$2.00$8.00$3.80200,000
56GPT-4o miniOpenAI87.2%$0.1500$0.6000$0.2850128,000
57GPT-4.1 nanoOpenAI87%$0.1000$0.4000$0.19001,000,000
58Gemini 2.5 FlashGoogle87%$0.3000$2.50$0.96001,000,000
59Qwen2.5-72B (Groq)Groq86.6%$0.7900$0.7900$0.7900128,000
60Qwen2.5-72B (Together)Together AI86.6%$1.20$1.20$1.2032,000

34 of the 60 scores shown link to the page they were read on (underlined; hover for publisher, variant and date read). The rest have no recorded source yet and are being worked through.

Most capable models now score very highly here, which is why SWE-bench Verified has largely replaced it as the benchmark that separates coding models.

About these scores

  • Python function synthesis from docstrings.
  • Scores are as published by the model’s provider or a public leaderboard. Provider-reported figures are self-reported and are not independently re-run by us.
  • Where a hosted variant of an open-weights model has no score of its own, it inherits the base model’s, because the weights are the same.
  • Prices beside each score are the provider’s published token rates. How the blended rate is calculated.

Showing the top 60 of 205 models we hold a HumanEval score for.

Frequently asked questions

What is the difference between HumanEval and SWE-bench?

HumanEval gives a model an isolated function to write from a docstring. SWE-bench Verified gives it a whole repository and a real issue, and requires a patch that passes the project’s existing tests. HumanEval measures code generation; SWE-bench measures software engineering, and scores on it are far lower across the board.

Other leaderboards

Rankings that weigh price too

Leaderboards are recomputed on every deploy from the catalogue. Prices checked November 11, 2026.