Credits and prices
Every generation is paid in credits from a balance you add in advance, with no subscription. This page explains what a credit is worth, how each generation is priced, how to limit what code or an AI assistant can spend, and what happens to your credits when a generation fails.
On this page
What a credit is
A credit is the unit of payment on the site. One credit is worth $0.0299, VAT included. Prices are shown in credits with up to two decimals, such as 12.5 or 0.75.
- You buy credits on the credits page in US dollars. Adding credits is possible only on the website, and it has no API endpoint
- There is no subscription and no monthly payment: every generation, on the website, the API, the CLI or MCP, comes out of the same balance
- The API, the CLI and the MCP connection cost nothing in themselves. You pay only for generations and for storage above 1 GB
How a price is set
Each model has its own price, and it depends on the settings: the clip length, the resolution, the number of images, the length of the text to read and so on. In the model list, from_credits is the price of one generation at the default settings, and price_basis says how to read it:
| Value | Meaning |
|---|---|
| per_clip | A video at a fixed price per clip, so an extra second does not necessarily add to the price |
| per_second | A video priced by its length |
| per_image | A price per image. num_images multiplies it |
| per_1k_chars | Speech: a price per 1,000 characters of text |
| per_track | Music: a price per track |
| per_check | Analysis: a price per check |
- from_credits is not a minimum price. Other settings can cost more or less
- The lowest price of any generation is 0.1 credit
- Prices follow a daily exchange rate, so a price can move slightly from day to day. That is why generate requires a price cap
Estimates are free
An estimate returns the exact price for the same parameters you will send to the generation. It is free, needs no key and is limited to 120 calls a minute per IP address. The generation itself uses the same calculation, so the number is the same, unless the daily rate or the model's availability changed between the two calls.
You can price several options in one call with variants: each item is laid over params and priced on its own, up to 24 items:
curl -X POST https://low-cost.ai/api/v1/estimate \ -H "Content-Type: application/json" \ -d '{"model":"kling-3.0","params":{"prompt":"Tel Aviv street after rain"},"variants":[{"duration":5},{"duration":10},{"duration":10,"resolution":"720p"}]}'
In the answer, variants holds { params, credits } for each option. An option that cannot be priced gets credits: null together with error and param, without failing the rest of the request.
The max_credits price cap
Every generation through the API or MCP must include max_credits, the most you agree to pay for this generation. It is your protection against surprises, especially when an AI assistant generates for you.
- max_credits must be a positive number. Without it the request is refused with invalid_params
- If the actual price is above the cap, the request is refused with 409 price_above_cap, nothing is charged, and the credits field returns the real price
- If the price is below the cap, you pay the actual price, not the cap
- The recommended way: call estimate and send the credits it returned as max_credits
{ "error": "price_above_cap", "credits": 12.5 }
In the CLI the cap is set for you from an estimate made just before the generation, unless you give it with the --max flag.
When you are charged and refunded
- Charged at the start. Credits leave your balance the moment you send the generation, together with the job being created. There is never a job without payment or a payment without a job
- Automatic refund. A job that fails returns the full amount, exactly once. Your history gets a refund row with the job id, and the job's refunded becomes true
- Never extra. If the service running the model fails, the job may move to another way of running the same model, only if the cost fits in the price paid. You are never charged again
- No cancel. There is no API endpoint to cancel a job that was already sent
- Errors before the charge. Every generate error, such as invalid_params, price_above_cap and insufficient_credits, happens before any charge
A job that has not finished within two hours is checked one last time: a ready result is saved, otherwise the job fails and the credits come back. Details on the jobs page.
Storage
Every file you generate or upload is kept in your library and counts toward storage. The first 1 GB is free, and beyond that each GB costs $2.99 a month, which is 100 credits a month.
- The charge is daily: the monthly fee divided by the days in the month, rounded up, taken from your balance as a storage row
- The storage field on your account and on the file list shows how much is stored, how much is above the free tier and the monthly fee
- If the balance cannot pay the storage fee, the account is held: new generations are refused with 402 storage_payment_required, uploads are refused, and links you shared return 402. The files themselves are not touched
- The hold lifts when you add credits, or at once when you delete files until you are under 1 GB
- Above 1 GB, an upload needs a balance that covers about a month of storage at the new size. The ceiling per account is 20 GB
Balance and history
Check your balance with GET /api/v1/me: credits is the balance in credits, and balance_cc is the same balance in hundredths of a credit. Every movement is in the credit history:
curl "https://low-cost.ai/api/v1/ledger?limit=20" -H "Authorization: Bearer $LCA_KEY"
| kind | What it is | ref |
|---|---|---|
| charge | A charge for a generation | The job id |
| refund | A refund for a failed generation | The job id |
| topup | Credits added | The payment id |
| storage | A daily storage fee | The date, YYYY-MM-DD |
| grant | Credits granted to the account | |
| adjust | A manual correction |
A negative delta_credits is money spent and a positive one is money added. To match a charge to a job, look for the job id in ref.