Pay-as-You-Go vs Monthly AI API Plans: A Break-Even Formula

Blog / Relays & gateways

Pay-as-You-Go vs Monthly AI API Plans: A Break-Even Formula

Pay-as-you-go or monthly plan? It comes down to one number: is your actual monthly usage reliably above "plan price ÷ pay-as-you-go unit price"? Above that line, the monthly plan is cheaper. Below it, or if your usage swings a lot, pay-as-you-go is the safer choice. This article turns that into a formula and three steps, then runs through a set of numbers that are explicitly labeled as an example.

What is the break-even formula?

Define:

  • P: monthly plan price (CNY/month)
  • Q: the quota included in the plan (expressed in a common unit, such as tokens or CU)
  • u: pay-as-you-go unit price (CNY per unit of quota)
  • U: the quota you actually used in a given month

Pay-as-you-go spend for the month is U × u. The monthly plan costs P regardless of U, but only covers up to Q.

So the break-even point is:

U* = P ÷ u

If U is greater than U*, the monthly plan is cheaper; if it is less than U*, pay-as-you-go is cheaper. One more constraint: U cannot exceed Q, otherwise you need to look at how overage is handled (covered below).

Another way to see it: convert Q to a pay-as-you-go price, Q × u. If that is clearly greater than P, the plan has room for a discount, but only if you can actually use it all. The ratio U ÷ Q is your "utilization", and whether a monthly plan pays off is really a question of whether utilization is high enough.

How do you work out your own number in three steps?

  1. Collect real usage for the past 2 to 3 months. Most services show usage in the console or on the bill. If yours does not, add up the usage fields in your own code. Input and output tokens usually have different prices, so record them separately; see How token billing works for the accounting.
  2. Convert usage to one unit and compute U.* If the plan and pay-as-you-go use different units (for example, the plan uses CU while the official API charges USD per million tokens), unify the units first, then divide.
  3. Look at the spread, not just the average. Plug in your lowest month and your highest month. If even the lowest month is above U*, the monthly plan clearly wins. If even the highest month is below U*, pay-as-you-go clearly wins. If you land in between, use the section on volatility below.

Worked example with AGI Plan's public numbers

The numbers below are an example. They only demonstrate the method and do not represent your actual usage. AGI Plan is a commercial partner of cdnping. It is used here only because its public numbers are complete; this is not a recommendation.

AGI Plan's published billing basis is: 1 CU equals 1,000 output tokens of the baseline model; pay-as-you-go is 1 CNY = 500 CU, with a 20 CNY minimum top-up; the Lite plan is 49 CNY/month.

On that basis, the pay-as-you-go unit price is u = 1 ÷ 500 = 0.002 CNY/CU. Then:

U* = 49 ÷ 0.002 = 24,500 CU

In other words, using 24,500 CU pay-as-you-go costs exactly 49 CNY. 24,500 CU is roughly 24.5 million baseline-model output tokens.

Note that this is only the break-even point, not Lite's quota. For how many CU Lite includes each month, check the AGI Plan pricing page; this article does not put a number on it for them. Once you have Q, decide as follows:

  • If your monthly usage is usually below 24,500 CU, pay-as-you-go costs less than 49 CNY and the monthly plan is not worth it.
  • If your monthly usage is consistently above 24,500 CU and does not exceed the plan quota Q, the monthly plan is cheaper.
  • If Q itself is smaller than 24,500 CU, the monthly plan has no "discount" at all, and what remains is convenience and a fixed budget.

Also, annual billing carries a 20% discount, which brings Lite to about 39.2 CNY/month. Substitute P = 39.2 and the break-even drops to about 19,600 CU. That assumes you are sure you will use it for the full year; otherwise count the months you skip.

What if your usage swings a lot?

Volatility is the biggest advantage of pay-as-you-go and the biggest risk of a monthly plan. A simple approach is to total both costs month by month: pure pay-as-you-go is U × u; the monthly plan is P, or, if the part above Q is billed pay-as-you-go, P + max(0, U − Q) × u. How overage is handled is governed by the provider's terms. Comparing half-year totals is closer to reality than staring at a single month.

Common patterns:

  • Project-based, in bursts: a few months are very high and the rest are near zero. Pay-as-you-go fits better; a monthly plan wastes money in idle months.
  • Using a coding tool every day: steady usage makes a monthly plan easier to budget.
  • Occasional batch jobs: use the monthly plan for day-to-day work and run batch jobs pay-as-you-go, provided the service supports both side by side. Check the official documentation.

How do you account for wasted balance and overage?

Each model has hidden costs that are easy to miss when comparing prices.

Pay-as-you-go:

  • Whether a prepaid balance expires or is refundable is governed by the provider's terms. If you top up a lot and use little, the unused part is a sunk cost.
  • A minimum top-up (for example, 20 CNY) makes small users keep a bit more balance than they need.

Monthly subscription:

  • Find out whether unused quota resets to zero at month end or rolls over.
  • Find out what happens when you use up the quota: throttling, suspension, or automatic switch to pay-as-you-go billing. This directly determines the cost of "overage" and must be read in the terms before you order.

You can use this checklist:

QuestionPay-as-you-goMonthly
Do you pay for what you do not use?Whether the balance expires depends on the termsWhether the month's quota rolls over depends on the terms
What if you use more?Keeps charging; cost grows linearlyThrottling, suspension, or switch to pay-as-you-go; confirm first
Is the budget predictable?Varies with usageFixed
Is the unit price transparent?Usually yesDepends on whether the plan publishes how quota converts to units

What else should you check when comparing?

Price is only part of the picture. For the same tokens, the available models, stability, and data policy differ between services.

Summary: a decision table you can use directly

Your situationLeaning
Monthly usage < break-even U*Pay-as-you-go
Monthly usage consistently > U* and ≤ quota QMonthly plan
Usage differs severalfold month to monthPay-as-you-go, or monthly plus pay-as-you-go top-up
Just starting, unsure how much you will useRun pay-as-you-go for a month or two, then apply the formula

The last row is the most practical: if you do not know how much you use, record your real token counts for a month or two on a small pay-as-you-go balance, then apply the formula. With real numbers, you do not have to guess.

Related articles

Keep reading