Blog
/
Guides

Prorated Billing for AI Products: What It Is & How to Implement It

Prorated billing for AI products fails when the billing event and the entitlement update run in separate systems. Here's what to build and in what order.

Sara NelissenSara Nelissen
Written by
Sara Nelissen
Last updated
July 13, 2026
read time
11
minutes
Prorated billing for AI products fails when the billing event and the entitlement update run in separate systems. Here's what to build and in what order.

Table of contents

Every engineering team solves prorated billing twice.

The first time you wire up the webhook, calculate the daily rate, and charge the difference. It works. The second time, a customer upgrades mid-cycle and immediately hits a credit limit that no longer applies.

That's when the entitlement layer enters the picture, and the first solution turns out to have covered only half the problem.

What is prorated billing?

Prorated billing charges customers only for the portion of a billing period they actually use, rather than the full cycle.

When a plan change happens mid-cycle, neither a full charge nor no charge accurately reflects what the customer received. Proration calculates the exact amount based on the time remaining in the billing period.

The core formula is:

(Days used ÷ Days in billing cycle) × Full period price = Prorated charge

Every plan change has two sides:

  • A prorated charge for time on the new plan
  • A prorated credit for unused time on the old plan

Depending on the product's billing policy, these adjustments can be applied immediately or deferred to the next invoice.

Here's a simple example. A customer upgrades from a $120/month plan to a $240/month plan on day 10 of a 30-day billing cycle.

Item Calculation Amount
Current plan Monthly price $120
New plan Monthly price $240
Days remaining 30 – 10 20 days
Prorated credit (old plan) (20 ÷ 30) × $120 $80 credit
Prorated charge (new plan) (20 ÷ 30) × $240 $160 charge
Net charge at upgrade $160 – $80 $80 charge
Next billing cycle Full monthly price $240/month

In this example, the customer receives an $80 credit for the unused portion of the old plan and a $160 charge for the remaining time on the new plan. The difference is an $80 upgrade charge, and the next billing cycle begins at the full $240/month rate.

Proration is not always applied immediately. Some products defer plan changes until the next billing cycle. While that simplifies billing, it can create friction when feature access or credit allocations change with the plan.

In AI products, customers often expect new limits, credits, or model access to become available as soon as they upgrade.

Common proration scenarios

Proration applies any time a billing period and a service delivery period don't perfectly overlap. These are the scenarios where it comes up most often in subscription and AI products.

Scenario What proration produces
Mid-cycle signup Charge for remaining days in the current cycle only
Plan upgrade Credit for unused old plan + charge for time on new plan
Plan downgrade Credit for unused old plan, applied to next invoice, or refunded
Seat addition Charge for remaining days at the per-seat rate
Cancellation with refund Credit for unused time remaining in the current period
Trial to paid conversion Paid period aligned to the billing cycle from the conversion date

Daily vs. monthly proration is a policy decision that affects precision.

  • Daily proration divides the plan price by the number of days in the billing period.
  • Monthly proration treats each month as a single unit. Daily is more accurate. Monthly is simpler.

The difference becomes meaningful when plan prices are high, and changes happen frequently.

Why prorated billing is different for AI products

Traditional subscription proration is a billing calculation. A customer changes plans, the system calculates prorated charges and credits, and the invoice reflects the result.

AI products add a second requirement: entitlement updates. When a plan changes, billing and access have to update together.

For example, if a customer upgrades from a 50,000-credit plan to a 200,000-credit plan, two things need to happen at the same time:

These systems often operate independently. Without coordination, customers can pay for a new plan before they can actually use it.

Credit wallet behavior during plan changes

When a customer upgrades mid-cycle, the product needs a clear policy for handling existing credits.

Approach What happens
Keep existing balance + prorated increment The customer keeps remaining credits and receives a prorated share of the new allocation for the rest of the billing period.
Reset to a prorated allocation The system recalculates the balance based on the new plan and remaining days, regardless of prior usage.
Grant the full new allocation immediately The customer receives the entire new credit allocation at upgrade time with no credit-side proration.

No single approach is correct for every product. The right choice depends on the credit model and customer expectations. What matters is having a clear policy and enforcing it immediately when the plan change occurs.

Entitlement updates cannot wait

Usage limits need to update before the next request.

If the new plan includes:

  • Higher token limits
  • Additional credits
  • Access to premium models
  • Previously gated features

Those entitlements need to become available immediately. A billing system can calculate the correct charge, but delayed entitlement updates create a poor customer experience because customers have already paid for capabilities they still cannot access.

Enterprise allocations add another layer

Enterprise plans often distribute budgets across teams, departments, and agents.

When those allocations change mid-cycle, the system has to process:

  1. Plan-level proration
  2. Credit redistribution across teams
  3. Updated limits and budgets for downstream users

Each step needs to settle before the next request executes. Otherwise, different parts of the organization can see different credit states at the same time, creating inconsistent enforcement and unpredictable usage behavior.

How to calculate prorated charges for AI products

The formula stays the same across scenarios. The complexity comes from what is being prorated: the subscription charge, the credit allocation, or both.

Scenario 1: Subscription plan with monthly credits

A customer is on a $99/month plan that includes 50,000 credits. They upgrade to a $299/month plan with 200,000 credits on day 12 of a 30-day billing cycle.

Item Calculation Amount
Days remaining 30 – 12 18 days
Prorated credit (old plan) (18 ÷ 30) × $99 $59.40
Prorated charge (new plan) (18 ÷ 30) × $299 $179.40
Net charge at upgrade $179.40 – $59.40 $120.00
Credit allocation added (18 ÷ 30) × 200,000 120,000 credits

The customer pays $120.00 and receives 120,000 additional credits for the rest of the billing cycle. At renewal, they move to the full $299/month plan with the full 200,000-credit allocation.

Scenario 2: Per-seat AI platform

A team with 10 seats at $50 per seat per month adds 3 seats on day 20 of a 30-day billing cycle.

Item Calculation Amount
Days remaining 30 – 20 10 days
New seats added 3 seats
Prorated charge (10 ÷ 30) × 3 × $50 $50.00
Next billing cycle 13 × $50 $650/month

The billing adjustment is straightforward, but the entitlement change matters too. The three new users need access immediately when the seats are added.

Scenario 3: Hybrid plan with usage overages

A customer on a $200/month plan with 100,000 included tokens upgrades to a $400/month plan with 300,000 included tokens on day 15 of a 30-day billing cycle.

Item Calculation Amount
Days remaining 30 - 15 15 days
Prorated credit (old plan) (15 ÷ 30) × $200 $100.00
Prorated charge (new plan) (15 ÷ 30) × $400 $200.00
Net charge at upgrade $200.00 - $100.00 $100.00

A hybrid model introduces an extra consideration:

  • Overage usage already accumulated remains billed under the old plan's rates
  • The new token limit takes effect immediately
  • The new credit allocation applies only to the remaining days in the billing cycle

This is where billing and entitlement systems have to stay synchronized. The invoice adjustment and the new usage limits need to take effect together.

The 2-event problem: Why billing alone isn't enough

Every plan change triggers two separate events:

  1. A billing event that adjusts the charge
  2. An entitlement event that updates runtime access and usage state

Billing platforms are built for the first. They calculate prorated amounts, generate invoice line items, and collect payment. The second event requires a separate system responsible for keeping access, credits, and limits in sync with the customer's plan.

What the entitlement layer needs to update

A plan change can affect multiple pieces of runtime state at once:

  • Credit balances based on the chosen proration policy
  • Token limits and rate limits
  • Feature access and model access permissions
  • Team, department, or agent-level budgets

These updates need to reach the enforcement layer before the next request executes, not before the next invoice is generated.

Handling requests already in flight

Plan changes also create an edge case, where a request may already be running when the upgrade occurs.

The enforcement layer needs a defined policy for:

  • Settling the request under the previous entitlements
  • Applying the new entitlements immediately
  • Handling partial execution across both states

Without a clear policy, plan changes can produce inconsistent behavior for customers.

Keeping billing and entitlements aligned

The billing record and entitlement record need to stay synchronized.

For prepaid credits, that means:

  • Revenue balances in billing match available credit balances
  • Credit grants and deductions remain auditable
  • Accounting records and runtime state agree at the transaction level

Any mismatch creates reconciliation work later.

Why this becomes an infrastructure problem

Without a shared source of truth connecting billing and entitlements, every pricing change starts leaking into application code. New plans, limits, and credit models often require engineering work before they can go live.

Some teams avoid that by moving plan definitions into a product catalog and entitlement system. Webflow works with Stigg to manage packaging updates through a centralized product catalog, and plan changes take effect without modifying application code.

How to implement prorated billing for AI products

Implementing prorated billing for AI products requires clear policies for credits, entitlements, and revenue recognition so billing and access stay synchronized when plans change.

1. Define the proration policy before building anything

The first decisions are:

  • Daily or monthly proration units
  • Immediate or deferred plan changes
  • Credit wallet behavior during upgrades and downgrades

Undocumented proration rules create inconsistencies that become difficult to trace later, especially when different billing paths exist for self-serve and enterprise customers.

Choose a credit wallet approach and design the data model around it. An incremental allocation model, a balance reset model, and a full-grant model all require different handling of credit state and reconciliation.

2. Separate billing events from entitlement events

Billing and entitlement updates share the same trigger, but they should operate independently.

  • Billing calculates charges, credits, and invoices
  • Entitlements update access, limits, and credit balances

A billing failure should not leave entitlements partially updated, and an entitlement failure should not block invoice processing. Each workflow needs its own error handling and recovery path.

3. Update entitlements in real time

Credit allocations, token limits, and feature access should update before the customer's next request reaches the application.

Delayed provisioning creates a poor experience because customers can pay for an upgraded plan while still operating under the previous plan's limits.

4. Make invoice calculations transparent

Prorated invoices should clearly show:

  • Credit for unused time on the previous plan
  • Charge for remaining time on the new plan
  • Net amount due

Clear invoice line items reduce customer confusion and make reconciliation easier for finance teams.

5. Handle revenue recognition correctly

AI credit plans introduce deferred revenue requirements. When customers receive credits, that revenue is typically recognized as credits are consumed.

The entitlement system should keep an immutable credit ledger so each deduction can be traced back to a specific transaction. This keeps consumed credits, recognized revenue, and accounting records aligned at the transaction level.

Prorated billing as a product engineering problem

Prorated billing looks like a finance problem on the surface. For AI products, the bigger challenge is keeping credits, entitlements, and access controls synchronized when plans change.

The billing calculation is usually the easy part. The difficulty comes from everything that has to happen alongside it:

  • Credit allocation policies: The system needs a clear policy for how existing balances change during upgrades and downgrades.
  • Revenue auditability: Credit grants and consumption need a transaction-level audit trail for reconciliation and revenue recognition.
  • Enterprise allocations: Mid-cycle plan changes often require budgets and limits to be redistributed across teams, departments, and agents.

These are infrastructure concerns rather than billing calculations. The systems that process charges and the systems that govern access need to stay aligned in real time.

Getting the policy right before implementation, and treating billing events and entitlement events as separate workflows, is often what determines whether plan changes work smoothly in production or turn into ongoing support issues.

When prorated billing becomes a production concern

Mid-cycle plan changes create a synchronization requirement that standard billing tools weren't designed for.

The billing event settles the financial side. The entitlement update applies the new credit allocation and usage limits. At production volume, both events need to resolve in the same operation.

Stigg is the usage runtime for AI products. Entitlements, credits, usage limits, and spend governance are enforced synchronously in the request path, including at the moment a prorated plan change takes effect.

Stigg handles the entitlement side of prorated billing, including:

  • Real-time plan change propagation that updates credit allocations, token limits, and feature access before the customer's next request runs
  • Ledger-based credit management that applies the prorated allocation policy accurately across concurrent sessions
  • Multi-tenant budget controls for per-team, per-department, and per-agent allocation changes triggered mid-cycle
  • Sidecar deployment (BYOC) that keeps enforcement running inside your own infrastructure, independent of upstream availability. Cache hits resolve immediately from local Redis; misses fall back to ~100ms via the Edge API, with a configurable timeout to keep upstream latency out of the request path.
  • A single source of truth for the product catalog, so plan changes move through configuration rather than code deployments

Stigg works alongside your existing billing stack and handles the entitlement layer that billing tools weren't designed for. See how Stigg’s entitlement layer handles prorated plan changes without replacing the billing stack.

FAQs

1. When should a company use prorated billing?

Most companies should use prorated billing when customers upgrade, downgrade, or add seats mid-cycle. Prorated billing checks that customers pay only for the portion of the service they actually use and prevents overcharging or undercharging.

2. What happens to credit balances when a customer changes plans mid-cycle?

Credit balances can be adjusted in several ways depending on the product's policy. A system may add a prorated allocation, reset the balance to a prorated amount, or grant the full new allocation immediately. The entitlement layer should apply the chosen policy as soon as the plan change occurs.

3. What is the difference between prorated billing and deferred billing?

The main difference between prorated billing and deferred billing is when the plan change takes effect. Prorated billing applies the change immediately and adjusts charges based on the remaining days in the cycle. Deferred billing delays the change until the next billing period begins.

4. How does prorated billing work for AI credits and usage limits?

Prorated billing for AI products requires both a billing update and an entitlement update. The billing system adjusts the charge, while the entitlement system updates credits, limits, and access before the customer's next request runs.

5. How does prorated billing affect revenue recognition for prepaid credits?

Prorated billing can change the deferred revenue balance associated with prepaid credits. Under ASC 606, revenue is generally recognized as credits are consumed, which requires a transaction-level record of credit grants and usage.

Latest news.

One email per month.
From engineers, for engineers.

Thank you! Your submission has been received.
Oops! Something went wrong while submitting the form.