Notizen / 16

DeepSeek peak vs off-peak pricing, in UTC

2026-11-19Modelry-Notizen

DeepSeek-style pricing has two windows, and almost every cost surprise comes from misreading which one a request landed in. This is the window arithmetic without hand-waving: which hours are peak, whether weekends count, whether the rate follows arrival or completion, how cached input is priced inside each window, and one worked example you can re-derive on a calculator. It also covers the three mistakes that make the second window invisible in your bill, and how to schedule batch work so it stops paying double.

The two windows

Peak runs UTC 01:00–04:00 and 06:00–10:00, Monday to Friday. Everything else — every hour of Saturday and Sunday, and the other eighteen hours of a weekday — is off-peak. The peak rate is exactly 2× the off-peak rate; there is no third tier and no per-model exception.

| UTC | UTC+8 | Weekday | Weekend | |---|---|---|---| | 00:00–00:59 | 08:00–08:59 | off-peak | off-peak | | 01:00–03:59 | 09:00–11:59 | peak | off-peak | | 04:00–05:59 | 12:00–13:59 | off-peak | off-peak | | 06:00–09:59 | 14:00–17:59 | peak | off-peak | | 10:00–23:59 | 18:00–07:59 | off-peak | off-peak |

That table is the whole subject. If you remember one line: on a weekday, the two expensive blocks are the two blocks that overlap a European morning and a European afternoon.

Arrival, not completion

The rate applied is the one in force when the request arrives, not when the answer finishes. A stream that starts at 03:59 UTC and runs for two minutes is billed at the peak rate for the whole request. A request that starts at 00:59 UTC is billed off-peak even though most of its work happens inside the window.

This matters for accounting, not just for pricing. If your ledger timestamps at completion, every request that straddles a boundary is classified the other way, and the error is systematic rather than random: it grows with latency and it is invisible in aggregate because both numbers look plausible. Timestamp before you send.

What a request actually costs in each window

Rates, per 1M tokens, from the published table:

| Model | Window | Input | Cached input | Output | |---|---|---|---|---| | deepseek-chat | off-peak | $0.25 | $0.006 | $1.45 | | deepseek-chat | peak | $0.50 | $0.012 | $2.90 | | deepseek-chat-lite | off-peak | $0.20 | $0.006 | $0.85 | | deepseek-chat-lite | peak | $0.40 | $0.012 | $1.70 | | deepseek-reasoner | off-peak | $1.10 | $0.044 | $4.75 | | deepseek-reasoner | peak | $2.20 | $0.088 | $9.50 |

Now a worked example, off-peak, on deepseek-chat: 12,000 prompt tokens of which 8,000 were cached, and 800 output tokens.

uncached input : (12,000 − 8,000) × $0.25 / 1M = $0.001000
cached input   :      8,000       × $0.006 / 1M = $0.000048
output         :        800       × $1.45 / 1M = $0.001160
                                        total   = $0.002208  = 2,208 micro-dollars

The same request inside a peak window is 4,416 micro-dollars. Billing rounds once, upward, to one micro-dollar — so a tiny request never rounds to zero.

Note the cached rate: at $0.006 per 1M it is 41× cheaper than uncached input in the same window. Cache hits are not a rounding detail; on a long prompt with a stable prefix they dominate the bill.

Cached input is a subset, not a discount

prompt_tokens already includes the cached tokens. The formula is therefore two terms over disjoint sets, not a discount applied to one:

cost = (prompt_tokens − cached_tokens) × in_rate
     +  cached_tokens                 × cached_rate
     +  completion_tokens             × out_rate

Getting this wrong is the most common accounting bug we see, and it inflates cost by roughly the cached share — which on a cached workload can be most of it. The response reports both numbers; the prompt_tokens_details.cached_tokens field and the prompt_cache_hit_tokens field agree, and either is safe to read.

Scheduling batch work into the cheap hours

Three rules that follow from the window definition:

  1. Schedule in UTC, not local time. A cron at 09:00 in a UTC+8 office is 01:00 UTC — the start of the expensive block, not a quiet hour.
  2. On weekdays, the safe slots are 10:00–23:59 UTC and 00:00–00:59 UTC. Weekends are clear entirely.
  3. Cap max_tokens on batch work. A request is pre-authorised before it reaches a model, sized from your body plus max_tokens; an oversized ceiling can be rejected on a thin balance even when the answer would have been cheap.

Failure 1: the window you measured is the window you finished in

Covered above, and it is the one that survives longest because the numbers stay plausible. Stamp at send time, store the window as a boolean on the row, and never re-derive it later from a timestamp you did not record.

Failure 2: billing the cached share twice

prompt × in_rate + cached × cached_rate double-charges the cached portion. At a 41× rate difference this does not look like a small error; it looks like your provider overcharged you.

Failure 3: treating the peak multiplier as a per-token flag

2× applies to all three rates at once — input, cached input and output. Code that multiplies only the output rate produces a number that is wrong in a direction that depends on your prompt-to-output ratio, so it can be high or low and will never be consistently off in a way you notice.

Reading it back from the endpoint

GET /v1/models returns the current rates and the windows themselves, so nothing above has to be taken on trust:

{"id":"deepseek-chat","context_length":1000000,"max_output_tokens":384000,
 "pricing":{"currency":"usd","unit":"per_1m_tokens",
   "offpeak":{"input":0.25,"cached_input":0.006,"output":1.45},
   "peak":{"input":0.5,"cached_input":0.012,"output":2.9},
   "peak_hours_utc":["01:00-04:00","06:00-10:00"],"peak_days":"Mon-Fri"}}

Every rate in this article is in that response, and the response is the one that gets billed. Fetch it instead of trusting a page — including this one.

Take a key at /signup — $0.50 in credits, no card — and run one day of your own traffic through the arithmetic above. A day that contains a window boundary is the only test that proves your accounting instead of your intentions. The full rate table is on /pricing; per-model pages are at /models/deepseek-chat and /models/deepseek-reasoner, and the ledger implementation is in /blog/per-request-cost-accounting-in-python-in-integer-micro-dollars.

See also: what a single request actually costs — the same arithmetic reconciled against one ledger row.

Modelry betreibt eine Plattform, die DeepSeek-Modelle hinter einem HTTP-Endpoint bereitstellt; vorausbezahlte Credits und Steuern werden beim Kauf vom Merchant of Record abgewickelt, und die Datenaufbewahrung ist dokumentiert. Starten Sie mit $0.50 Testguthaben: Schlüssel erstellen.

Alle Notizen

DeepSeek peak vs off-peak pricing, in UTC — Modelry