VynarisEarly beta
Get my API key

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 zonePeak hours, local, Mon-FriEffect on a business day
UTC01:00-04:00, 06:00-10:00Morning is peak
US Eastern (UTC-5, winter)20:00-23:00, 01:00-05:00None, all off-peak
US Pacific (UTC-8, winter)17:00-20:00, 22:00-02:00Evening only
London (UTC+0, winter)01:00-04:00, 06:00-10:00Morning is peak
India (UTC+5:30)06:30-09:30, 11:30-15:30Most of the working day
Beijing (UTC+8)09:00-12:00, 14:00-18:00The 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).

Peak windows cover 7 of 24 hours on a weekday and none on weekends
Off-peak is exactly half the peak rate.

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.

ModelCost per call, peakCost per call, off-peak100k calls, peak100k 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:

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

How do I queue jobs until off-peak?

Follow these steps. Each one is a piece of the script at the end.

  1. 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)
  1. 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 MARGIN to 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)
  1. 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
  1. Respect the concurrency limit. DeepSeek allows 2,500 concurrent deepseek-flash requests and 500 deepseek-v4-pro requests 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
  1. 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))
  1. 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) or 0 12 * * * daily. With a 10-minute margin the batch has from 10:00 to 00:50 UTC, nearly 15 hours.
A job checks the UTC clock before every dispatch and waits out peak windows
Check the clock per request, not once per batch.

How to verify it worked

Common errors and fixes

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.