Blog · · By Dhrumil Barot, Founder
DeepSeek Off-Peak Scheduling: Queue API Calls at Half Price
DeepSeek off-peak hours are every hour outside 01:00-04:00 and 06:00-10:00 UTC on weekdays, at half price. A working Python queue, cron settings and the cost math for 100k calls.
TL;DR: DeepSeek charges half price outside two weekday windows: 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday. Weekends and Chinese public holidays are off-peak all day. DeepSeek has no batch API, so off-peak scheduling is its batch discount: hold non-urgent jobs in a queue, release them only in off-peak hours, and 100,000 deepseek-v4-pro calls drop from $594 to $297. Vynaris ("same quality, a fraction of the cost") shows the real cost of the calls that cannot wait.
Price the calls that can't wait. Point your OpenAI client at Vynaris and every response carries x-vynaris-cost-usd and the model that served it. [Compare models in the calculator](/calculator).To run DeepSeek at off-peak rates, check the current UTC time before each dispatch. If it is a weekday between 01:00 and 04:00 or between 06:00 and 10:00 UTC, wait for the window to close (04:00 or 10:00). Otherwise send. Stop dispatching a few minutes before each peak window opens, so long calls finish before peak starts. Prices verified on DeepSeek's pricing page on 2026-11-27.
When are DeepSeek off-peak hours in UTC?
DeepSeek off-peak hours are every hour except 01:00-04:00 and 06:00-10:00 UTC on Monday to Friday. That is 7 peak hours a day, 35 of 168 hours a week (20.8%). The other 133 hours bill at half price.
| Your time zone | Peak hours, local, Mon-Fri | Effect on a business day |
|---|---|---|
| UTC | 01:00-04:00, 06:00-10:00 | Morning is peak |
| US Eastern (UTC-5, winter) | 20:00-23:00, 01:00-05:00 | None, all off-peak |
| US Pacific (UTC-8, winter) | 17:00-20:00, 22:00-02:00 | Evening only |
| London (UTC+0, winter) | 01:00-04:00, 06:00-10:00 | Morning is peak |
| India (UTC+5:30) | 06:30-09:30, 11:30-15:30 | Most of the working day |
| Beijing (UTC+8) | 09:00-12:00, 14:00-18:00 | The whole working day |
The schedule arrived with the V4 price reset in August 2026, and the all-weekend off-peak rule took effect on 2026-08-23 at 00:00 Beijing time (remio). The full rate card is in our [DeepSeek API pricing reference](/blog/deepseek-api-pricing-every-model-peak-off-peak).

Does DeepSeek have a batch API?
No. DeepSeek's API guides cover JSON output, tool calls, KV cache, the Files API and more, but there is no batch endpoint (guide index, checked 2026-11-27). OpenAI and Anthropic sell a 50% batch discount for a delayed, 24-hour result; see our [OpenAI Batch API guide](/blog/how-to-use-openai-batch-api). DeepSeek sells the same 50% for timing instead. You keep normal synchronous calls and simply choose when to send them.
How much does off-peak scheduling save?
Off-peak scheduling saves exactly 50% on every call you move out of peak. Here is the math for 100,000 calls of 3,000 input tokens (cache miss) and 500 output tokens.
| Model | Cost per call, peak | Cost per call, off-peak | 100k calls, peak | 100k calls, off-peak |
|---|---|---|---|---|
| deepseek-flash | $0.0015 | $0.00075 | $150 | $75 |
| deepseek-v4-pro | $0.00594 | $0.00297 | $594 | $297 |
Derivation for deepseek-v4-pro at peak: 3,000 x $1.32 / 1M = $0.00396 input, plus 500 x $3.96 / 1M = $0.00198 output, so $0.00594 per call, or $594 per 100,000.
What you save depends on when you run today:
- A nightly job someone set to 09:00 UTC on weekdays runs fully in peak. Moving it to 11:00 UTC saves the full 50%: $297 per 100,000 Pro calls.
- Traffic spread evenly over the week is already 79.2% off-peak. Its blended cost is $359.78 per 100,000 Pro calls (0.792 x $297 + 0.208 x $594). Moving all of it off-peak saves $62.78, or 17%.
- A US team running jobs in its own office hours is already off-peak and saves nothing.
Cache hits halve too. Flash cached input is $0.003 per 1M off-peak, so repeated system prompts and long shared prefixes stay cheap in both windows; see [prompt caching examples](/blog/prompt-caching-examples).
What you need
- Python 3.10 or newer and the
openaipackage (pip install openai). - A DeepSeek API key in
DEEPSEEK_API_KEY. The base URL ishttps://api.deepseek.com(OpenAI format). - Jobs that can wait. A job arriving at 01:00 UTC waits 3 hours, or 9 hours (until 10:00) if it cannot finish inside the 2-hour gap from 04:00 to 06:00 UTC.
How do I queue jobs until off-peak?
Follow these steps. Each one is a piece of the script at the end.
- Write the peak test. One function that answers "is this moment peak?" in UTC:
from datetime import datetime, timedelta, timezone
PEAK_UTC = [(1, 4), (6, 10)] # hours, Mon-Fri, from DeepSeek's pricing page
def is_peak(t: datetime) -> bool:
t = t.astimezone(timezone.utc)
if t.weekday() >= 5: # Saturday or Sunday
return False
return any(start <= t.hour < end for start, end in PEAK_UTC)- Add a safety margin. DeepSeek does not say whether a call is billed by its start or its end time. Treat a call as peak if it could still be running when peak opens. Set
MARGINto your slowest expected call (thinking-mode calls with long output can take minutes):
MARGIN = timedelta(minutes=10)
def safe_to_send(now: datetime) -> bool:
return not is_peak(now) and not is_peak(now + MARGIN)- Compute the next safe moment. Step forward a minute at a time; at most it walks from 01:00 to 04:00 UTC, or to 10:00 UTC for a long margin:
def next_safe(now: datetime) -> datetime:
t = now.replace(second=0, microsecond=0)
while not safe_to_send(t):
t += timedelta(minutes=1)
return t- Respect the concurrency limit. DeepSeek allows 2,500 concurrent
deepseek-flashrequests and 500deepseek-v4-prorequests per account, counted from send until the response completes; above that you get HTTP 429 (rate limits). Use a semaphore below the limit and check the clock before each dispatch, not once per batch:
import asyncio, os
from openai import AsyncOpenAI
client = AsyncOpenAI(base_url="https://api.deepseek.com",
api_key=os.environ["DEEPSEEK_API_KEY"])
sem = asyncio.Semaphore(400) # under the 500 limit for deepseek-v4-pro
async def run(job: dict) -> str:
async with sem:
while not safe_to_send(datetime.now(timezone.utc)):
wait = next_safe(datetime.now(timezone.utc)) - datetime.now(timezone.utc)
await asyncio.sleep(max(wait.total_seconds(), 1))
r = await client.chat.completions.create(
model="deepseek-v4-pro",
messages=job["messages"],
extra_body={"user_id": job.get("tenant", "batch")},
)
return r.choices[0].message.content- Run the queue. Load your jobs, then gather them. Jobs that arrive during peak simply wait inside
run:
async def main(jobs: list[dict]):
results = await asyncio.gather(*(run(j) for j in jobs), return_exceptions=True)
failed = [j for j, r in zip(jobs, results) if isinstance(r, Exception)]
print(f"done {len(jobs) - len(failed)}, failed {len(failed)}")
# asyncio.run(main(jobs))- Or use cron. For a nightly job, schedule it in UTC so it never lands in peak, for example
15 10 * * 1-5(10:15 UTC weekdays) or0 12 * * *daily. With a 10-minute margin the batch has from 10:00 to 00:50 UTC, nearly 15 hours.

How to verify it worked
- Log the UTC send and finish time of each call next to its
usageblock (prompt_tokens,completion_tokens). Every finish time should fall outside 01:00-04:00 and 06:00-10:00 UTC on weekdays. - Recompute the bill from the logged tokens at the off-peak rates and compare it with the usage page in the DeepSeek console for the same day.
- If you track spend in LiteLLM, its
off_peak_pricingsetting models this schedule withhours_utcwindows and weekday rules. Note that LiteLLM prices a request by its completion time; that is LiteLLM's tracking rule, not a statement from DeepSeek (LiteLLM docs).
Common errors and fixes
- `429` during a big release. You exceeded the account-level concurrency limit; all API keys on the account share it. Lower the semaphore or ask DeepSeek for more capacity, which it says is free.
- Jobs dispatched at local midnight land in peak. A server set to Asia/Kolkata or Asia/Shanghai runs
0 9 * * *at its local time. Always compute withtimezone.utc, and set cron to UTC withCRON_TZ=UTC. - Bill higher than the off-peak math. Long calls started at 00:55 UTC may still run at 01:00. Raise
MARGINto your p99 latency. - Holiday runs paid peak in your model. Chinese public holidays are off-peak all day, but the script treats them as weekdays. That only costs you waiting time, never money. Add the dates to a skip list if you want those hours back.
Where Vynaris fits
Scheduling solves the work that can wait. It does nothing for traffic with a user waiting. For that, Vynaris is an OpenAI-compatible router: change the base URL and each response returns x-vynaris-served-model, x-vynaris-cost-usd, x-vynaris-baseline-usd and x-vynaris-saved (pricing). Billing is the provider price plus 3% on your first $500 of monthly usage, then 1%. Top-ups start at $20 and credit does not expire.
What it does not do, honestly: the [Vynaris model list](/models) today has DeepSeek V3 ($0.27 / $1.10) and DeepSeek R1 ($0.55 / $2.19), not deepseek-flash or deepseek-v4-pro, and it does not hold traffic for DeepSeek's off-peak hours. Run your V4 batch direct with the queue above, and use Vynaris for the interactive calls where cost per call matters. For how DeepSeek counts the tokens you pay for, see [the DeepSeek tokenizer](/blog/deepseek-tokenizer).
FAQ
What time is DeepSeek off-peak in UTC?
Every hour except 01:00-04:00 and 06:00-10:00 UTC on Monday to Friday. Weekends and Chinese public holidays are off-peak all day.
How much cheaper is DeepSeek off-peak?
Exactly half. deepseek-flash drops from $0.30 to $0.15 input (cache miss) and from $1.20 to $0.60 output per 1M tokens. deepseek-v4-pro drops from $1.32 to $0.66 and from $3.96 to $1.98.
Does DeepSeek have a batch API like OpenAI?
No. There is no batch endpoint. Off-peak scheduling gives the same 50% discount with normal synchronous calls.
Is the weekend off-peak in UTC or Beijing time?
The weekday peak windows are defined in UTC and fall inside Beijing's Monday to Friday, so a UTC check is correct. Friday 16:00 UTC onward is already Saturday in Beijing and is off-peak either way.
Do cache hits get the off-peak discount?
Yes. Cache-hit input halves too: deepseek-flash goes from $0.006 to $0.003 per 1M tokens, deepseek-v4-pro from $0.044 to $0.022.
Can I schedule DeepSeek calls without code?
Yes, with cron in UTC: 15 10 * * 1-5 runs at 10:15 UTC on weekdays, after both peak windows have closed.
See what each call costs, not each token. Point your OpenAI client at Vynaris and read the cost header on the first response. Get started at vynaris.com.