Measure cost per accepted answer. Stable input prefixes, off-peak scheduling and shorter useful output can lower costs, but cache hits and answer quality must be checked in your own workload.
FOR:Developers budgeting recurring API or agent tasksStart with a complete task budget
The current official API identifiers are deepseek-flash and deepseek-v4-pro. Start a comparison with a task whose answer you can verify. Record input, output, elapsed time, retries and whether you accepted the result. A lower token price alone does not prove a lower cost per completed task.
The examples below are arithmetic estimates using the official rate card checked on 12 November 2026. They are not measurements of model accuracy, speed or guaranteed savings.
A worked Flash cost example
Assume 10,000 calls, each with 2,000 input tokens and 500 output tokens, all off-peak. With no cache hits: 20M input × USD 0.15/M + 5M output × USD 0.60/M = USD 6.00.
If 80% of input tokens actually hit the cache, input costs 16M × USD 0.003/M + 4M × USD 0.15/M = USD 0.648. Output still costs USD 3.00, giving USD 3.648, approximately USD 3.65. The same token mix at peak rates costs USD 7.296, approximately USD 7.30. These figures exclude Search, Fetch and third-party charges.
Make prefixes reusable, then measure hits
Context caching is enabled by default. Keep stable instructions and reusable documents at the start, with the changing question later. A hit requires a full match to a persisted cache prefix unit; simply using similar wording is insufficient. Common prefixes may need multiple requests before they are detected and persisted.
Read prompt_cache_hit_tokens and prompt_cache_miss_tokens in usage. Divide total hit tokens by total hit plus miss tokens across the batch; do not average percentages from differently sized calls. Caching is best effort, construction takes time, and unused entries can expire. Do not budget as though every repeated token will hit.
Schedule flexible work outside peak hours
Official peak hours are Monday–Friday 01:00–04:00 and 06:00–10:00 UTC, excluding Chinese public holidays. In Beijing (UTC+8), that is 09:00–12:00 and 14:00–18:00. All other hours, weekends and Chinese public holidays are off-peak. Off-peak model rates are half the peak rates.
Move flexible batch jobs to off-peak hours when latency requirements allow. Do not delay a user-facing task just to obtain a lower rate without considering the user experience. These model time bands do not imply a discount on separately priced Search or Fetch requests.
Reduce avoidable work and keep quality checks
Specify the result format and useful length. Supply only relevant source material, and summarize old conversation decisions instead of endlessly appending history. Compare disabled thinking, low effort and higher effort on the same small task set before changing defaults.
Include all agent turns and successful tool requests in the budget. For example, 1,000 billable Search requests plus 1,000 billable Fetch requests add USD 1.50 at the reviewed rates, before model tokens. Stop retries when the request needs correction; use bounded retries for transient failures. Save both the cost and the acceptance result.
Sources
Start with the original documents. Models and prices change; check official pages before use.
01Official model prices and peak hours02Official context caching and usage fields03Official thinking-mode controls04Official Search and Fetch billing