Inside Prepaid LLM Credit Systems: Pricing Units, Three-Tier Rate Limits, and Breakage

    This article explains how prepaid credits for LLM coding assistants work. It covers token-based pricing units, the three-tier rate limit structure (5-hour, weekly, and monthly caps), and how unused balances, known as breakage, support the provider's economics. It also gives developers a method for estimating the real value of a bonus credit offer.

    Promotions that offer a few hundred dollars in credits for a small top-up have become common among LLM coding assistant services. Viewed from an engineering and business perspective, these numbers do not simply reflect a discount. They come from a carefully designed system for credit accounting and rate control. This article examines three key mechanisms that appear in common industry designs: pricing basis, rate gates, and breakage. Once you understand these three layers, you can work out what a claim like “pay $10, receive 500 credits” actually means.

    1. Pricing Basis: Credit Face Value Is Not Cost

    The first concept to clarify is that a “dollar credit” in a promotion is an accounting unit. It does not represent the platform’s real resource cost.

    A common industry practice is for the platform to set a token-based list price for each model it offers. These prices usually match the public retail API prices of the model provider. For example, a model might charge one price per million input tokens, a lower price for cache hits, and a higher price for output tokens. Each time a user makes a call, the system multiplies the token usage by these list prices, converts the result into “dollars,” and deducts that amount from the credit balance. This works much like the face value printed on a gift card. The face value reflects the retail price basis, not the issuer’s purchase cost.

    The platform’s real cost structure is a separate ledger. The cost of LLM inference depends largely on how compute is acquired. Pre-committed GPU capacity, bulk discount agreements with upstream model providers, and higher resource utilization through request scheduling can all significantly lower the marginal cost of each call. As a result, the actual resource spending behind “500 dollars in credits” may be far below the face value. This gap gives the platform room to advertise large credit amounts.

    For developers, the right way to evaluate these credits is to treat the face value as “the volume of service you can consume at retail API prices.” Then compare that volume with your actual usage pattern. Do not treat the credits as cash equivalent.

    2. Rate Gates: Credits Are Not Released All at Once

    The second mechanism, rate limiting, matters more than the pricing basis. Prepaid credit services almost never make the full balance available immediately after a top-up. Instead, they set consumption limits across several overlapping sliding windows. A typical three-level gate structure looks like this:

    • Short-window gate: For example, no more than 20% of the monthly credit may be consumed in any 5-hour window. To use the full credit, a user must keep usage steady across multiple time windows. A single burst of calls will be throttled.
    • Weekly gate: For example, no more than 50% of the monthly credit may be consumed in each calendar week. The gate resets at a fixed time every week.
    • Monthly total cap: The outermost limit is the total monthly credit. It applies only if the two inner gates have not already been reached.

    The engineering purpose of this structure is clear. It smooths the consumption curve and prevents a small number of heavy users from monopolizing shared compute, which protects overall service quality. From the platform’s capacity planning perspective, the three gates shape unpredictable traffic bursts into a steady, predictable flow.

    When these gates overlap with a time-limited promotion, the result is worth examining. Suppose a high-credit promotion lasts only one week and falls entirely within a single billing week. Then, regardless of how high the nominal monthly credit is raised, the weekly gate caps the usable amount for that week at 50%. With 500 dollars in credits, the real ceiling is 250 dollars. The 5-hour gate adds another limit of 20% per window, or 100 dollars. To approach the weekly ceiling, a user would need to sustain high usage across at least three 5-hour windows.

    Another detail is often overlooked. These percentage-based gates are usually shared across all models. If a user has already spent 30% of the monthly credit on other models earlier in the week, only 20% of the weekly allowance remains for the target model. Gates are isolated by account, not by model. This point is easy to miscalculate in practice.

    3. Breakage: The Core Business Model of Prepaid Services

    The third layer is the most classic part of the prepaid business model: breakage. This follows the same logic as gift cards and prepaid stored-value cards. Users pay the face value, but most of them cannot, and do not, use the full amount.

    Heavy users are always a minority. Most users consume far less than the theoretical maximum the gates allow. Several factors contribute. Usage frequency is irregular. Promotion windows often do not line up with a user’s work schedule. The three-level gates also raise the behavioral threshold for using up the credit. When setting prices, the platform relies on the expected consumption of its whole user base, not the theoretical maximum of any single user. As long as the average breakage rate is high enough, offering a face value far above actual cost is a reliable source of profit.

    A simplified model of this logic looks like this:

    1. # Theoretical consumable credit
    2. weekly_cap = monthly_quota * 0.5 # weekly gate
    3. window_cap = monthly_quota * 0.2 # 5-hour gate
    4. windows_needed = math.ceil(weekly_cap / window_cap)
    5. # Expected platform cost ≈ users × expected actual usage × real unit cost
    6. # Expected actual usage << theoretical maximum; the difference is breakage
    7. expected_cost = users * expected_usage * real_unit_cost

    Working backward through this logic gives developers a method for self-assessment. First, estimate how many tokens you actually use each day. Historical API bills or local agent logs can provide this figure. Then, check how much the gates allow you to consume during the promotion period. This calculation shows the real value of the promotion, so you are not guided by the face value number.

    4. Practical Recommendations and Summary

    To evaluate a high-credit promotion, follow this approach:

    1. Convert the units: Confirm which price table the credits are denominated in, and convert the balance into the token volume for the models you use most.
    2. Check the gates: Compare the short-window, weekly, and monthly limits with the promotion period. Calculate the theoretical ceiling.
    3. Match your usage: Use your historical usage data to determine which consumption percentile you fall into. Avoid paying for credits you will not use.

    At a broader level, this combination of credits and gates reflects the maturing engineering of inference services. Fine-grained rate limiting protects the stability of the resource pool, and separating the accounting unit from the marketing face value keeps the real cost hidden. In enterprise settings, the same approach applies to quota management for internal LLM gateways. Multi-level rate limits and price-based accounting help control budgets while keeping scheduling fair. On platforms such as Baidu AI Cloud, which offer LLM services, enterprise users can also build similar internal control systems on top of general-purpose API gateway and quota management capabilities. Combining cost visibility with traffic shaping supports sustainable investment in LLM applications.

    Those who understand the rules are the ones who can use them well.