LLM Inference Peak-Valley Pricing: Weekend Valley Billing and Scheduling Strategies
This article analyzes a pricing change in which LLM inference services keep weekday peak-valley billing but apply valley pricing all weekend. It explains how this expands the feasible scheduling window, provides a token-cost model covering cache hits, input/output mix, and peak-versus-valley rates, and uses sample calculations to show cost sensitivity. It then outlines practical strategies—offline batch weekend scheduling, online service tiering, caching and prewarming, queue smoothing and elastic execution, and budget monitoring—along with risks, anti-patterns, and a rollout roadmap.
1. Rule Abstraction: Price Signals Extend from Weekday Time-of-Use to Full-Week Time-of-Use
Recently, some LLM inference services have adjusted peak-valley billing rules. The change can be abstracted as follows: weekday peak-valley time-of-use billing continues, while weekends are billed at the valley price all day. At first glance, this is only a price-sheet adjustment. In practice, it changes the feasible region for enterprise load scheduling: previously, valley windows were mainly available at night on weekdays; now the two weekend days form a continuous low-cost capacity pool. For inference businesses whose primary cost is token consumption, price signals feed directly into task orchestration, capacity planning, and budget control.
From a resource supply-demand perspective, peak-valley pricing uses price to shape request distribution. Online requests cluster during weekday daytime, when unit prices are higher; nighttime and weekends generally have lower load and lower unit prices. Applying valley pricing all weekend encourages enterprises to move non-real-time, deferrable, and rerunnable workloads to weekends, reducing resource contention during weekday peak hours. For developers, the key question is not whether people should work on weekends, but whether automated scheduling can turn price signals into engineering policy: which tasks can be delayed, how long the delay window should be, how failed tasks are retried, how online services maintain SLAs, and how budgets are allocated and alerted.
2. Cost Model: Quantify First, Then Schedule
To evaluate the impact of peak-valley pricing, build a unified cost model. Let daily token volume be T, cache hit rate be h, input share be ri, output share be ro, with ri + ro = 1; let the unit prices for cached input, uncached input, and output be p_hit, p_miss, and p_out, respectively. The cost can be written as:
C = T × ri × h × p_hit + T × ri × (1 - h) × p_miss + T × ro × p_out
Substitute the corresponding peak and valley unit prices to obtain the cost of the same workload in different periods. If workload is migrated from peak to valley, the theoretical benefit is Δ = C_peak - C_valley. The actual benefit must also deduct queuing delay, retry amplification, cold start, and operational costs caused by the migration.
The following sample parameters illustrate the method only; they do not represent any vendor’s actual pricing. Assume daily token volume is 10 billion, cache hit rate is 95%, and unit prices are in CNY per million tokens. For lightweight model tier A, valley prices are: cached input 0.05, uncached input 1.5, output 4.5; peak prices are 0.10, 3.0, and 9.0. For high-performance model tier B, valley prices are: cached input 0.15, uncached input 4.5, output 13.5; peak prices are 0.30, 9.0, and 27.0.
When input accounts for 95% and output for 5%, cached input is 9.025 billion tokens, uncached input is 0.475 billion tokens, and output is 0.5 billion tokens. For model A, the valley cost is approximately CNY 3,414, the peak cost is approximately CNY 6,828, and the difference is approximately CNY 3,414. For model B, the valley cost is approximately CNY 10,241, the peak cost is approximately CNY 20,483, and the difference is approximately CNY 10,242. When input accounts for 80% and output for 20%, cached input is 7.6 billion tokens, uncached input is 0.4 billion tokens, and output is 2 billion tokens. For model A, the valley cost is approximately CNY 9,980, the peak cost is approximately CNY 19,960, and the difference is approximately CNY 9,980. For model B, the valley cost is approximately CNY 29,940, the peak cost is approximately CNY 59,880, and the difference is approximately CNY 29,940.
| Model tier | Input/output mix | Valley cost | Peak cost | Peak-valley difference |
|---|---|---|---|---|
| Lightweight tier A | 95% / 5% | ~CNY 3,414 | ~CNY 6,828 | ~CNY 3,414 |
| Lightweight tier A | 80% / 20% | ~CNY 9,980 | ~CNY 19,960 | ~CNY 9,980 |
| High-performance tier B | 95% / 5% | ~CNY 10,241 | ~CNY 20,483 | ~CNY 10,242 |
| High-performance tier B | 80% / 20% | ~CNY 29,940 | ~CNY 59,880 | ~CNY 29,940 |
These calculations reveal two key points. First, the higher the output share, the more visible the peak-valley difference, because output unit prices are usually higher than input prices and peak-valley multipliers amplify the cost. Second, cache hit rate significantly affects input-side cost, but if the output share is high, output fees may still dominate total cost. Therefore, enterprises should not look only at “total token volume.” They should split input, output, cache hit rate, and retry rate by business line and conduct sensitivity analysis. The direct implication of all-day weekend valley pricing is that if the same workload can be moved from weekday peak hours to the weekend, it can theoretically obtain pricing close to the valley rate; however, concentrated weekend migration can also cause capacity contention and queuing delay, so rate limiting and staggered scheduling are needed.
3. Scheduling Strategy: Turn Price Signals into Executable Engineering
First, move offline batch processing to weekends. Non-real-time tasks such as data cleaning, index rebuilding, vectorization, model evaluation, report generation, and log archiving are usually deferrable and rerunnable, making them suitable for weekend valley windows. Implementation requires task queues, idempotency keys, failure retries, dependency management, and completion deadlines. For example, set allowed windows and deadlines for tasks; when a deadline is exceeded, automatically raise priority or fall back to weekday valley hours to avoid Monday business delays.
Second, tier online services. Core online requests should maintain weekday availability and SLAs. They should not be simply capped on weekdays and opened up on weekends to reduce cost, as this would cause user experience fluctuations. A more reasonable approach is to classify by business tier: keep peak capacity for core paths, while non-core functions are degraded, queued, or delayed during peak hours, and batch tasks are moved to weekends. Degradation policies must be observable, including P95 latency, error rate, queue length, and degradation ratio.
Third, improve caching and prewarming. Increasing cache hit rate reduces uncached input costs. Design stable cache keys, versioned caches, and reasonable TTLs, and prewarm high-frequency context before weekend batch processing. For highly repetitive retrieval-augmented, evaluation, and reporting tasks, cache reuse is often more effective than simply shifting time windows.
Fourth, smooth queues and execute elastically. Use message queues to buffer batch requests, use container platforms for elastic scaling of batch execution, and set maximum concurrency, token-bucket rate limiting, and failure isolation. All-day weekend valley pricing may attract a large volume of tasks submitted at the same time; without rate limiting, queue backlog will erode the cost benefit. Set quotas by tenant, model tier, and task class, together with budget alerts and cost tags.
scheduling_policy:timezone: Asia/Shanghaiwindows:weekday_peak: {days: [Mon, Tue, Wed, Thu, Fri], hours: ["09:00-18:00"], class: online}weekday_valley: {days: [Mon, Tue, Wed, Thu, Fri], hours: ["18:00-24:00", "00:00-09:00"], class: batch}weekend_valley: {days: [Sat, Sun], hours: ["00:00-24:00"], class: batch}jobs:- name: nightly-evalclass: batchallowed_windows: [weekday_valley, weekend_valley]max_concurrency: 8retry: 3idempotent: true- name: report-rebuildclass: batchallowed_windows: [weekend_valley]deadline: "Mon 08:00"budget_alert: trueonline:qps_limit_peak: 100degrade_threshold_ms: 800queue_max: 5000
Fifth, implement budgeting and monitoring. Apply cost tags by business line, tenant, and model tier, and separately track peak-valley token volume, cache hit rate, output share, and unit business cost. Set daily, weekly, and peak-hour budget alerts, and intercept abnormal retries or output inflation promptly. General cloud infrastructure such as log services, monitoring and alerting, message queues, container platforms, and object storage can be used for queue buffering, elastic execution, result archiving, and auditing; specific selection should be evaluated against the existing architecture and compliance requirements.
4. Risks and Anti-Patterns
Beware of the anti-pattern of forcing weekend overtime to reduce cost. Price optimization should be achieved through automated scheduling, not manual shift work; otherwise, labor costs, compliance risks, and team stability may exceed the inference cost savings. Also avoid over-limiting weekday capacity, which can degrade online experience, and avoid concentrated weekend task submission, which can cause capacity contention. The cost model should not be static: cache hit rate, output ratio, retry rate, and business structure all change, so weekly reviews and sensitivity analysis are needed. For batch processing that spans weekends, also pay attention to credential rotation, least privilege, audit logs, and data freshness.
5. Rollout Roadmap and Conclusion
A recommended rollout follows “inventory—modeling—pilot—rollout—review.” First, inventory task categories, SLAs, token structure, and cost tags. Then build daily and weekly peak-valley cost models. Select non-core offline tasks for a weekend migration pilot and observe queue time, failure rate, and cost. Next, automate scheduling, budget gates, and degradation policies. Finally, continuously optimize using metrics such as unit business cost, cache hit rate, P95 latency, batch completion time, and peak-to-valley migration ratio. All-day weekend valley pricing is not simply “opening up volume on weekends”; it means incorporating price signals into capacity planning and task orchestration. Only by combining offline batch processing, online tiering, cache optimization, queue smoothing, and budget monitoring can enterprises achieve a sustainable balance among cost, timeliness, and stability.
