Best LLM API Models for Coding

This guide highlights models whose public metadata indicates coding, programming, developer, or software-oriented use cases.

50Models listed
1M input + 500K outputCost example tokens
USD / 1MNormalized prices

Quick shortlist

Start with DeepSeek V4.1 Flash.

This guide starts with coding-oriented models and practical popularity signals so developers can shortlist options faster.

Lead model 🔥DeepSeek V4.1 Flash
ProviderDeepSeek
Sample cost$0.33
Context1.05M

The ranking is a discovery aid, not a final recommendation. Always compare the model against your workload and verify provider pricing before production use.

How to read this ranking

Models are included when their public model metadata indicates coding, programming, developer, software, or code generation use cases.

Model Ranking

Browse all models
ModelProviderPromptOutputSample costYour CostContextPopularityRelease
🔥DeepSeek V4.1 FlashDeepSeek$0.051$0.567$0.33$0.331.05M#2
🔥GLM 5.3 FlashZ.ai$0.15$0.5$0.4$0.41.05M#3
🔥Claude Opus 5.5Anthropic$4$20$14$141M#5
🔥MiniMax M3.1 FlashMiniMax$0.15$0.6$0.45$0.451.05M#6
🔥Kimi K3.1 ProMoonshotAI$0.253$8.8$4.65$4.651.05M#7
🔥GLM 5.3Z.ai$0.0699$1.4$0.77$0.771.05M#9
NewGemini 4 NeonGoogle$3$15$10.5$10.51.05M
NewGemini 4 Neon (batch)Google$1.5$7.5$5.25$5.251.05M
NewHy4 flashTencent$0.035$0.1405$0.11$0.111.05M
Gemini 4 HydrogenGoogle$1.5$7.5$5.25$5.251.05M
Gemini 4 Hydrogen (batch)Google$0.75$3.75$2.62$2.621.05M
ERNIE-5.5-Flash-PreviewBaidu$0.28$1.13$0.84$0.841.02M
ERNIE-5.5-Flash-Preview (free)Baidu$0$0$0$01.02M
Gemini 4 CarbonGoogle$2$10$7$71.05M
Gemini 4 Carbon (batch)Google$1$5$3.5$3.51.05M
Nex-N2.6Nex AGI$0.12$0.4$0.32$0.32262.14K
Claude Fable 5.2Anthropic$8$40$28$281M
Claude Fable 5.2 (batch)Anthropic$4$20$14$141M
Muse EmberMeta$0.1$0.5$0.35$0.351.05M
Crouton Alphastealth$0$0$0$01.05M
Particle-1Particle AI$0.07$0.5$0.32$0.321.05M
Particle-1 (free)Particle AI$0$0$0$01.05M
GPT-6.1 TerraOpenAI$1$5$3.5$3.51.05M
GPT-6.1 Terra (batch)OpenAI$0.5$2.5$1.75$1.751.05M
Kimi K3.1 Pro (batch)MoonshotAI$0.372$5.583$3.16$3.161.05M
Flint (free)Recursive$0$0$0$0262.14K
MiniMax M3.1 Flash (free)MiniMax$0$0$0$01M
Beam 1.0 501B A23BReflection$0.3$1$0.8$0.81.05M
Muse Spark OpenMeta$1.25$4.25$3.38$3.381.05M
Pareto 26.10unbiased$0.8$3.2$2.4$2.41.05M
Pareto 26.9unbiased$2.5$7.5$6.25$6.25262.14K
Gemini 4 ArgonGoogle$2$10$7$71.05M
Gemini 4 Argon (batch)Google$1$5$3.5$3.51.05M
Step 5 PreviewStepFun$1$2.7$2.35$2.351M
Claude Haiku 5.5Anthropic$0.1$0.5$0.35$0.351M
Claude Haiku 5.5 (batch)Anthropic$0.05$0.25$0.17$0.171M
Mistral Large 4Mistral$0.7$2.1$1.75$1.751.05M
Apodex 1.1 Mini (free)Apodex$0$0$0$0262.14K
Pareto 26.10 Previewunbiased$0.8$3.2$2.4$2.41.05M
GPT-6.1 SolOpenAI$2$10$7$71.05M
GPT-6.1 Sol (batch)OpenAI$1$5$3.5$3.51.05M
Space Bunny Alphastealth$0$0$0$01M
Claude Opus 5.5 (batch)Anthropic$2$10$7$71M
Grok 4.7SpaceXSI$2$6$5$5500K
Grok 4.7 (batch)SpaceXSI$1.6$4.8$4$4500K
Ternary Bonsai 2 27BPrismML$0.075$0.5$0.33$0.33262.14K
Paretounbiased$2.5$7.5$6.25$6.25262.14K
Union Alphastealth$0$0$0$0262.14K
DeepSeek V4.1 Flash (batch)DeepSeek$0.05$0.15$0.12$0.121.05M
Nex-N2.5-MiniNex AGI$0.025$0.1$0.08$0.08262.14K

Pricing FAQ

How is the sample workload cost calculated?

The sample workload uses 1,000,000 input tokens plus 500,000 output tokens, then applies each model's normalized USD price per 1 million tokens.

Why do input and output token prices matter separately?

Many applications are output-token heavy, while retrieval and classification workloads may be input-token heavy. Comparing both prices helps avoid picking a model that is cheap for the wrong workload shape.

Should I verify prices before production use?

Yes. AI Model Matrix normalizes public pricing metadata for comparison, but provider availability, limits, and prices can change. Always verify the final contract or provider dashboard before production use.

Related Guides

Cheapest LLM APIs

Sort models by estimated workload cost and normalized token prices.

Open guide

Largest Context Windows

Find models for long documents, retrieval, and codebase context.

Open guide

Coding Models

Compare code-oriented models by cost, context, and practical popularity signals.

Open guide

Free Models

Browse zero-price models for prototypes and evaluation.

Open guide

RAG Models

Start from large context windows and practical input-cost constraints.

Open guide

Chatbot Costs

Find budget-sensitive models for output-heavy assistant traffic.

Open guide

Cost Calculator

Enter your own input and output token volume before narrowing the shortlist.

Estimate cost