Why Your Prepaid Credits Never Run Out: How AI Coding Tool Billing Really Works
This article breaks down why high prepaid credit allocations on AI coding tools are hard to exhaust. It explains that credits are denominated at retail token prices rather than the platform's procurement cost, that layered rate limits (short-window, weekly, and monthly caps) are shared across models, and that campaign periods often misalign with billing cycles. It also covers the breakage-based pricing logic behind such promotions and offers practical advice on estimating usable capacity, leveraging prompt caching, controlling output length, aligning tasks with rate-limit windows, and building local token metering.
1. The Starting Point: Why a “$500 Credit” Is an Accounting Concept
Anyone who has worked on prepaid cards does not react to “pay $10, get $500 in credit” by calculating the discount. Their first instinct is to read the deduction rules. The reason is simple: in the prepaid card industry, face value and usable balance have never been the same thing. Face value is the number printed on the card; usable balance depends on clearing rules, expiration, per-transaction and daily cumulative limits, and how merchants recognize redemption.
The high-credit subscription promotions from AI coding tools (the AI coding assistants and agent-style development tools commonly discussed today) are structurally the same. To judge whether such an offer is genuinely in a class of its own, you need to separate three things: what the accounting unit is, where the gates are, and who bears the cost. The core claim is that the number 500 looks exaggerated mainly because of the platform’s custom credit rules and campaign period design, not because model inference costs suddenly dropped. That claim holds up technically, and the layers below unpack it.
2. Layer One: Accounting Uses Retail Price, Not Procurement Price
These platforms typically set a separate periodic credit cap for each model. Every time a user issues a request, the platform converts it into a monetary amount using the token unit price the platform lists for that model, and deducts it from the credit pool. The key point is that this unit price is often identical to the model provider’s public API retail price.
Take the common pricing structure of mainstream large models as an example. Billing generally has three dimensions: input tokens, cache-hit tokens, and output tokens. The cache-hit unit price is significantly lower than regular input, and output is the most expensive. An illustrative price table structure looks like this (values are for format demonstration only, not real quotes):
model input/1M cache_hit/1M output/1Msome-model-x 1.40 0.26 4.40
So the deduction formula for a single call can be written as:
charge = (in_tokens * p_in+ cache_tokens * p_cache+ out_tokens * p_out) / 1_000_000
This means the credit pool records “book spending settled at retail price,” which has nothing to do with the real price the platform pays for compute. The publicly known industry practice is that most models’ credit backing comes from volume discounts, reserved compute capacity under long-term contracts, and inference-side optimizations (batching, cache reuse, quantization, speculative decoding, and so on). So “$500” is more like the face value printed on a stored-value card: the denomination is defined by the issuer, and the redemption cost is accounted for separately by the issuer.
The direct takeaway for developers: when you see a credit number, first confirm which price it is accounted at. If it is accounted at retail price, then the “real value” of the credit depends on the platform’s actual procurement and scheduling efficiency, and users cannot infer it from the number itself.
3. Layer Two: Multiple Gates Determine the Real Ceiling
The main reason a high denomination goes unused is not price but the rate-limiting dimensions. These platforms generally stack three layers of gates:
- Short-window gate: for example, at most 20% of the monthly credit within any 5-hour window;
- Weekly gate: at most 50% within a calendar week, reset at a fixed time each week (which often lands on Monday morning after timezone conversion);
- Monthly total gate: the outermost periodic total.
The three are in an “AND” relationship, taking the minimum. Pseudocode makes it clearer:
def can_consume(month_used, week_used, window_used, cost):month_limit = MONTH_TOTALweek_limit = 0.50 * month_limitwindow_limit = 0.20 * month_limitreturn (month_used + cost <= month_limitand week_used + cost <= week_limitand window_used + cost <= window_limit)
Two easily overlooked engineering details matter here.
First, percentage gates are usually shared across models. If the weekly gate is calculated as “50% of the monthly credit” and you have already consumed 30% of the monthly credit with other models in the first two days of this week, then only 20% remains available this week, regardless of which model you use. In other words, the credit is not “500 per model,” but a combination of “shared pool plus per-model cap.”
Second, the short-window gate flattens the peak. A 20% allowance per 5 hours means that even if the weekly allowance is sufficient, you need to keep long tasks running across multiple non-overlapping windows to reach the weekly ceiling. For fragmented workloads like interactive completion, the short window is barely a constraint; for long-running unattended agent tasks, the short window is the real ceiling.
4. Layer Three: Misalignment Between Campaign Period and Billing Cycle
The most valuable observation is the overlap between the campaign’s start and end times and the billing week. If a high-credit campaign both starts and ends within the same billing week (for example, running from Tuesday through Sunday), then the weekly gate hard-caps the campaign’s usable amount at half the monthly credit. Adding the short-window gate lowers the theoretical ceiling further.
This kind of misalignment is common in practice and can be abstracted into a general conclusion: the actual value of a limited-time campaign = min(credit increment within the campaign duration, remaining untriggered periodic gate allowance, accumulable amount within short windows). To evaluate any limited-time credit campaign, first map the campaign interval onto the platform’s billing cycle boundaries, then subtract the portion already consumed during the same period.
5. Layer Four: The Breakage Effect, a Pricing Fundamental from the Prepaid Industry
Stored-value cards, annual gym memberships, and mobile phone plans all share one logic: pricing is based on the “average actual redemption rate,” and the larger the denomination, the higher the proportion of people who never use it up. Subscription tools work the same way—only a minority of users actually run long tasks to fill multiple windows every day, and for most people actual usage barely changes after the credit is increased.
So raising the credit by tens of times concentrates the marginal cost increase only on heavy users who were already blocked by rate limits. Trading this controllable cost for a week of word-of-mouth and trial conversion is worthwhile under a customer acquisition cost framework. This is also the key to judging whether such campaigns are sustainable: it is not charity, but treating “unredeemed credit” as a marketing budget.
6. Practical Advice for Developers
- Calculate the gates first, then the unit price. Write the monthly, weekly, and short-window caps as configuration items and estimate usable consumption locally.
- Trade cache for credit. Stable prefixes (system prompts, repository context, long file headers) should hit the cache, and the cache unit price is usually only a small fraction of regular input.
- Control output length. Output is the most expensive, and verbose explanations and repeated generation are the main drains on credit.
- Shard tasks to align with windows. Slice long tasks along short-window boundaries to avoid idling after a single window hits its cap.
- Build local metering. Use logging services and monitoring alerts to build your own token metering dashboard, instrumenting input, cache hits, and output separately for each call, so you can pinpoint the real source of credit consumption.
# Minimal metering instrumentation examplerecord = {"ts": now(), "model": name,"in": n_in, "cache": n_cache, "out": n_out,"cost": estimate_cost(n_in, n_cache, n_out, price_table[name])}emit_metric("token_cost", record["cost"], tags={"model": name})
7. Conclusion
“A small subscription in exchange for a large credit allocation” is not a cost miracle, but the combined result of three mechanisms: a credit pool accounted at retail price, multi-layer periodic gates shared across models, and breakage-based pricing that relies on a low redemption rate. Whether the campaign period aligns with the billing cycle often determines how much you can actually use more than the unit price does. For developers, the rational approach is to schedule the credit as a bounded shared resource, and use caching, output control, and local metering to convert as much book credit as possible into real output. For product designers on the platform side, this structure also points to a general principle—the marketing expression of credit and the rate-limiting rules must be designed together, otherwise a gap between user expectations and actual experience is inevitable.
