modelgrep

Most-used AI models for code generation

Match · Updated 2026-08-04

MiMo-V2.5 is the most-used model for code generation on OpenRouter, handling 8.7% of requests classified as code generation over the last 7 days.

2.4%of all requests
8.9%of all tokens
7dwindow

This ranks models by how often they are actually chosen for code generation in production traffic, not by benchmark score. Adoption reflects price, latency and availability as much as raw capability — which is exactly why it often disagrees with the benchmark leaderboards, and why it is worth reading alongside them.

#ModelRequest shareToken shareInput /MContext
1xiaomi logoMiMo-V2.58.7%11.8%$0.1401.1M
2deepseek logoDeepSeek V4 Flash 04238.7%7.9%$0.1401.0M
3z-ai logoGLM 5.27.5%7.5%$0.7601.0M
4deepseek logoDeepSeek V4 Pro7.0%5.1%$0.4351.0M
5deepseek logoDeepSeek V4 Flash 04236.2%9.6%$0.1401.0M
6openai logoGPT-5.6 Luna5.8%8.1%$0.1001.1M
7anthropic logoClaude Sonnet 4.64.3%2.4%$3.001M
8tencent logoHy34.0%4.3%$0.132262K
9anthropic logoClaude Opus 53.4%2.6%$5.001M
10stepfun logoStep 3.7 Flash3.4%4.2%$0.200262K

Reading the two columns together: DeepSeek V4 Flash 0423 takes a noticeably larger share of tokens than of requests — meaning it is being used for the longer, heavier code generation jobs rather than quick one-shot calls.

Frequently asked

What is the most-used AI model for code generation?

MiMo-V2.5 is the most-used model for code generation on OpenRouter, handling 8.7% of requests classified as code generation over the last 7 days. It is followed by DeepSeek V4 Flash 0423 (8.7%) and GLM 5.2 (7.5%).

Is this a benchmark ranking?

No. This ranks by how often each model is actually chosen for code generation in production traffic through OpenRouter — real-world adoption, which reflects price and availability as much as capability. For capability-based rankings, see the benchmark leaderboards.

How much of all AI traffic is code generation?

Code Generation accounts for 2.4% of classified requests and 8.9% of classified tokens on OpenRouter over the trailing 7 days.

Other tasks

Source: OpenRouter (openrouter.ai/rankings), as of 2026-08-04. Shares are of classified, sampled traffic over a trailing 7-day window; absolute volumes are not published.