Billing and AI Credits
API jobs cost the same AI Credits as in Luce, paid from a separate API wallet: prepaid, pay as you go, or both.
Every job costs AI Credits, at the same rates as in the Luce app (GET /v1/pricing lists them). API jobs are paid from your studio's API wallet, which is separate from the AI Credits your plan gives the team in the app. Using the API never uses up your team's monthly credits.
Two ways to pay
| Prepaid | Pay as you go | |
|---|---|---|
| How | Buy a pack of AI Credits in Settings → API. | Turn it on in Settings → API and add a card. |
| Billed | Up front, once. | Monthly, for what was used. |
| Price per AI Credit | $0.50 | $0.50 |
| Limits | Credits stay usable for 12 months after your latest purchase. | A monthly cap you set (in USD). Jobs past the cap are refused. |
You can use both: each job takes prepaid AI Credits first, and only what they can't cover goes on the monthly bill. With automatic top-up on, we buy another pack with your saved card when prepaid AI Credits fall below a level you choose.
When a job is charged
- Credits are reserved when the job is created (so you can't start more than you can pay for).
- A job that fails or is cancelled costs nothing: its credits go straight back to the wallet.
- Pay-as-you-go use is billed only for jobs that succeeded.
Know the price first
POST /v1/quote returns the exact cost of a request (an upscale's price depends on the image's size, for example) and whether your wallet covers it now. GET /v1/balance shows what's left.
When the wallet runs short
A job you can't pay for is refused with HTTP 402: insufficient_balance (no prepaid AI Credits, pay as you go off), monthly_cap_reached (the job would pass your cap) or payment_past_due (a pay-as-you-go invoice failed). The studio owner gets an email when prepaid AI Credits run low, at 80% and 100% of the cap, and if a payment fails.