DeepSeek's Time-Based API Pricing Caught Developers Paying Double Overnight
DeepSeek's API charges peak rates during Beijing business hours (09:00–12:00 and 14:00–18:00 CST, Monday–Friday), with off-peak prices exactly half the peak cost. A developer discovered their 3 a.m. Eastern batch job was inadvertently running during Beijing's afternoon peak window, doubling API costs without any code error. The classic US overnight maintenance window of roughly 2–6 a.m. Eastern falls squarely within DeepSeek's peak billing period, while standard East Coast business hours are off-peak. The recommended fix is to write cron schedules in Asia/Shanghai timezone rather than converting to UTC, since US daylight saving shifts can silently break hand-converted times twice a year. Developers are also advised to account for long-running jobs that straddle peak boundaries and retry queues that may drain into expensive windows.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in