GLM or DeepSeek is the shortlist most cheap-coding agents end up with. Both families sit in the catalog at per-token rates, so the fair comparison is not a feature list or a headline price per million tokens: it is the same agent session, run on models from both families, at list price. This page runs that session and then adds the two things a price table cannot show — where caching flips the ordering, and what a plan allowance covers on each side.
The session is 40 turns. It starts with a prompt of 12,000 tokens that grows by 1,500 tokens a turn, and the model writes 700 tokens a turn. In all that is 1,650,000 input tokens against 28,000 output tokens.
| Model | Per 1M tokens, in / out | Session, no caching | Session, cache reads |
|---|---|---|---|
| GLM-4.7-Flash | $0.06 / $0.40 | $0.11 | no published cached rate |
| GLM-5.3-Flash | $0.15 / $0.50 | $0.262 | $0.072 |
| DeepSeek V4.1 Flash | $0.30 / $1.20 | $0.529 | $0.064 |
| DeepSeek V4.1 Flash 1017 | $0.30 / $1.20 | $0.529 | $0.064 |
| DeepSeek V4 Pro | $1.32 / $3.96 | $2.29 | $0.412 |
| GLM-5.3 | $1.40 / $4.40 | $2.43 | $0.633 |
Prices are what each model bills at its most expensive hour of the day. “No caching” bills every input token at the input rate. “Cache reads” bills the tokens the previous turn already sent at the model’s published cached-input rate and leaves out any charge for writing the cache, so read it as the cheap end of the range.
GLM-4.7-Flash is the cheapest of the six sessions and GLM-5.3 the dearest, 22× apart. Between those ends the two families interleave rather than stack: the full-size models sit together near the top, and each family's fast models sit together near the bottom. Nothing here ranks quality — a cheap model that needs two attempts is not cheap, and the only honest quality test is the one you run on your own repository.
GLM-5.3 bills $2.43 for the session and DeepSeek V4 Pro bills $2.29, a few percent apart. Neither side wins that comparison in a way you would notice on a bill. What separates them is the next section.
The fast tier is where the two families genuinely disagree, and the disagreement depends on whether your agent re-sends its context. An agent that does — Claude Code and Codex both do — hits the cached-input rate on most of its tokens from the second turn on, and the two families publish very different ones.
The same flip shows on the full-size models, only wider: DeepSeek V4 Pro's cache-reads session is $0.412 against GLM-5.3's $0.633. One caveat belongs beside those numbers: GLM-4.7-Flash publishes no cached-input rate at all, so its very cheap uncached session is the only number it offers.
Read that as two use cases, not a winner. A short or one-shot workload that barely re-reads its context is cheapest on the GLM fast models; a long agent loop that replays the same prefix every turn is cheapest on DeepSeek's cached rate. The Claude Code guide shows the same arithmetic on a bigger spread of models.
Per-token math is only half of a coding-plan question. The Minion and Boss plans meter their allowance at each model's rates — $20 and $80 a month — and the models from both families are covered, with the per-model detail on each family's page: the GLM coding plan and the DeepSeek coding plan. Whichever family you settle on, the same allowance spends on it, and usage past it bills as on-demand credits at the rates above rather than a separate price list.
To check any rate at source, open the model in the catalog. For the full per-request ranking across every billed model, read the cheap AI API page.
All guides are on the guides index.
Model catalog · Pricing · Comparisons · Cost guides · Integration guides · FAQ
Guides: GLM coding plan alternative · DeepSeek coding plan · Free AI API · LLM gateway · LLM proxy · Cheap AI API · OpenAI-compatible API · Uncensored models
Model APIs: GLM API · DeepSeek API · Kimi API · Qwen API · MiniMax API
Compare: vs OpenRouter · vs Claude · vs OpenAI
Legal & contact: Terms · Privacy · Cookies · DPA · Contact