DevTk.AI
GLM-5.3DeepSeek V4.1Kimi K3Kimi K3.1 ProChinese AI ModelsAPI Comparison

GLM-5.3 vs DeepSeek V4.1 vs Kimi K3/K3.1 Pro: API Price, Caching and Agent Routing

Compare GLM-5.3 (Flash, FlashX), DeepSeek V4.1 Flash and V4 Pro, Kimi K3 and K3.1 Pro: per-token prices, caching rules, output limits, multimodal input, three worked cost examples and a routing table for coding agents.

By Published Updated 8 min read

GLM-5.3, DeepSeek V4.1 and Kimi K3 all offer roughly one-million-token context, but they sit at very different price points. Checked against the official pricing pages of Z.AI, DeepSeek and Kimi on November 16, 2026:

  • GLM-5.3 Flash ($0.15 / $0.50) and DeepSeek V4.1 Flash ($0.15 / $0.60 off-peak, $0.30 / $1.20 peak) are the low-cost routes.
  • DeepSeek V4.1 Flash has by far the cheapest cached input ($0.003–$0.006 per 1M), so it wins cache-heavy agent loops.
  • GLM-5.3 ($1.40 / $4.40) and DeepSeek V4 Pro ($0.66 / $1.98 off-peak, $1.32 / $3.96 peak) are the mid-priced flagships.
  • Kimi K3.1 Pro ($2 / $10) is now Moonshot’s newest flagship and one third cheaper than Kimi K3 ($3 / $15).
  • Kimi and DeepSeek V4.1 Flash accept images; Kimi K3 also accepts video. GLM-5.3 is text-only.

Price Comparison (USD per 1M tokens)

ModelInputCached inputOutputContextMax outputVisual input
GLM-5.3$1.40$0.26$4.401M128KNo
GLM-5.3 FlashX$0.37$0.075$1.251M128KNo
GLM-5.3 Flash$0.15$0.03$0.501M128KNo
DeepSeek V4.1 Flash, off-peak$0.15$0.003$0.601M384KImage
DeepSeek V4.1 Flash, peak$0.30$0.006$1.201M384KImage
DeepSeek V4 Pro, off-peak$0.66$0.022$1.981M384KNo
DeepSeek V4 Pro, peak$1.32$0.044$3.961M384KNo
Kimi K3.1 Pro$2.00$0.20$10.001M—Image
Kimi K3$3.00$0.30$15.001MUp to 1MImage, video

Kimi does not publish a maximum output for K3.1 Pro on its pricing page, so it is left blank. A separate K3.1 Pro Highspeed endpoint costs $4 / $20.

Billing Rules That Differ Between the Three

DeepSeek: time-of-day pricing. Peak hours are 01:00–04:00 and 06:00–10:00 UTC (09:00–12:00 and 14:00–18:00 Beijing time), Monday to Friday. Every other hour, weekends and Chinese public holidays bill at half the peak rate. The deepseek-flash ID serves V4.1 Flash; the old deepseek-v4-flash IDs route to it at the same price. Caching is automatic and free to write. Details: DeepSeek API pricing guide.

Kimi: cache writes are billed by TTL. Prefix caching is automatic with a 5-minute default TTL. On K3, writing to the cache costs $3 per 1M tokens for 5 minutes or $6 for 1 hour; on K3.1 Pro, $2 or $4. A cache hit bills only the hit price ($0.30 on K3, $0.20 on K3.1 Pro) with no further write charge. Batch jobs on K3 and K3.1 Pro cost 60% of the standard price. Details: Kimi K3 API pricing guide.

Z.AI: flat rates, free cache storage. GLM prices do not change by time of day or context length, and cached-input storage is free for a limited time (Z.AI gives no end date). GLM-5.3 always reasons, with low, high and max effort levels.

Worked Cost Examples

Example 1: The same task with no cache hits

2M input and 500K output tokens:

ModelArithmeticCost
GLM-5.3 Flash2 × $0.15 + 0.5 × $0.50$0.55
DeepSeek V4.1 Flash, off-peak2 × $0.15 + 0.5 × $0.60$0.60
DeepSeek V4.1 Flash, peak2 × $0.30 + 0.5 × $1.20$1.20
GLM-5.3 FlashX2 × $0.37 + 0.5 × $1.25$1.365
DeepSeek V4 Pro, off-peak2 × $0.66 + 0.5 × $1.98$2.31
DeepSeek V4 Pro, peak2 × $1.32 + 0.5 × $3.96$4.62
GLM-5.32 × $1.40 + 0.5 × $4.40$5.00
Kimi K3.1 Pro2 × $2 + 0.5 × $10$9.00
Kimi K32 × $3 + 0.5 × $15$13.50

Without caching, GLM-5.3 Flash is the cheapest route. Kimi K3 costs 2.7 times GLM-5.3 and 11 to 22 times DeepSeek V4.1 Flash, depending on the hour.

Example 2: A cache-heavy coding-agent task

10M input tokens across all turns, 90% served from cache (9M) and 1M uncached, plus 500K output. On Kimi the uncached 1M is a 5-minute cache write, which costs the same as normal input on both K3 and K3.1 Pro.

ModelArithmeticCost
DeepSeek V4.1 Flash, off-peak9 × $0.003 + 1 × $0.15 + 0.5 × $0.60$0.477
GLM-5.3 Flash9 × $0.03 + 1 × $0.15 + 0.5 × $0.50$0.67
DeepSeek V4.1 Flash, peak9 × $0.006 + 1 × $0.30 + 0.5 × $1.20$0.954
GLM-5.3 FlashX9 × $0.075 + 1 × $0.37 + 0.5 × $1.25$1.67
DeepSeek V4 Pro, off-peak9 × $0.022 + 1 × $0.66 + 0.5 × $1.98$1.848
DeepSeek V4 Pro, peak9 × $0.044 + 1 × $1.32 + 0.5 × $3.96$3.696
GLM-5.39 × $0.26 + 1 × $1.40 + 0.5 × $4.40$5.94
Kimi K3.1 Pro9 × $0.20 + 1 × $2 + 0.5 × $10$8.80
Kimi K39 × $0.30 + 1 × $3 + 0.5 × $15$13.20

With heavy caching, DeepSeek V4.1 Flash off-peak overtakes GLM-5.3 Flash, because its cached input costs one tenth as much. DeepSeek V4 Pro off-peak also costs less than a third of GLM-5.3 on this task. Output is now the biggest line for every model.

Example 3: One very long generated document

A single request with a 200K-token prompt that must produce 300K tokens of output:

ModelArithmeticCost
DeepSeek V4.1 Flash, peak0.2 × $0.30 + 0.3 × $1.20$0.42
Kimi K30.2 × $3 + 0.3 × $15$5.10
GLM-5.3, split into 3 calls3 × (0.2 × $1.40) + 0.3 × $4.40$2.16

GLM-5.3 cannot return 300K tokens in one response (128K maximum), so the job needs three calls that each resend the 200K prompt. DeepSeek (384K) and Kimi K3 (up to 1M) can do it in one. Output limits change the bill, not just the workflow.

Capability Differences

GLM-5.3 is Z.AI’s flagship for hard coding, security analysis and long-horizon agents. Flash is the price-first tier; FlashX costs more and is positioned for faster service. Benchmark both on cost per successful task rather than assuming the faster tier lowers total cost. GLM-5.3 accepts text only.

DeepSeek V4.1 Flash is the economic default for routine, cache-heavy and schedulable traffic, and it accepts images. V4 Pro is text-only and should be an escalation route, used where harder coding steps measurably reduce retries.

Kimi K3 accepts text, image and video, supports function calling and structured output, and allows extremely long completions. K3.1 Pro is cheaper and newer; test it before K3 for most work and keep K3 for video input or outputs above what K3.1 Pro handles in your tests. Kimi’s K2 models stopped accepting new users on October 31 and retire by the end of December 2026.

Routing Table for Coding Agents

Agent stepStart withEscalate to
File search, classification, log summariesDeepSeek V4.1 Flash (off-peak where possible) or GLM-5.3 FlashGLM-5.3 FlashX
Normal patches and tool loops with stable contextDeepSeek V4.1 FlashDeepSeek V4 Pro
Hard coding and long engineering runsGLM-5.3 or DeepSeek V4 ProKimi K3.1 Pro
Image-grounded tasksDeepSeek V4.1 FlashKimi K3.1 Pro
Video input, or output beyond 384K tokensKimi K3Proprietary frontier model

Route by measured results, not benchmark rank. Track first-pass success, valid tool calls, cache hit rate, total output tokens, wall-clock time and human repair minutes per task.

For the wider Chinese lineup (Qwen, MiniMax, MiMo) see the Chinese AI model API price comparison, and test your own token mix in the AI Pricing Calculator.

Sources

Checked November 16, 2026:

Next step

Related Posts