Balance, reservations, and receipts
AntAPI prices published capabilities in USD. Every published API shares your organization's balance. Each operation publishes its own usage unit, price denominator, and rounding rule; read those terms before calling. Its price version and quantity contract are frozen when the operation is first created. Retrying the same operation does not switch it to a newer price.
All projects share the organization's balance. Owners manage funding in Balance; Members can inspect usage and receipts. See Organizations and projects for roles and project settings.
Usage units
| Pricing | What determines the final quantity |
|---|---|
| Free | No reservation, Debit, or charge receipt. A valid key and applicable access and rate checks still apply. |
| Per request | The product's verified successful execution counts as one request, whether synchronous or asynchronous. |
| Per item | Verified successful units, such as domains, document pages, or weighted input characters. |
| Per duration | The product's validated media or compute duration, using its published rounding increment. Upload, queue, and HTTP response time are not automatically billable duration. |
A price denominator states how much usage the displayed price covers; it is not a minimum purchase block. For example, a duration rate per hour can use one-second rounding: 3.2 seconds is then billed as 4 seconds. Follow the specific operation's unit and rounding rule, without substituting a different denominator.
ASR uses validated recording duration. TTS uses weighted input characters: each Han character counts as two and every other Unicode code point as one. Read each product's guide for its limits and success definition; these examples do not define a rule for every product.
Reservation before execution
Before paid work begins, the Gateway checks eligible balance, project budget, funding risk, and execution capacity. Paid API operations normally reserve a reliable maximum authorized cost. A Hold reduces the balance available to other work; it is not a final charge.
The project UTC monthly budget reserves the full reference cost for the operation. This budget reservation can differ from the wallet Hold when a final-balance call is authorized. A monthly budget governs admission, rather than guaranteeing a hard cap on final spend. Authorized work continues against its original month's budget even after that month ends.
Funds must be eligible for the operation's reservation period. A visible balance is not necessarily fully eligible for a long-running task. Free operations do not require a positive balance.
A final-balance call
When positive eligible balance is below the operation's reference cost, an organization may be authorized for one final-balance call. This exception applies across paid request, item, and duration operations; it is not a promise that any remaining balance can start any task.
Authorization requires no outstanding debt or abnormal pending settlement, no other final-balance operation in flight, the uncovered portion of a trusted maximum cost fitting within the remaining organization funding risk limit, sufficient project budget for the full reference cost, and available execution capacity. The Gateway holds the remaining eligible balance. Adding funds while the operation is running does not release its final-balance slot early.
Final settlement uses the complete verified fee. If the original Hold is insufficient, settlement can debit other eligible unreserved funds and record debt for the remaining amount. Debt blocks new paid calls; added funds first repay it. Existing authorized work continues under its original contract. A zero-cost failure releases its Hold and final-balance slot. See Limits and budgets.
Product success definitions
Each product defines its successful units. HTTP success alone does not establish that every result row is billable. Asynchronous HTTP 202 confirms acceptance, not completed work or a final charge. Settlement charges verified successful usage and releases unused reservation; no successful usage means no charge receipt.
For example, WHOIS data quality explains conclusive outcomes and duplicate domains. OCR charges successfully processed pages, including pages with truncated text. Successfully processed ASR silence remains billable even if its transcript is empty. Do not infer a universal billing rule from one product.
Check the final record
Open Usage → Request list and search by X-Request-ID to inspect a request and any final receipt. Usage and receipts explains the detail view and Balance history. A task's execution can finish before its platform settlement is reflected.
Where the Gateway returns a final paid settlement, these headers identify it:
| Header | Meaning |
|---|---|
X-Request-ID | Request identifier for investigation. |
X-AntAPI-Receipt-ID | Authoritative charge receipt identifier. |
X-AntAPI-Debit-Atoms | USD atoms debited for the operation. |
Use the platform's recorded settlement rather than calculating a charge from product result fields. A timeout or client disconnect does not cancel authorized work. Keep the original operation identity and follow Idempotency and retries before starting another request.
An accepted trustworthy Completion awaiting settlement protects the original Hold and original UTC budget month until settlement converges. The general safety deadline does not release that protected Hold. Without an accepted trustworthy Completion, if a trustworthy final outcome remains unavailable at the safety deadline, recovery releases the remaining reservation and closes settlement without later charging it.