Skip to main content
Generations spend the same credits as the Argil app, from the same balance, and need an active Argil plan.

Price list

Each mode in the catalog has a pricing object: the unit the model is billed in, its price in words, the same the Argil app shows, and how the charge settles.
See every price in the model catalog. For the exact price of a request, use the estimate.

Estimate

POST /v2/generations/estimate takes the model, mode and input of a create request and returns its price and whether your balance covers it. It runs the same checks as creation, references included, and creates no generation. A URL reference is imported into your library, as a create imports it: the create that follows with the same URL reuses that asset.
Use the estimate, not the price list, to show prices to your users: some models price on inputs (the length of reference videos) only the estimate measures, and a generation that runs on your own provider key costs 0 credits.

Your own provider keys

When your workspace has its own key for a provider a model runs on (workspace settings › Provider keys in the Argil app), API generations use it first, exactly as the playground does: they cost 0 credits, and the estimate says so. Argil’s keys take over only if your workspace allows the fallback. See Provider keys.

Reserve, charge, refund

Every generation carries its money in cost:
  1. Creation reserves the credits, or answers 402 insufficient_credits and creates no generation. URL inputs may already be in your library: they are imported before the credit check.
  2. Settlement, when the generation is final:
    • fixed: charged = reserved.
    • settled_on_actual_usage: charged follows what the model actually produced, in whole credits rounded up. Less than reserved, the difference is refunded; more, the difference is charged as far as your balance covers it.
  3. Refunds: a generation that fails before the model produced its output is refunded. One whose output could not be stored afterwards (output_processing_failed) is charged, since the model ran.
A 402 says what is missing, and where a person adds credits to this workspace (url, which opens it in Argil):

Balance

available is what you can spend now: what generations in flight hold (reserved) is already out of it. Plan credits are spent before pay-as-you-go credits. A workspace without an active plan spends nothing through the API, so its available and pools are 0.