Points, Top-ups and Cost Control: How to Keep an AI API Bill Predictable
CQTAI
10/23/2026
Nothing makes an API less pleasant than an invoice you did not see coming. This post explains how charges work on CQTAI, how to estimate a job before you run it, and which safety limits to set before you hand a key to a script, a teammate or a customer.
One unit: points
Your balance, the prices you see, the X-Cost response header and the ffmpeg cost field are all in points.
On the international site, 1 USD = 100 points for USD top-ups. So a balance of 2,500 points is 25 USD. You top up on the billing page, and points are drawn down as you make calls.
Because prices change as models come and go, we keep the numbers in exactly one place, the pricing page, and in the model catalog. This post teaches you the rules, not the rates.
How each category is charged
The unit of charge depends on the kind of model, and so does the moment the points are taken.
| Category | Charged by | When |
|---|---|---|
| Chat | Tokens, from the reported usage, at the model price | After the call |
| Images | Model price times n | Pre-deducted before the call |
| Video and music | Per second, per image or per task, depending on the model | When the task is submitted |
| Text to speech | Synthesized seconds, at least 1 point | After synthesis, reported in X-Cost |
| Speech to text | Seconds of audio, from the request duration (or our estimate) | Pre-deducted when the task is accepted |
| ffmpeg | Per operation | Pre-deducted when the job is accepted |
Two things follow from that table. For chat you pay for what the model actually used, so a long answer costs more than a short one. For generation jobs the price is known up front, so you can estimate it exactly.
Estimate before you run
Do not guess. The public GET /v1/models endpoint needs no key and returns list prices in points, with a pricing.unit that tells you how to read them:
pricing.unit | Meaning |
|---|---|
points_per_token | Points per token (chat), with separate fields for input, output and cache |
points_per_request | Points per call or per task |
points_per_second | Points per second of output |
points_per_image | Points per image |
Prices are strings, and a missing pricing means the catalog has no price for that model. It does not mean the model is free. Generation models can also have tiers, for example by resolution, in which case request is the lowest tier, so show it as a starting price.
Here is a small estimator for a per-second model. It reads the live price instead of hard-coding one:
import requests
models = requests.get("https://api.novapi.ai/v1/models").json()["data"]
model = next(m for m in models if m["id"] == "MODEL_ID")
pricing = model.get("pricing")
if not pricing:
raise SystemExit("no price in the catalog for this model")
seconds = 8
if pricing["unit"] == "points_per_second":
points = float(pricing["request"]) * seconds
elif pricing["unit"] in ("points_per_request", "points_per_image"):
points = float(pricing["request"])
else:
raise SystemExit("token-priced model, estimate from expected tokens")
print(f"about {points:.1f} points, or {points / 100:.2f} USD")
Two cautions. The prices in the catalog are list prices without any personal discount, and the catalog list is cached for about a minute. Treat the result as a solid estimate, and check the real amounts in your usage records.
What happens when something fails
- Images: points are refunded automatically if the generation fails.
- ffmpeg: refunded if the job fails.
- Video and music: a task that fails at submission is refunded automatically. For tasks that fail later, check your usage records.
- Chat: billed from the reported usage. A stream that ends without usage is not billed.
Two habits protect you. Never resubmit a task just because a poll looked slow: every submit is a new charge, so keep polling the same task id. And on the image endpoint, a synchronous request that runs past its wait window answers 202 with a task object. That task keeps running, so fetch it instead of repeating the call.
Put guardrails on every key
The best cost control is a key that cannot overspend. Create separate keys per project, script or customer, and give each its own limits. A request that breaks a restriction is rejected, so a leaked or buggy key stops at the limit.
| Restriction | Effect | Rejection |
|---|---|---|
| Model allowlist | Only listed models (or their group) can be called. An empty list allows every model. | 403 model_not_allowed |
| IP allowlist | The caller IP must match an entry. * works as a wildcard inside an entry. | 403 permission_denied |
| Budget | A key with a maximum amount stops working once its used amount reaches it. | 400 invalid_request |
| Expiry or disabled | Expired, disabled or deleted keys are refused. | 401 invalid_api_key |
Some practical setups:
- A demo key for a customer: a small budget, a short expiry, and only the one model the demo needs.
- A key for a cron job: an IP allowlist with your server, and a model allowlist with a single entry.
- A key for a teammate: a budget, so that experiments cannot drain the shared balance.
Manage keys on the API keys page. The authentication guide lists every restriction in detail.
Handle low balance gracefully
When your balance is too low the API answers 402 insufficient_quota. Chat is refused when the balance falls below 0.1 points, and other endpoints need enough balance to cover the whole call. In your own code, catch that status, stop the job queue and alert a person, instead of retrying in a loop.
A checklist before you launch
- Estimate the cost of one unit of work from the live catalog price, then multiply by your expected volume.
- Use one key per project, with a budget and a model allowlist.
- Persist task ids at submit time, and poll instead of resubmitting.
- Treat
402as a stop signal, not as something to retry. - Review your usage log after the first day, and compare it with your estimate.
Next steps
- The billing guide in the docs, with the full rules.
- Pricing and models for current rates.
- If you haven't started yet, begin with the 5-minute quick start.