LLM API Peak and Off-Peak Pricing Explained: How Time-Based Token Billing Works
This article breaks down how peak and off-peak pricing works for large language model APIs, including why weekend rates drop to off-peak levels, how the time windows are structured, and what the price gap means in real cost terms. It covers a reusable cost estimation script, the constraints that determine actual savings, a list of workloads that can be shifted versus those that cannot, a reference scheduling implementation, and the timezone effects that matter for globally distributed teams. Readers will learn that the real driver of their bill is not the unit price but how much of their workload is schedulable.
1. The Bottom Line: Cheap Weekends Reveal the Supply Curve, Not a Subsidy
A cloud provider recently added a billing detail to its LLM service: starting the next day, Saturdays and Sundays would no longer distinguish peak from off-peak and would be billed at the off-peak rate all day. On the surface this looks like a price cut. In practice, it moves the price tag closer to the real cost structure. Peak hours coincide with the working and real-time response windows of businesses and institutions, while weekends sit in an idle, oversupplied band on the compute ledger for this kind of service. Labeling idle hours as cheap is the same as printing the trough of the capacity utilization curve directly on the price tag.
It is worth stressing that time-of-use pricing is a mature mechanism in public cloud. Compute, storage, and networking resources commonly use similar logic to shift load away from peaks. Bringing that mechanism into token-based billing for LLM inference is a natural extension of the same supply-and-demand logic, not a unique innovation.
2. Rule Breakdown: What the Weekly Price Tag Looks Like
The general shape can be abstracted into three bands:
- Peak: two consecutive daytime windows on weekdays (roughly 3 hours in the morning and 4 hours in the afternoon), billed at the base rate;
- Off-peak: the rest of weekday time, including lunch breaks and overnight, at roughly half the peak rate;
- Weekends and public holidays: off-peak rate all day.
In terms a developer can feel: weekday daytime is the most expensive, weekday nights and lunch breaks are cheaper, and weekends are cheap all day. The peak-to-off-peak spread is fixed at 2x, and cached-hit input, cache-miss input, and output tokens all scale proportionally, with no extra multipliers. The advantage of this design is cost predictability: the bill depends only on token composition and timezone position, with no hidden terms.
3. The Counterintuitive Part: The Anchor Is Enterprise Load, Not Consumer Demand
The common intuition is that weekends are peak AI usage: students are off, individual users are active, and developers catch up on work. If compute demand really followed consumer rhythms, weekends should be the most expensive. The opposite is true, which shows the pricing baseline is anchored to the institutional and enterprise workloads that must return results in real time during weekday daytime: online customer support, code completion, document retrieval, risk control and approval pipelines. This traffic is latency-sensitive and cannot be deferred, making it the segment with the highest willingness to pay.
An important implication follows: the peak/off-peak gap is essentially time arbitrage, and the benefit belongs only to workloads that can move their execution time. The price signal does not reward “using more”; it rewards “being schedulable.”
4. Cost Magnitude: Turning the Spread into a Decision-Ready Number
Take a typical price structure for a general-purpose LLM (per million tokens, off-peak/peak): cached-hit input 0.05/0.10, cache-miss input 1.5/3.0, output 4.5/9.0. Here is a reusable estimation script:
def daily_cost(tokens, hit_rate=0.95, input_ratio=0.95,p_in_hit=0.05, p_in_miss=1.5, p_out=4.5):"""tokens: total tokens for the day (in millions)"""in_tok = tokens * input_ratioout_tok = tokens * (1 - input_ratio)hit, miss = in_tok * hit_rate, in_tok * (1 - hit_rate)return hit * p_in_hit + miss * p_in_miss + out_tok * p_outfor t in (10_000,): # 10 billion tokens/daylow, peak = daily_cost(t), daily_cost(t) * 2print(f"All off-peak {low:.0f} / all peak {peak:.0f} / daily gap {peak-low:.0f}")
Under the assumptions of 10 billion tokens per day, a 95% cache hit rate, and a 95% input ratio, all-day off-peak costs roughly 3,400 CNY, all-day peak roughly 6,800 CNY, and the daily difference is a bit over 3,000 CNY; if unit prices double across the board, the gap doubles to the 20,000 CNY range. That is what “schedule batch jobs for nights and weekends” actually means on the bill, and it explains why teams with heavy offline workloads deliberately shift their hours to dodge the peak.
But any estimate has to carry constraints, or the conclusion gets distorted:
- The cache hit rate is the most sensitive variable. When it drops from 95% to 70%, the share of cache-miss input cost rises quickly and the absolute peak/off-peak gap narrows.
- The input/output ratio determines the leverage. The higher the output share, the larger the impact of the price spread.
- Only deferrable workloads capture the benefit. A real-time production endpoint cannot move a single line, and the bill does not drop by a cent.
5. Migratable Workload Checklist: What Should Be Scheduled and What Should Not
Suitable for off-peak shifting (offline, retryable, no strict timing):
- Vector store construction and index rebuilding, document parsing and chunking;
- Batch summarization, tagging, cleaning, deduplication, translation;
- Model evaluation, regression testing, prompt and hyperparameter sweeps;
- Repository-level code analysis, overnight attribution of logs and tickets;
- Data synthesis and distillation corpus generation.
Not migratable (must stay in peak): online Q&A and search, intelligent code completion, real-time risk control and moderation, voice and multimodal interaction pipelines, synchronous interfaces facing end users.
6. Reference Implementation for Scheduling Changes
The core idea is to tier the queue by time sensitivity, then hand it to a token bucket that only opens during off-peak windows:
LOW_PEAK = {"peak": ((9, 12), (14, 18))} # weekday peak windowsdef is_peak(ts, weekday): # weekday: 0 = Mondayif weekday >= 5:return Falsefor s, e in LOW_PEAK["peak"]:if s <= ts.hour < e:return Truereturn Falsedef submit(job, ts, weekday):job.tier = "realtime" if job.sla_ms else "batch"if job.tier == "batch":job.run_at = next_off_peak(ts, weekday) # defer to the nearest off-peakenqueue(job)
Engineering-wise, three more things are needed: first, idempotency and resume-from-checkpoint to avoid duplicate billing during deferrals; second, timeout and fallback policies that drop back to peak with limited concurrency when the off-peak window is full; third, budget guardrails that set daily or per-project token caps and alerts so runaway batch jobs do not inflate the bill.
7. Timezones and Globalization: An Easy-to-Miss Detail
Peak and off-peak are divided uniformly by the provider’s timezone, which creates a natural price gap for cross-region teams: when the provider is in its overnight off-peak, daytime in another timezone falls into the cheap band, so overseas developers effectively get a discount automatically. Conversely, a cross-region team that leaves peak tasks in the provider’s daytime pays the highest unit price. In multi-region deployments, treat “timezone position” as a cost variable on par with the cache hit rate in capacity planning, rather than discovering it after the fact on the bill.
8. The Capacity Signal Behind the Price
A short-term price change is usually not just a financial move but a capacity scheduling signal. When peak prices rise, the common explanation is that price is used to suppress inference demand and free up cards for training jobs; making weekends off-peak all day means giving up, at the margin, the option of using these resources for training or on-call coverage on weekends. Combined with real factors such as service fluctuations on weekends in the past and the relatively high marginal cost of keeping staff on maintenance duty, this adjustment is logically consistent: pricing idle capacity openly is better than letting it spin idle.
The takeaway for consumers is that price structures shift with capacity strategy, so do not hardcode your cost model in the architecture. Make unit prices, peak/off-peak windows, and cache hit rates configuration items, and pair them with monitoring, alerts, and bill attribution, so costs stay controllable across multiple rounds of price changes.
9. Action Checklist
- Review the last 30 days of calls, tag workloads by deferability, and quantify the share of migratable tokens;
- Plug real hit rates and input/output ratios into the script above to calculate daily and monthly savings;
- Build a tiered queue with off-peak release, and start by migrating the lowest-risk jobs such as index building and evaluation;
- Make unit prices and time windows configurable, and wire in monitoring, alerts, and per-project bill attribution;
- Reserve peak capacity and fallback plans for real-time pipelines, so saving money does not come at the cost of SLA.
In one sentence: time-of-use billing pushes compute supply and demand from the back office to the front, and cheap weekends are not a giveaway but an honest disclosure of capacity utilization. What really determines your bill is not how high or low the unit price is, but how much of your workload is schedulable.
