How to price AI credits from real model costs
Price each try from what the model charges you: a Nano Banana Pro image at $0.134 needs 48 credits of $0.01 for a 70% margin after Stripe's fee, and every redo is another 48.
These sums need your real cost per result. The template records it for every AI feature, failed tries included, and its price check shows whether each price still covers your margin. Buy the template →
Credits per try, from three model prices
A credit here is worth $0.01 to your user, sold in $10 packs of 1,000. Stripe's card fee, 2.9% + 30¢ per payment (Stripe pricing), takes 5.9% of a $10 pack. The margin is on what Stripe pays out to you. Model prices are from each provider's own page, re-read on 24 Nov 2026, and every call is assumed to succeed.
Each redo is another try your user pays for
Your user pays for every try, so each image they keep costs them more when tries get thrown away. Your margin per try doesn't change. Nano Banana Pro, at the 70% price:
- Every try kept48 credits per image kept
- 1 in 5 tries thrown away60 credits per image kept
- 2 in 5 tries thrown away80 credits per image kept
The other models scale the same way: 1 in 5 tries thrown away adds a quarter, and 2 in 5 adds two thirds. A redo your user asks for is always a charged try.
What went wrong in our own app
Storybirdie is an AI app for filmmakers, built by Amit Timalsina, who also built this template. We found these when we read its code and billing on 3 Nov 2026.
- About $26 of AI cost against about $30 of revenue in August
- That left about 13% before card fees. The credit prices hadn't been worked out from what each model cost.
- 1,202 shot lists the app called “Free” had been charged 2 credits each by 3 Nov
- The label and the charge came from two different places. Keep one price list for both.
- One director used 37 tries and 111 credits on one character's clothes
- Each try cost 3 credits. The number of tries is what made that result expensive.
The same sums for your own models
credits per try = cost per try ÷ (1 − margin) ÷ (1 − fee share) ÷ value of a credit, rounded up credits per result kept = credits per try ÷ (1 − share of tries thrown away)
Take the cost per try from your provider's price page (our model price list shows the date each price was checked), and the share of tries thrown away from how often users ask again for the same thing. The cost per AI result calculator does these sums with your own numbers.
Questions
What is credit-based pricing for an AI app?
Users buy credits in packs, and each AI action uses some. It lets one price list cover models with very different costs, as long as each action's credits are worked out from what that model costs per try.
How many credits should an AI image cost?
At $0.01 a credit, sold in $10 packs through Stripe, for a 70% margin on what Stripe pays out: 48 for Nano Banana Pro (one 1K image) and 19 for GPT Image 2, medium (one 1024 × 1024 image). Model prices re-read on the providers' pages on 24 Nov 2026.
Should I charge credits for a failed AI call?
If the provider returns an error, your user got nothing, so don't. The tables above assume every call succeeds; if some fail, divide the model cost by the share that succeed before you set the price. A redo your user asks for is different: that's a try that worked, and it's charged.
How do redos change what users pay?
Each redo is another try at the same price, so credits per result kept = credits per try ÷ (1 − share of tries thrown away). For Nano Banana Pro at 48 credits a try, throwing away 2 tries in 5 makes it 80 credits per image kept.