Models that hold up in a real codebase

Writing code is not a one-shot prompt. A model needs room for several files at once, tool calling to reach your build and your tests, and structured output so a patch comes back as a patch. Everything below has all three and fits at least 64k tokens of context.

310 models in this category · prices in toman per 1M tokens

ModelCapabilitiesContextInput / 1MOutput / 1M≈ 1,000 words
Grok 4.20x-ai/grok-4.20Image inputTool callingReasoningJSON output2,000,000432,774865,5481,688
GPT-5.4openai/gpt-5.4Image inputTool callingReasoningJSON output1,050,000865,5485,193,2907,876
GPT-5.4 Proopenai/gpt-5.4-proImage inputTool callingReasoningJSON output1,050,00010,386,58162,319,48394,518
GPT-5.5openai/gpt-5.5Image inputTool callingReasoningJSON output1,050,0001,731,09710,386,58115,753
GPT-5.5 Proopenai/gpt-5.5-proImage inputTool callingReasoningJSON output1,050,00010,386,58162,319,48394,518
GPT-5.6 Lunaopenai/gpt-5.6-lunaImage inputTool callingReasoningJSON output1,050,00069,244415,463630
GPT-5.6 Luna Proopenai/gpt-5.6-luna-proImage inputTool callingReasoningJSON output1,050,00069,244415,463630
GPT-5.6 Luna ProBatchopenai/gpt-5.6-luna-pro:batchImage inputTool callingReasoningJSON output1,050,00034,622207,732315
GPT-5.6 LunaBatchopenai/gpt-5.6-luna:batchImage inputTool callingReasoningJSON output1,050,00034,622207,732315
GPT-5.6 Solopenai/gpt-5.6-solImage inputTool callingReasoningJSON output1,050,0001,384,8776,924,38710,802
GPT-5.6 Sol Proopenai/gpt-5.6-sol-proImage inputTool callingReasoningJSON output1,050,0001,384,8776,924,38710,802
GPT-5.6 Sol ProBatchopenai/gpt-5.6-sol-pro:batchImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT-5.6 SolBatchopenai/gpt-5.6-sol:batchImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT-5.6 Terraopenai/gpt-5.6-terraImage inputTool callingReasoningJSON output1,050,000692,4394,154,6326,301
GPT-5.6 Terra Proopenai/gpt-5.6-terra-proImage inputTool callingReasoningJSON output1,050,000692,4394,154,6326,301
GPT-5.6 Terra ProBatchopenai/gpt-5.6-terra-pro:batchImage inputTool callingReasoningJSON output1,050,000346,2192,077,3163,151
GPT-5.6 TerraBatchopenai/gpt-5.6-terra:batchImage inputTool callingReasoningJSON output1,050,000346,2192,077,3163,151
GPT-6 Astraopenai/gpt-6-astraImage inputTool callingReasoningJSON output1,050,0003,462,19417,310,96827,005
GPT-6 Astra Proopenai/gpt-6-astra-proImage inputTool callingReasoningJSON output1,050,0003,462,19417,310,96827,005
GPT-6 Astra ProBatchopenai/gpt-6-astra-pro:batchImage inputTool callingReasoningJSON output1,050,0001,731,0978,655,48413,503
GPT-6 AstraBatchopenai/gpt-6-astra:batchImage inputTool callingReasoningJSON output1,050,0001,731,0978,655,48413,503
GPT-6 Lunaopenai/gpt-6-lunaImage inputTool callingReasoningJSON output1,050,00034,622173,110270
GPT-6 Luna Proopenai/gpt-6-luna-proImage inputTool callingReasoningJSON output1,050,00034,622173,110270
GPT-6 Luna ProBatchopenai/gpt-6-luna-pro:batchImage inputTool callingReasoningJSON output1,050,00017,31186,555135
GPT-6 LunaBatchopenai/gpt-6-luna:batchImage inputTool callingReasoningJSON output1,050,00017,31186,555135
GPT-6 Solopenai/gpt-6-solImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT-6 Sol Proopenai/gpt-6-sol-proImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT-6 Sol ProBatchopenai/gpt-6-sol-pro:batchImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
GPT-6 SolBatchopenai/gpt-6-sol:batchImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
GPT-6.1 Solopenai/gpt-6.1-solImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT-6.1 Sol Proopenai/gpt-6.1-sol-proImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT-6.1 Sol ProBatchopenai/gpt-6.1-sol-pro:batchImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
GPT-6.1 SolBatchopenai/gpt-6.1-sol:batchImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
GPT-6.1 Terraopenai/gpt-6.1-terraImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
GPT-6.1 Terra Proopenai/gpt-6.1-terra-proImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
GPT-6.1 Terra ProBatchopenai/gpt-6.1-terra-pro:batchImage inputTool callingReasoningJSON output1,050,000173,110865,5481,350
GPT-6.1 TerraBatchopenai/gpt-6.1-terra:batchImage inputTool callingReasoningJSON output1,050,000173,110865,5481,350
MiMo-V2.5-Proxiaomi/mimo-v2.5-proTool callingReasoningJSON output1,050,000166,185623,1951,026
MiMo-V2.6-Flashxiaomi/mimo-v2.6-flashImage inputTool callingReasoningJSON output1,050,00048,47196,941189
MiMo-V2.6-Proxiaomi/mimo-v2.6-proImage inputTool callingReasoningJSON output1,050,000150,605301,211587
GPT AstraLatest~openai/gpt-astra-latestImage inputTool callingReasoningJSON output1,050,0003,462,19417,310,96827,005
GPT LunaLatest~openai/gpt-luna-latestImage inputTool callingReasoningJSON output1,050,00034,622173,110270
GPT SolLatest~openai/gpt-sol-latestImage inputTool callingReasoningJSON output1,050,000692,4393,462,1945,401
GPT TerraLatest~openai/gpt-terra-latestImage inputTool callingReasoningJSON output1,050,000346,2191,731,0972,701
DeepSeek V4 Flash 0423deepseek/deepseek-v4-flashTool callingReasoningJSON output1,048,57631,50663,012123
DeepSeek V4 Flash 0731deepseek/deepseek-v4-flash-0731Tool callingReasoningJSON output1,048,57620,427103,866162
DeepSeek V4 Flash Vision Expdeepseek/deepseek-v4-flash-vision-expImage inputTool callingReasoningJSON output1,048,57674,645223,935388
DeepSeek V4 Pro 0423deepseek/deepseek-v4-proTool callingReasoningJSON output1,048,576553,9511,107,9022,160
DeepSeek V4 Pro 0813deepseek/deepseek-v4-pro-0813Tool callingReasoningJSON output1,048,57635,6611,422,9621,896
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flashImage inputTool callingReasoningJSON output1,048,57615,580173,110245
DeepSeek V4.1 Flash 1017deepseek/deepseek-v4.1-flash-1017Image inputTool callingReasoningJSON output1,048,5762,077173,110228
DeepSeek V4.1 FlashBatchdeepseek/deepseek-v4.1-flash:batchImage inputTool callingReasoningJSON output1,048,57638,777116,330202
Ember-1fireworks/ember-1Image inputTool callingReasoningJSON output1,048,5761,038,6585,193,2908,102
Gemini 2.5 Flashgoogle/gemini-2.5-flashImage inputTool callingReasoningJSON output1,048,576103,866865,5481,260
Gemini 2.5 Flash Litegoogle/gemini-2.5-flash-liteImage inputTool callingReasoningJSON output1,048,57634,622138,488225
Gemini 2.5 Progoogle/gemini-2.5-proImage inputTool callingReasoningJSON output1,048,576432,7743,462,1945,063
Gemini 2.5 Pro Preview 06-05google/gemini-2.5-pro-previewImage inputTool callingReasoningJSON output1,048,576432,7743,462,1945,063
Gemini 3 Flash Previewgoogle/gemini-3-flash-previewImage inputTool callingReasoningJSON output1,048,576173,1101,038,6581,575
Gemini 3 Flash PreviewBatchgoogle/gemini-3-flash-preview:batchImage inputTool callingReasoningJSON output1,048,57686,555519,329788
Gemini 3.1 Flash Litegoogle/gemini-3.1-flash-liteImage inputTool callingReasoningJSON output1,048,57686,555519,329788
Gemini 3.1 Flash Lite Previewgoogle/gemini-3.1-flash-lite-previewImage inputTool callingReasoningJSON output1,048,57686,555519,329788
Gemini 3.1 Flash LiteBatchgoogle/gemini-3.1-flash-lite:batchImage inputTool callingReasoningJSON output1,048,57643,277259,665394
Gemini 3.1 Pro Previewgoogle/gemini-3.1-pro-previewImage inputTool callingReasoningJSON output1,048,576692,4394,154,6326,301
Gemini 3.1 Pro Preview Custom Toolsgoogle/gemini-3.1-pro-preview-customtoolsImage inputTool callingReasoningJSON output1,048,576692,4394,154,6326,301
Gemini 3.1 Pro PreviewBatchgoogle/gemini-3.1-pro-preview:batchImage inputTool callingReasoningJSON output1,048,576346,2192,077,3163,151
Gemini 3.5 Flashgoogle/gemini-3.5-flashImage inputTool callingReasoningJSON output1,048,576519,3293,115,9744,726
Gemini 3.5 Flash Litegoogle/gemini-3.5-flash-liteImage inputTool callingReasoningJSON output1,048,576103,866865,5481,260
Gemini 3.5 Flash LiteBatchgoogle/gemini-3.5-flash-lite:batchImage inputTool callingReasoningJSON output1,048,57651,933432,774630
Gemini 3.5 FlashBatchgoogle/gemini-3.5-flash:batchImage inputTool callingReasoningJSON output1,048,576259,6651,557,9872,363
Gemini 3.6 Flashgoogle/gemini-3.6-flashImage inputTool callingReasoningJSON output1,048,576259,6651,298,3232,025
Gemini 3.6 FlashBatchgoogle/gemini-3.6-flash:batchImage inputTool callingReasoningJSON output1,048,576129,832649,1611,013
Gemini 3.7 Flashgoogle/gemini-3.7-flashImage inputTool callingReasoningJSON output1,048,576259,6651,298,3232,025
Gemini 3.7 FlashBatchgoogle/gemini-3.7-flash:batchImage inputTool callingReasoningJSON output1,048,576129,832649,1611,013
Gemini 3.8 Flashgoogle/gemini-3.8-flashImage inputTool callingReasoningJSON output1,048,576259,6651,298,3232,025
Gemini 3.8 FlashBatchgoogle/gemini-3.8-flash:batchImage inputTool callingReasoningJSON output1,048,576129,832649,1611,013
Gemini 4 Argongoogle/gemini-4-argonImage inputTool callingReasoningJSON output1,048,576692,4393,462,1945,401
Gemini 4 ArgonBatchgoogle/gemini-4-argon:batchImage inputTool callingReasoningJSON output1,048,576346,2191,731,0972,701
Muse Spark 1.1meta/muse-spark-1.1Image inputTool callingReasoningJSON output1,048,576432,7741,471,4322,475
Muse Spark 1.2meta/muse-spark-1.2Image inputTool callingReasoningJSON output1,048,576432,7741,471,4322,475
Muse Spark 1.3meta/muse-spark-1.3Image inputTool callingReasoningJSON output1,048,576432,7741,471,4322,475
Muse Spark Openmeta/muse-spark-openImage inputTool callingReasoningJSON output1,048,576432,7741,471,4322,475
Muse Wondermeta/muse-wonderImage inputTool callingReasoningJSON output1,048,5761,384,8776,924,38710,802
MiniMax M3minimax/minimax-m3Image inputTool callingReasoningJSON output1,048,576103,866415,463675
MiniMax M3.1 Flashminimax/minimax-m3.1-flashImage inputTool callingReasoningJSON output1,048,57651,933207,732338
Mistral Large 4mistralai/mistral-large-4-0Image inputTool callingReasoningJSON output1,048,576242,354727,0611,260
Kimi K3moonshotai/kimi-k3Image inputTool callingReasoningJSON output1,048,57666,4745,539,5107,288
Kimi K3.1 Promoonshotai/kimi-k3.1-proImage inputTool callingReasoningJSON output1,048,576692,4393,462,1945,401
Kimi K3Batchmoonshotai/kimi-k3:batchImage inputTool callingReasoningJSON output1,048,576789,3803,946,9016,157
Nemotron 3 Supernvidia/nemotron-3-super-120b-a12bTool callingReasoningJSON output1,048,576103,866830,9261,215
Nemotron 3.5 Super VLnvidia/nemotron-3.5-super-vlImage inputTool callingReasoningJSON output1,048,57651,933173,110293
Particle-1particle-ai/particle-1Image inputTool callingReasoningJSON output1,048,57617,311173,110248
Qwen3.8 2.4T A95Bqwen/qwen3.8-2.4t-a95bTool callingReasoningJSON output1,048,576692,4392,077,3163,601
Beam 1.0 501B A23Breflection/beam-1.0-501b-a23bTool callingReasoningJSON output1,048,57686,555346,219563
ricursiveAI/Ripple-65B-Previewricursiveai/ripple-65b-previewTool callingJSON output1,048,57669,244207,732360
Crouton Alphastealth/crouton-alphaImage inputTool callingReasoningJSON output1,048,576000
Step 5 Previewstepfun/step-5-previewImage inputTool callingReasoningJSON output1,048,576346,219934,7921,665
Hy4tencent/hy4Image inputTool callingReasoningJSON output1,048,576144,373432,947751
Hy4 previewtencent/hy4-previewTool callingReasoningJSON output1,048,576288,747865,8951,501
MiMo-V2.6-Pro-UltraSpeedxiaomi/mimo-v2.6-pro-ultraspeedImage inputTool callingReasoningJSON output1,048,5761,506,0543,012,1085,874
GLM 5.2z-ai/glm-5.2Tool callingReasoningJSON output1,048,5762,0772,354,2923,063
GLM 5.3z-ai/glm-5.3Tool callingReasoningJSON output1,048,57624,201484,707662
GLM 5.3 Flashz-ai/glm-5.3-flashImage inputTool callingReasoningJSON output1,048,57651,933173,110293
GLM 5.3 FlashBatchz-ai/glm-5.3-flash:batchImage inputTool callingReasoningJSON output1,048,57617,31162,319104
GLM 5.3 FlashXz-ai/glm-5.3-flashxImage inputTool callingReasoningJSON output1,048,576128,101432,774729
GLM 5.3 FlashX Legalz-ai/glm-5.3-flashx-legalImage inputTool callingReasoningJSON output1,048,576128,101432,774729
GLM 5.3Batchz-ai/glm-5.3:batchTool callingReasoningJSON output1,048,576155,799692,4391,103
DeepSeek FlashLatest~deepseek/deepseek-flash-latestImage inputTool callingReasoningJSON output1,048,5762,077173,110228
DeepSeek ProLatest~deepseek/deepseek-pro-latestTool callingReasoningJSON output1,048,57632,0952,769,7553,642
DeepSeek V4 FlashLatest~deepseek/deepseek-v4-flash-latestTool callingReasoningJSON output1,048,57620,427103,866162
Gemini FlashLatest~google/gemini-flash-latestImage inputTool callingReasoningJSON output1,048,576259,6651,298,3232,025
Gemini ProLatest~google/gemini-pro-latestImage inputTool callingReasoningJSON output1,048,576692,4393,462,1945,401
KimiLatest~moonshotai/kimi-latestImage inputTool callingReasoningJSON output1,048,57653,5953,233,2734,273
GLM FlashLatest~z-ai/glm-flash-latestImage inputTool callingReasoningJSON output1,048,5769,86731,95654
GLMLatest~z-ai/glm-latestTool callingReasoningJSON output1,048,57624,201484,707662
GPT-4.1openai/gpt-4.1Image inputTool callingJSON outputFile input1,047,576692,4392,769,7554,501
GPT-4.1 Miniopenai/gpt-4.1-miniImage inputTool callingJSON outputFile input1,047,576138,488553,951900
GPT-4.1 Nanoopenai/gpt-4.1-nanoImage inputTool callingJSON outputFile input1,047,57634,622138,488225
Qwen3.8 27Bqwen/qwen3.8-27bImage inputTool callingReasoningJSON output1,024,00051,933649,161911
Claude Fable 5anthropic/claude-fable-5Image inputTool callingReasoningJSON output1,000,0003,462,19417,310,96827,005
Claude Fable 5.1anthropic/claude-fable-5.1Image inputTool callingReasoningJSON output1,000,0003,462,19417,310,96827,005

Showing the first 120. For finer filters see the full catalogue .

Other categories

See this category ranked by real usage →