Repository navigation
Replies: 1 comment
|
Your rate table checks out against the vendor page — I re-read both language versions today (2026-08-23) and got the same six numbers: Flash One thing your ledger schema will now get wrong, through no fault of yours: the schedule has changed twice since you wrote this.
So a Two boundary details that bite when you add the weekday test:
On your last question — work that starts before a window and finishes inside it. The vendor does not document a straddle rule, and I would not trust anyone who tells you they know it; the only public signal is the wording of the weekend notice, which settled fees "incurred before the cutover" under the previous rates, i.e. by when the charge lands rather than by when the job was queued. What I would actually suggest is not picking the right timestamp but bounding how much it can matter: a straddling request is mispriced by at most half its own cost, and only requests that cross one of four boundaries a day can straddle at all. Against that, misreading the weekday costs you 2× on 14 hours every week. Fix the calendar first; the straddle is a rounding error wearing a hard-problem costume. If you do want a rule that survives audit: use the provider's own timestamp when the response carries one, fall back to request start — not completion — and record which of the two you used in the ledger row. Falling back to start is the conservative direction for forecasting, because it can only put a request in the earlier (usually cheaper, since peak is the minority of hours) band, and a forecast that runs slightly low is the failure mode that generates a support ticket instead of a silent surprise. On your other two questions, from our side:
Dated conformance vectors for all of this — the window edges, both weekend midnights, and the band where the two language readings disagree — are CC0 here if they save you writing tests: https://github.com/xyzs996/deepseek-peak-hours. The longer write-up of the failure modes is at https://xyzs996.github.io/llm-api-pricing/deepseek-peak-hours.html (plain static mirror, no scripts: https://telegra.ph/DeepSeek-peak-and-off-peak-hours-08-23). Both are mine; the vectors are the part worth taking. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How Are You Handling DeepSeek's Peak-Pricing?
DeepSeek's 2026-08-17 rate card adds a Beijing-time peak schedule for V4 Flash and V4 Pro. The dated official rows are $0.22/$0.66 off-peak and $0.44/$1.32 at peak for Flash input/output; Pro is $0.66/$1.98 off-peak and $1.32/$3.96 at peak. Cache-hit input is a separate row. The details are in the official pricing documentation.
The change caught my team because request volume was stable while the cost forecast moved. We had been tracking input and output tokens, but not the timestamp that tells us whether the request landed in 09:00–12:00 or 14:00–18:00 Beijing time. We are now storing
provider,model,input_tokens,output_tokens,cache_hit_tokens,rate_date, andpeak_windowin the usage ledger.The first practical step was a small calculator:
For a 70/30 input/output mix, Flash moves from $0.352/M blended off-peak to $0.704/M at peak. Pro moves from $1.056/M to $2.112/M. That range is more useful for planning than a single average, especially for interactive products that cannot move traffic by two hours.
We are testing three responses:
AIWave is one option in that third category. Its live pricing feed, checked on 2026-08-18, shows unified all-day DeepSeek rows rather than peak windows: Flash $0.319/M input and $0.957/M output, and Pro $0.957/M input and $2.871/M output. That makes budgeting a single route-price lookup, though teams should still record the source timestamp and confirm account-specific group policy before production traffic. It also exposes a multi-model workflow, which can be useful when a team wants DeepSeek, Kimi, Qwen, or GLM behind one OpenAI-compatible integration. I am treating it as an option to benchmark, not as a universal answer.
The questions I am still working through:
One small operational detail matters here: store the provider clock and your gateway clock together, because timezone conversion bugs can silently push a batch into a more expensive window.
I would be interested in real examples of timestamp-aware budgets, cache-ledger designs, and bounded fallback policies. The most useful comparison will include token mix, peak share, validation rate, and latency—not just request count.
If you have already built a peak-aware scheduler, I would especially like to know how you handle work that begins before a window and finishes inside it. Do you use the provider timestamp, your queue timestamp, or a conservative internal flag? Sharing that detail would make comparisons much more useful than sharing a headline percentage.
All reactions