Blog
DeepSeek vs GLM: the output price decides it
On this gateway the two cheapest useful models cost exactly the same for input: $0.0252 per million tokens. They differ on output — and output is where most bills come from.
The numbers
| deepseek-v4.1-flash | glm-5.3-flash | |
|---|---|---|
| Input / 1M | $0.0252 | $0.0252 |
| Output / 1M | $0.1008 | $0.0756 |
| 1,500 in / 400 out | $0.00007812 | $0.00006804 |
| 1M such requests | $78.12 | $68.04 |
| Output-heavy: 500 in / 3,000 out | $0.000315 | $0.0002016 |
Same input price, 25% cheaper output. On a million mixed requests that is a $10 gap; on output-heavy work it is more than a third.
Why the ratio matters more than the headline
Most cost comparisons quote one number per model, which hides the input/output split. A summarisation job (small prompt, long answer) is dominated by the output rate; a retrieval job (long context, short answer) is dominated by input. Two models with identical input prices can differ by 30% on the same workload depending on which side you are on.
When GLM Flash wins
- Summarisation, rewriting, translation drafts — output-heavy by nature.
- Bulk classification where the label is short but the prompt is long: equal input, cheaper when the model explains itself.
- Anything you run a million times a month.
When DeepSeek Flash wins
- You want the "same model as the official API, 83% cheaper" story for procurement — it is the same model id family.
- Your prompts and completions are close to balanced, where the 25% output difference is small.
- You need the Anthropic-shaped endpoint: both models work there, but DeepSeek is the one with the mirrored pricing page.
Switching costs one string
from openai import OpenAI
client = OpenAI(api_key="sk-...", base_url="https://todapi.work/v1")
for model in ("deepseek-v4.1-flash", "glm-5.3-flash"):
resp = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": "Summarise: the deploy rolled back at 03:12."}],
)
print(model, resp.usage.prompt_tokens, resp.usage.completion_tokens)
Run your own ten prompts through both and compare the token counts as well as the answers — the cheaper model is only cheaper if it does not need a second attempt.
Do not judge on price alone
Both models are competent at extraction and drafting; neither is a frontier reasoner. If a task fails at Flash tier, moving to glm-5.3 ($0.2160 / $0.7380) or a frontier model costs 8× more but may cost less than a wrong answer. The decision rule: route by consequence, not by habit.
FAQ
Which is cheaper, DeepSeek or GLM?
Input is identical at $0.0252 / 1M. GLM 5.3 Flash output is $0.0756 against $0.1008, so GLM is cheaper for output-heavy work.
Are these the official prices?
These are the gateway's effective rates. DeepSeek's own list is $0.15 / $0.60; we bill 16.8% of it.
Can I use both in one app?
Yes — same key, same SDK, different model id.