Skip to content
Billing

Pricing & billing

You buy US-dollar credit in advance; each succeeded job takes its exact cost from it. Failed and canceled jobs, and everything a test key does, are free.

How a job is priced

  • Each model has its own price per audio minute: zilapi/nr-4.1 (Noise Removal) and zilapi/vms-2.5 (Vocal Separation) $0.033, zilapi/se-1.0 (Speech Enhancement) $0.043. Prices are kept exactly per minute, in micro-dollars (unit_price_micros_per_minute: 33000 and 43000). A job is priced on its input's length, whatever the number of outputs.
  • Billed by the millisecond: the billable duration is the audio's exact measured duration in milliseconds, with the model's minimum: billable_ms = max(minimum × 1000, duration_ms). Each model's minimum is min_billable_ms (and min_billable_seconds) in GET /v1/models (currently 1-second minimum for every audio model). Jobs keep the minimum that applied when they were created.
  • Charge = billable milliseconds × price per minute ÷ 60,000, rounded up to the next whole micro-dollar (1 USD = 1,000,000 micros): ceil(billable_ms × per_minute / 60000). No other rounding happens. For example, 10.010 s at $0.033 per minute is ceil(10,010 × 33,000 / 60,000) = 5,506 micros ($0.005506).
  • Jobs billed before November 12, 2026 were billed per started second (rounded up to the whole second); their receipts keep their amounts.
Examples
AudioNoise Removal (1-second minimum)Vocal Separation (1-second minimum)Speech Enhancement (1-second minimum)
0.5 s$0.00055 (1.000 s)$0.00055 (1.000 s)$0.000717 (1.000 s)
10.010 s$0.005506 (10.010 s)$0.005506 (10.010 s)$0.007174 (10.010 s)
61 s$0.03355 (61.000 s)$0.03355 (61.000 s)$0.043717 (61.000 s)
3 min 11.4 s$0.10527 (191.400 s)$0.10527 (191.400 s)$0.13717 (191.400 s)
48 min 30 s$1.6005 (2,910.000 s)$1.6005 (2,910.000 s)$2.0855 (2,910.000 s)
6 h$11.88 (21,600.000 s)$11.88 (21,600.000 s)$15.48 (21,600.000 s)

The price of each model is in GET /v1/models (pricing). See Models.

Free trial credit

  • When you verify your email, your account gets $1.00 of free credit (about 30 minutes of Noise Removal), once per mailbox: addresses that differ only by a +tag, or by dots in a Gmail address, share one trial.
  • Trial credit expires 30 days after it is granted, is used after any credit you bought, and is never refunded. It does not count as a top-up, so the lower account limits stay until your first purchase (see Rate limits).
  • We grant a limited number of trials per day. If none was left when you verified, signing in during your first week tries again.
  • Test keys stay free and need no credit at all: they return a sample result so you can build your integration first.

Holds and charges

The duration is known before the job starts, so once a live job's input is ready we hold its exact cost: at once for a ready file, or when a URL or uploaded input has been checked (nothing is held while the job is waiting_for_file). Your available_micros (in GET /v1/credits) is your balance minus holds. If it is below the job's cost you get 402 insufficient_credit (or, for a waiting job, it fails with insufficient_credit), except in the short-credit case. When the job succeeds the hold is charged; when it fails or is canceled the hold is released.

curl -s https://api.zilapi.com/v1/credits -H "Authorization: Bearer $ZILAPI_KEY"
# {"balance_micros": 48270000, "reserved_micros": 105270, "available_micros": 48164730, "currency": "usd", "display": "$48.16"}

When your credit is slightly short

Once you have bought credit, and while some of your credit is available, one live job that costs at most $1.00 more than your available credit still runs instead of getting insufficient_credit. No hold is placed, but its full price counts against your later jobs until it is paid, so a later job can get 402 insufficient_credit even when available_micros looks high enough. If your credit covers the price by the time it finishes, it is charged and succeeds as usual. Otherwise it waits in the status payment_required: its output is locked (GET /v1/jobs/{id}/output answers 402 payment_required), and the job shows payment with amount_due_micros, display and expires_at. As soon as your available credit covers the amount (after a top-up, or when credit held for another job is released), the job is charged and becomes succeeded. If that has not happened by payment.expires_at (72 hours after the output was ready), the output is deleted, the job fails with payment_required and nothing is charged. After an unpaid output is deleted (on expiry or by you), this is not available to your account for 30 days. Webhook endpoints get job.payment_required only if they subscribe to it by name (never through "*" or a per-job webhook_url). Test keys and accounts that have only trial credit never run on short credit. The Job object, the output endpoint and the webhooks for such a job: When a job waits for payment.

Receipts

Every job carries a receipt that shows how its charge was worked out. The dashboard shows the same breakdown on each job's page and lets you download it.

Receipt fields
FieldMeaning
billable_msThe billed duration in milliseconds: the exact measured duration, with the job’s recorded minimum (10010 for 10.010 s). 0 for image jobs and while the job is waiting_for_file. Receipts from before November 12, 2026 show their whole billed seconds × 1000.
billable_secondsDeprecated. billable_ms rounded up to whole seconds (11 for 10.010 s), kept for older integrations; it is never below what was billed. Use billable_ms.
minimum_appliedtrue when the input was shorter than the job’s recorded minimum, so the minimum was billed (0.5 s is billed as 1.000 s).
unit_price_micros_per_minuteThe exact price per audio minute when the job was created. The charge is ceil(billable_ms × unit_price_micros_per_minute / 60000).
unit_price_displayThe per-minute price as text, for example $0.043 / audio min.
unit_price_microsDeprecated. The price per second (a rate; jobs are billed by the millisecond): an integer when the per-minute price is a whole number of micros per second (33,000/min gives 550), otherwise null (43,000/min). Use unit_price_micros_per_minute to recompute a charge.
pricing_versionWhich price list applied. A price change never affects jobs already created.
charged_microsWhat was charged. 0 for a failed job or a test key; null while the job is queued or processing and for a job canceled before it started. Treat 0 and null alike as nothing charged.
ledger_txn_idThe credit-ledger entry for the charge, or null.

Credit

Our pricing promise. Prices never rise without at least 30 days' email notice. Decreases apply immediately. Unused credit stays valid for 12 months.
  • Top-ups are from $10 to $1,000, in whole dollars, paid by card through Stripe. Sales tax, where it applies, is added by Stripe and is not credit. Invoice or bank transfer available for large customers. Contact support@zilapi.com.
  • Each top-up's credit is valid for 12 months from that top-up. Jobs use the credit that expires first. (Free trial credit has its own, shorter expiry: see above.)
  • Unused credit from a top-up can be refunded within 14 days of that top-up.
  • A job keeps the price it was created with: a price change never affects jobs already created.
  • Display rounding: balances show 2 decimals, per-job charges 4 decimals. The API's display strings are rounded to the cent; *_micros are exact.