Cheapest Chinese LLM API for Coding Agents

One cost model applied to 14 models: 1M input tokens + 200K output tokens, the shape of a large refactor or a long agent session.

Quick facts (checked 2026-10-22): 111 live models through one OpenAI-compatible API · 0% platform markup, provider list price passed through · free tier gives 10 free-model calls/day · machine-readable prices: china-ai-leaderboard.json · agent index: llms.txt

"Which coding model is cheapest" is usually answered with a per-million-token headline, which hides the thing that matters: coding agents emit far more output than input per useful unit of work. The table below applies one realistic shape — 1M input tokens and 200K output tokens — to every model, so the numbers are comparable.

Cost per large coding run

ModelInput / 1MOutput / 1MCost per run20 runs
DeepSeek V4 Flash$0.080$0.170$0.11$2.28
GLM-5.3-Flash$0.080$0.280$0.14$2.72
Qwen3 Coder Flash$0.150$0.750$0.30$6.00
MiniMax M3$0.300$1.200$0.54$10.80
MiMo V2.5 Pro$0.427$0.855$0.60$11.96
DeepSeek V4 Pro$0.570$1.150$0.80$16.00
Doubao-Seed-2.0-Code$0.448$2.240$0.90$17.92
Kimi K2.7 Code$0.670$3.400$1.35$27.00
Qwen3.7-Max$1.160$3.475$1.86$37.10
GLM-5.3$1.250$4.000$2.05$41.00
Qwen3.8-Max$1.840$5.515$2.94$58.86
Kimi K2.7 Code HighSpeed$2.073$8.610$3.80$75.90
Kimi K3$2.900$14.500$5.80$116.00
Free option: GLM-4.7-Flash and GLM-4.6V-Flash cost nothing, capped at 10 free-model calls/day and 5 requests/minute on the free tier. For a real agent loop that is a testing tier, not a production tier.

Output price is the lever, not input price

Two models illustrate the trap:

Coding agents spend most of their tokens on completions, diffs and test output, so a model with a 5x output rate is 3-5x more expensive in practice even if its input looks competitive.

The 50x spread, and when it is worth paying

The range from DeepSeek V4 Flash ($0.11) to Kimi K3 ($5.80) is roughly 50x for the same token volume. In practice teams pay for:

A practical split: run DeepSeek V4 Flash or GLM-5.3-Flash for search, summarisation and diff review, and reserve DeepSeek V4 Pro or Kimi K2.7 Code for the edits that need to land first time.

Calling it

curl https://aiapi-pro.com/v1/chat/completions \
  -H "Authorization: Bearer $NOVAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"refactor src/app.py"}]}'

Every model in the table is reachable through the same endpoint, with the same OpenAI SDK settings — switching is a one-line model id change.

FAQ

What is the cheapest model for a coding run?

DeepSeek V4 Flash at $0.08 per 1M input and $0.17 per 1M output: a 1M-input / 200K-output run costs about $0.11. GLM-4.7-Flash is free but capped at 10 calls/day on the free tier.

Why is output pricing more important than input pricing for coding?

Coding agents emit long completions. A model with cheap input but a $2.24 output rate (Doubao-Seed-2.0-Code) costs $0.90 per run, while DeepSeek V4 Pro with higher input ($0.57) but low output ($1.15) costs $0.80.

Do these prices include a platform fee?

No. NovAI passes through the provider list price with a 1.0 multiplier and zero markup, so the numbers equal the upstream rate card.

How much does a month of agent usage cost?

A heavy agent month of 20M input and 4M output tokens costs about $2.28 on DeepSeek V4 Flash, $10.80 on MiniMax M3, $16 on DeepSeek V4 Pro and $116 on Kimi K3.

Switch models without switching providers

111 live models, one endpoint, provider list price with 0% markup. $2 credit on signup, no card required.

Get an API key

Prices reflect provider rate cards as of 2026-10-22 and are published machine-readably at /china-ai-leaderboard.json. Cost per run = 1M input tokens + 200K output tokens.