Guides

How to price an AI app: a formula and a worked example

In short: lowest price = AI cost per action × actions per user per month ÷ (1 − target margin) ÷ (1 − store fee). On GPT-5 mini, one chat action costs about $0.0010, so a user doing 300 a month needs at least $1.99 a month for a 70% AI margin, and a user doing 1,000 needs $3.99. Then set a monthly limit so your heaviest users cannot break the plan. The free pricing planner does all of this for any model.

1. Work out what one AI action costs

An action is whatever your app does with AI once: a chat reply, a summary, a photo edit. Its cost is the prompt tokens times the input price, plus the reply tokens times the output price, plus cached tokens at the (much lower) cached price. Read real token counts from the provider's response in development; guesses are usually low because of system prompts and chat history.

Example: 1,500 prompt tokens (half read from cache) and a 400-token reply on GPT-5 mini cost about $0.0010. Prices per model are on the LLM pricing page.

2. Estimate usage per user, including the heavy ones

Guess a typical month for a paying user, then assume your heaviest 5% use five to ten times that. Flat plans are priced on the typical user and broken by the heavy one. If you have no data, 300 actions a month is a reasonable start for a chat-style app, 30 to 100 for a tool used a few times a week.

3. Set the price from what you keep

Divide the monthly AI cost by one minus your target margin, then by one minus the store or payment fee. That is the floor, not the price: charge for what the app is worth, but never below the floor.

Actions / monthAI cost on GPT-5 miniLowest price for 70%
100$0.101$0.99
300$0.302$1.99
1,000$1.01$3.99
3,000$3.02$11.99

4. Cap each plan so one user cannot break it

The most one user can do on a plan before it earns less than your target is: price × (1 − fee) × (1 − target) ÷ cost per action. For a $9.99 plan on GPT-5 mini that is 2,531 actions a month. Make that the plan's fair-use limit, show users how much is left, and offer an upgrade when it runs out. How to limit AI usage per plan.

5. Size the free tier last

Free users are paid for by paying users. Whatever margin is left above your target is what you can give away. How many free AI messages you can afford.

6. Check it against real users after launch

Real usage never matches the plan. Track the AI cost of every user next to what they paid (RevenueCat, Stripe or a CSV) and adjust prices and limits on facts. FiscaLLM does this for free: see the demo.

Questions

What is a good gross margin for an AI app?

Software usually runs at 75 to 90% gross margin. AI apps run lower because every request costs money. Aim for at least 60 to 70% on AI cost alone, so hosting, support and refunds still fit.

Should an AI app charge a flat subscription or per use?

Most consumer and indie apps do best with a flat subscription that includes an allowance (for example 500 messages a month), plus a limit or top-up for heavy users. Pure pay-per-use is clearer for costs but harder to sell to people who want a predictable bill.

How do I stop heavy users from losing me money?

Give each plan a monthly AI allowance, check it on the backend before every AI call, and offer an upgrade or a cheaper model when it runs out. The limit that keeps your margin is the plan's net price times one minus your target margin, divided by the cost of one action.

Do I need to include App Store fees?

Yes. Apple and Google keep 15% (small businesses and renewals after a year) or 30%, and Stripe about 3%. Price on what you keep, not on the list price.