Cheaper AI Models for Coding: Codex, DeepSeek, Qwen and Kimi
You don't need the most expensive model for every task. Here is how the $20 plans compare, which cheaper models you can plug into your coding agent, and what you trade for the lower price.
Video not loading? Watch the reel on Facebook. There's also a reel about DeepSeek, Qwen and Kimi.
If you code with Claude Code on a Pro plan, you know how fast the limit arrives. The usual answer is "upgrade". A better answer is often: use a cheaper model for the work that doesn't need the best one.
Codex vs Claude Code on a $20 plan
Both ChatGPT Plus and Claude Pro cost about $20 a month, and both include a coding agent: Codex and Claude Code. Many people, me included, find Codex on ChatGPT Plus lasts longer before hitting a limit.
To be fair, that's experience, not an official figure. The two companies measure limits differently:
- OpenAI publishes rough ranges of how many Codex messages you get every 5 hours, which vary a lot by model.
- Anthropic gives Claude Pro a 5-hour limit and a weekly limit shared between the Claude app and Claude Code, without publishing message counts.
Both depend on how big your tasks are. The practical test: use each for a week on your own work and see which runs out first.
Even cheaper: pay-per-use models
Three AI companies offer strong coding models at a fraction of the usual API price. You pay only for what you use, and all three work inside Claude Code: you keep the same agent and swap the model behind it.
DeepSeek
DeepSeek's API is one of the cheapest around. Its fast model, deepseek-flash, costs about $0.30 per million input tokens and $1.20 per million output tokens, and prices drop by half outside peak hours. DeepSeek's official guide connects it to Claude Code with three settings:
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=your-deepseek-api-key
export ANTHROPIC_MODEL=deepseek-flash
On Windows PowerShell, write each line as $env:ANTHROPIC_BASE_URL = "https://api.deepseek.com/anthropic" and so on.
Qwen (Alibaba)
Alibaba's Qwen models, including coding-focused ones, are available through Alibaba Cloud Model Studio. You choose the region your data is processed in (Singapore is the closest for most of Southeast Asia). Some models come with a free trial quota for new accounts. Alibaba has an official guide for using Qwen in Claude Code.
Kimi (Moonshot AI)
Moonshot's Kimi K3 models are built for coding and agents, with a very large context window. Kimi also has an official Claude Code setup guide on its platform.
Read the privacy policy first. DeepSeek stores data in China and may use what you send for training. Kimi's API stores data in Singapore and may also use content for training. Don't send client code, passwords, API keys or customer data to a model unless you're comfortable with its policy.
How I'd use them
Don't switch everything at once. Split the work:
- Cheap model: boilerplate, simple pages, renaming, writing tests, summarizing files, personal projects.
- Your best model: tricky bugs, architecture decisions, anything touching payments or security.
Try a cheap model on a task you've already done with an expensive one, and compare. If the result is just as good, you've found work you can move.
Switching models by hand gets tedious. A gateway like OmniRoute can route each request to the right model automatically. That's how my own setup works; I explain it in How I Use AI as a Senior Developer.
Official guides: DeepSeek in Claude Code · Qwen in Claude Code · Kimi in Claude Code
Follow my Facebook page for more ways to cut AI costs.