LLM Tiered Pricing: A Practical Guide to Cutting Costs with Completion Windows
This article explains a shift in LLM billing from synchronous service-tier discounts to asynchronous "completion window" pricing, where longer time bounds unlock larger discounts. It breaks down why completion windows reduce costs, how discounts apply to per-token unit prices rather than total bills, and outlines a five-step engineering migration from synchronous calls to background mode. It also covers stability, observability, common misconceptions, and the token-usage governance needed to actually lower your cost curve.
1. The Symptom: The Cheap Tier Disappeared, but Prices Didn’t Rise
A line of fine print in one cloud vendor’s model documentation is worth reading twice: starting with the new generation of flagship models, new models no longer support the previous “elastic low-price tier”—the usage that let you select a cheap channel via a service-level parameter in the request. The first reaction is usually: what happens to the batch jobs that relied on the cheap tier? Keep scrolling and you’ll find the capability hasn’t disappeared; it’s just been wrapped in a new layer. The asynchronous/background task interface now introduces a “completion window” parameter, letting you choose a shorter or longer window, where a longer window means a bigger discount.
Abstracted out, the industry is undergoing a migration in its billing model: from “service-tier discounts on synchronous requests” to “paying with latency for asynchronous tasks.” The former requires the caller to declare, at request time, that it can tolerate being throttled or queued, and the platform must do priority scheduling on the synchronous path—high complexity, unstable returns. The latter explicitly models “not being in a hurry” as a committable upper bound on time, so the platform can more confidently fill idle compute into it.
The conclusion: the nominal unit price hasn’t gone up, but the entry point for getting the low price has changed. If your existing code still hardcodes the old service-level values, upgrading the model will throw an invalid-parameter error directly—that’s the real risk.
2. How It Works: Why a Completion Window Buys a Discount
The core of background mode is turning “when you need the result” from an implicit expectation into an explicit contract. A shorter window (for example, 2 hours) typically corresponds to about a 30% discount, and a longer window (for example, 8 hours) to about a 40% discount. It is currently in public beta, available only for some models and some capabilities.
From the supply side, the discount comes from three recoverable costs:
- Peak shaving: Synchronous online requests concentrate in daytime peaks; background tasks can be deferred to off-peak troughs, lowering the fixed-asset amortization per unit of compute.
- Scheduling freedom: With a time bound, the scheduler can batch and merge requests, reuse prefix caches across requests, and pack long-tail requests into fuller batches; the throughput gain directly dilutes cost.
- Room for retries: Within the window, retries and migrations can be handled more calmly, without reserving large amounts of redundant capacity for “fail on timeout.”
From the demand side, the cost is also clear: you give up time certainty for the result. The window is an upper bound, not a guarantee; a task may complete at any moment within the window. So it suits offline feature computation, batch content moderation, log and ticket summarization, dataset labeling and cleaning, and offline evaluation runs; it does not belong on a user-facing path where people are waiting.
3. Price Structure: The Discount Applies to Unit Price, Not Total
Taking short context as an example (unit: USD per million tokens), the flagship tier is about 8 for input and 40 for output, dropping to about 4.8 and 24 under a long window; the next-flagship tier is about 2 for input and 10 for output, dropping to about 1.2 and 6 under a long window. Two patterns are visible:
- The discount is a linear markdown on the per-token unit price, not a spend-threshold coupon, and not a monthly package;
- Input and output drop by the same proportion, so the absolute savings in long-text scenarios are more pronounced.
This means the first-order question of cost optimization isn’t “which tier to pick,” but “first bring token usage down.” A 40% markdown on unit price is worth less than cutting useless context in half.
An illustrative cost-estimation logic:
def estimate(in_tok, out_tok, price):# price: (input_unit_price, output_unit_price) in USD per million tokensreturn in_tok / 1e6 * price[0] + out_tok / 1e6 * price[1]standard = (8.0, 40.0)windowed = (4.8, 24.0)print(estimate(1_000_000, 200_000, standard)) # 16.0print(estimate(1_000_000, 200_000, windowed)) # 9.6
4. Engineering Changes: Five Steps to Move a Synchronous Path to Background Mode
- Parameter abstraction: Don’t hardcode service-level or window values everywhere; consolidate them into a config center/environment variables for easier canary rollout and rollback.
- Separate submission from polling: Background interfaces usually return a task identifier, and a dedicated polling or callback component should converge the result, avoiding tying up business threads.
- Idempotency and deduplication: Use the business primary key as the idempotency key so retries don’t produce duplicate billing or duplicate writes.
- Land results in object storage: Don’t stuff large text results back into a database field; write them to object storage and keep only a reference, lowering bandwidth and storage costs.
- Timeout fallback: If the window is about to expire and the task still isn’t done, fall back to the synchronous standard tier or defer to the next batch, and emit metrics/alerts.
def submit(client, payload, window="8h", idem_key=None):return client.background.create(input=payload,completion_window=window, # upper time bound; longer is cheaperidempotency_key=idem_key,)def run_batch(client, tasks, window="8h"):for t in tasks:submit(client, t, window=window, idem_key=t["biz_id"])
5. Stability and Observability
The cheap tier naturally comes with longer queuing and looser latency guarantees, so three things must accompany it: metrics (submission volume, completion volume, in-window completion rate, average queue time, per-task token consumption), logs (request identifiers and business keys queryable in both directions, for reconciliation), and alerts (in-window completion rate dropping below threshold, abnormal unit-price spikes, surging retry rates). On the cost side, it’s advisable to tag by business line, aligning token usage and billing to teams, to avoid “unclaimed calls.”
If your overall architecture is already on Baidu AI Cloud, you can wire asynchronous task status and metrics into the log service and monitoring/alerting, use a message queue to decouple submission from convergence, and use object storage to carry large result bodies. These are all general capability categories and don’t depend on any proprietary interface.
6. Common Misconceptions
- Misconception 1: The discount means the total bill drops by 40%. Actual savings depend on input/output structure, retry rate, and rejection rate; long-output scenarios save more noticeably.
- Misconception 2: Every task can go into a long window. Once a user-perceivable path exceeds seconds, it’s unacceptable.
- Misconception 3: A public-beta capability can be treated as a stable contract. During beta, parameter values and the range of available models may change, so be sure to make it configurable with a compatibility layer.
- Misconception 4: Only adjusting the tier, without looking at context. Waste from redundant prompts and full-history re-injection is usually far larger than the tier discount.
7. Conclusion
The phrase “prices dropped substantially” needs a qualifier: it’s a unit-price drop under a specific entry point and a specific latency commitment, not a across-the-board drop for all scenarios. Three actions are genuinely valuable for developers: consolidate the service-level parameter into a configurable item, migrate offline-type workloads to background mode with a completion window, and make token-usage governance a routine engineering practice. Do these three things and the cost curve will actually move down, rather than passively absorbing a bill jump when you switch models.
