Developer API cost planner

Open-Weight Model Cost Calculator

Estimate monthly API costs from your request volume and token use. Compare six open-weight models, then adjust for caching, retries, and provider markup.

Rates are shown in USD per 1 million tokens. Check the linked provider rate cards before setting a budget.

Cost spectrum1M input + 1M output
DeepSeek V4.1 Flash
$1.500
Kimi K2.7 Code
$4.950
DeepSeek V4 Pro
$5.280
GLM-5.3
$5.800
GLM-5.2
$5.800
Kimi K3
$18.000
GLM-5.3 uses a GLM-5.2 planning proxy; taxes and gateway fees excluded
01
Estimate traffic

Use requests per day and active days to model an average month.

02
Measure tokens

Enter average input and output tokens for one completed request.

03
Model reality

Add cache hits, retries, tool calls and any gateway markup.

04
Compare budget fit

Rank models with published rates using the same workload assumptions.

01 / Workload calculator

Estimate a month of usage

The estimate runs in your browser. Your usage assumptions are not submitted or stored.
Application assumptions
Best projected fit-
Monthly tokens-
Effective cache-
Models in budget-

02 / Price reference

Direct API pricing at a glance

Cache-miss input, cache-hit input and generated output are billed separately. Lower token price does not guarantee the best result for every workload.
ModelProviderInputCached inputOutput1M in + 1M outPosition
GLM-5.3Z.ai~$1.400000~$0.260000~$4.40~$5.800Planning proxy / New coding frontier
Kimi K3Moonshot AI$3.000000$0.300000$15.00$18.000Premium capability
GLM-5.2Z.ai$1.400000$0.260000$4.40$5.800Balanced agents
DeepSeek V4 ProDeepSeek$1.320000$0.044000$3.96$5.280Reasoning
Kimi K2.7 CodeMoonshot AI$0.950000$0.190000$4.00$4.950Coding specialist
DeepSeek V4.1 FlashDeepSeek$0.300000$0.006000$1.20$1.500Lower-cost general use

Values marked with "~" are estimates. GLM-5.3 uses GLM-5.2 rates as a planning proxy, not a quoted GLM-5.3 rate. The table excludes taxes, currency conversion, minimum charges, tool fees, storage, embeddings, web search, and gateway markup. Cached-input pricing applies only when the provider reports a qualifying cache hit.

03 / New release

GLM-5.3: stronger coding from post-training

Z.ai released GLM-5.3 on August 14, 2026. It uses the same base model as GLM-5.2, with the reported gains coming from scaled post-training on broader, longer and more realistic task environments.
Provisional calculator rate$1.40 in / $4.40 out

The calculator uses GLM-5.2's published rate as a planning proxy, including $0.26 per million cached-input tokens. Replace the proxy when Z.ai publishes an official GLM-5.3 rate.

GLM-5.3 is available to Coding Plan users through points-based quotas. Off-peak calls consume 50% of standard points outside Monday to Friday, 14:00 to 18:00 UTC+8.
Code Bench gain+50%

Z.ai reports a 50% improvement over GLM-5.2 on its private coding-agent benchmark.

Terminal Bench 3.028.3

Up from 4.6 for GLM-5.2 in Z.ai's published evaluation.

DeepSWE v1.166.9

Up from 46.2, with long-horizon software-engineering emphasis.

CyberGym84.5%

Z.ai reports a benchmark-leading result, up from GLM-5.2's 77.2%.

ExploitBench54.4%

More than double GLM-5.2's reported 24.4% result.

Token efficiency~75K

At Max effort, 34.5% on Z.ai Code Bench at roughly 75K output tokens, versus 23.4% at 96K for GLM-5.2.

API behavior

  • Model ID: glm-5.3
  • Thinking is always enabled; disabling it is not supported.
  • Reasoning effort supports low, high and max; the default is max.
  • Z.ai recommends Max effort for coding tasks.

Migration note

Applications using thinking.type: "disabled" must change it to enabled before switching model IDs. Use reasoning_effort: "low" when a lighter reasoning budget is needed; unsupported thinking settings cause the request to fail.

Context and availability

Official evaluations use up to a 1M-token context for several long-horizon suites and up to 128K output in selected tests. Z.ai says the open weights will follow two weeks after launch, after safety evaluation and hardening.

Security positioning

The release adds substantial vulnerability-discovery and exploitation capability. Use it only for systems you own or are explicitly authorized to assess, with human review and controlled execution boundaries.

Launch claims and benchmark figures are reported by Z.ai. Private-benchmark results are not independently reproducible from the announcement alone. Read the official GLM-5.3 release

04 / DeepSeek pricing

Peak and off-peak rates

DeepSeek lists lower off-peak rates. Its current pricing page defines peak hours as 01:00–04:00 and 06:00–10:00 UTC, Monday to Friday, except Chinese public holidays. Check the provider page for changes.
V4 ProReasoning tier

Off-peak

$0.66 in / $1.98 out$0.022 cached input

Peak

$1.32 in / $3.96 out$0.044 cached input
V4.1 FlashFlash model

Off-peak

$0.15 in / $0.60 out$0.003 cached input

Peak

$0.30 in / $1.20 out$0.006 cached input

05 / Decision guide

Match the model to the workload

A useful shortlist balances unit cost, output volume, reliability and the value of a successful response.
New coding frontierZ.ai

GLM-5.3

Complex coding, long-horizon engineering and authorized cyber-defense work

Uses GLM-5.2's published rate as a provisional planning proxy until Z.ai publishes a dedicated GLM-5.3 direct API rate.Check provider pricing
Premium capabilityMoonshot AI

Kimi K3

Complex reasoning, long context and high-value agent work

Output-heavy applications should model generated tokens carefully.Check provider pricing
Balanced agentsZ.ai

GLM-5.2

Long coding agents and workloads with reusable context

This comparison uses Z.ai's published $1.40 / $0.26 / $4.40 pricing tier. Confirm the model identifier before launch.Check provider pricing
ReasoningDeepSeek

DeepSeek V4 Pro

Reasoning and agent workflows where capability matters

The listed rates use DeepSeek’s peak schedule. Off-peak rates are shown separately; check the provider page for current terms.Check provider pricing
Coding specialistMoonshot AI

Kimi K2.7 Code

Repository work, code generation and multi-step coding agents

Coding-focused pricing is attractive when generated output remains controlled.Check provider pricing
Lower-cost general useDeepSeek

DeepSeek V4.1 Flash

High-volume assistants, classification and cost-sensitive features

The current API model name is deepseek-flash. DeepSeek lists separate peak and off-peak rates; verify its live rate card before budgeting.Check provider pricing

06 / Cost controls

What changes the real bill

1

Cache stable prefixes

Keep system instructions and reusable context at the beginning. Track actual cache-hit tokens instead of assuming every repeated prompt qualifies.

2

Control output length

Output is the most expensive token class for most models here. Use clear completion criteria and sensible maximum-token limits.

3

Measure agent loops

A single user action may trigger planning, tool calls, retries and verification. Price the complete run rather than only the final response.

4

Route by task

Use an efficient model for routine work and reserve premium models for requests where additional capability creates measurable value.

5

Include failure cost

The cheapest call is not cheapest when it requires repeated attempts. Compare successful-task cost using production evaluation data.

6

Set usage guardrails

Add per-user quotas, spend alerts and graceful fallbacks. Recalculate after prompt, model or traffic changes.

07 / Method

How the estimate is calculated

monthly requests = requests/day × active days
adjusted tokens = tokens/request × monthly requests × (1 + overhead)
input cost = uncached input × input rate + cached input × cache rate
monthly estimate = (input cost + output cost) × (1 + gateway markup)