# Best AI Models for Coding, Ranked by Real Usage on OpenRouter

The best AI models for coding are ranked below by how much developers actually use them on OpenRouter over the past week, not by benchmark scores. The current top models are Hy4 flash, DeepSeek V4.1 Flash 1017, and DeepSeek V4.1 Flash. See each model page for context length and pricing so you can weigh cost against usage before you pick one. Every model is available through a single OpenRouter API key, so you can test them on your own codebase and switch without rewriting your integration.

Collection page: https://openrouter.ai/collections/programming
All collections: https://openrouter.ai/collections
Collections index: https://openrouter.ai/collections.md
All models: https://openrouter.ai/models
Site index: https://openrouter.ai/llms.txt

## Ranked models

- [tencent/hy4-flash](https://openrouter.ai/tencent/hy4-flash) (Hy4 flash): guide at https://openrouter.ai/tencent/hy4-flash/llms.txt
- [deepseek/deepseek-v4.1-flash-1017](https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017) (DeepSeek V4.1 Flash 1017): guide at https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017/llms.txt
- [deepseek/deepseek-v4.1-flash](https://openrouter.ai/deepseek/deepseek-v4.1-flash) (DeepSeek V4.1 Flash): guide at https://openrouter.ai/deepseek/deepseek-v4.1-flash/llms.txt
- [z-ai/glm-5.3-flash](https://openrouter.ai/z-ai/glm-5.3-flash) (GLM 5.3 Flash): guide at https://openrouter.ai/z-ai/glm-5.3-flash/llms.txt
- [openai/gpt-6-luna](https://openrouter.ai/openai/gpt-6-luna) (GPT-6 Luna): guide at https://openrouter.ai/openai/gpt-6-luna/llms.txt
- [anthropic/claude-opus-5.5](https://openrouter.ai/anthropic/claude-opus-5.5) (Claude Opus 5.5): guide at https://openrouter.ai/anthropic/claude-opus-5.5/llms.txt
- [tencent/hy4](https://openrouter.ai/tencent/hy4) (Hy4): guide at https://openrouter.ai/tencent/hy4/llms.txt
- [minimax/minimax-m3.1-flash](https://openrouter.ai/minimax/minimax-m3.1-flash) (MiniMax M3.1 Flash): guide at https://openrouter.ai/minimax/minimax-m3.1-flash/llms.txt
- [moonshotai/kimi-k3.1-pro](https://openrouter.ai/moonshotai/kimi-k3.1-pro) (Kimi K3.1 Pro): guide at https://openrouter.ai/moonshotai/kimi-k3.1-pro/llms.txt
- [xiaomi/mimo-v2.6-flash](https://openrouter.ai/xiaomi/mimo-v2.6-flash) (MiMo-V2.6-Flash): guide at https://openrouter.ai/xiaomi/mimo-v2.6-flash/llms.txt
