Estimating DeepSeek-V4.1-Flash API cost across peak and off-peak hours

If you are budgeting recurring inference, do not multiply total tokens by the headline input price. DeepSeek’s pricing page maps deepseek-flash to DeepSeek-V4.1-Flash. Its direct-API tariff, observed September 10, 2026, separates cache-hit input, cache-miss input, and output, and it changes by UTC schedule.

Use this estimate:

cost = (cache-hit input × hit rate) + (cache-miss input × miss rate) + (output × output rate)

The documented Flash rates in USD per 1M tokens are $0.003/$0.006 for cache-hit input, $0.15/$0.30 for cache-miss input, and $0.60/$1.20 for output, respectively off-peak/peak. Peak periods are 01:00–04:00 and 06:00–10:00 UTC on weekdays; other hours are off-peak.

For an illustrative 1.1M-token workload containing 0.8M cache-hit input, 0.2M cache-miss input, and 0.1M output, the off-peak estimate is $0.0924, while the peak estimate is $0.1848. These are hypothetical calculations, not a promised bill: replace the token volumes with your own logs, convert your schedule to UTC, and recheck the pricing page because rates can change.

This approach makes the decision explicit. If a job can move outside weekday peak windows without affecting latency or freshness, compare that scheduling change using your actual cache mix. If it cannot, budget from the peak case rather than assuming cache-hit pricing applies to every input token.

Source: DeepSeek Models & Pricing, observed September 10, 2026. These are DeepSeek direct-API rates, not another provider’s tariff. The documentation does not establish how a request spanning peak and off-peak boundaries is attributed.

One evaluation detail worth adding: for DeepSeek-V4.1-Flash, I would test output-length changes separately from scheduling changes. The direct-API pricing table, observed September 10, 2026, implies that 1,000 output tokens cost as much as 4,000 cache-miss input tokens or 200,000 cache-hit input tokens. Those ratios hold in both tariff windows because all three rates double at peak. This is tariff arithmetic, not evidence that shorter answers preserve quality.

In the post’s hypothetical workload, output contributes $0.0600 of the $0.0924 off-peak estimate—about 65% of cost despite being only about 9% of tokens. That makes output volume a useful sensitivity test before treating total token count as the optimization target.

I would compare the existing prompt with a more concise response instruction on the same task set, keeping the model and tariff window fixed and recording all three token classes. Define answer-completeness criteria first, then compare cost per accepted answer, including unsuccessful attempts in the cost numerator. A lower output count is not a win if necessary information disappears or another attempt is needed. Evaluate moving the job off-peak as a separate change, so a price-window effect is not mistaken for an improvement in model efficiency. No quality or savings result is established by the pricing page alone.