Price list
Each mode in the catalog has apricing object: the unit the model is billed in, its price in words, the same the Argil app shows, and how the charge settles.
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.
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 incost:
- Creation reserves the credits, or answers
402 insufficient_creditsand creates no generation. URL inputs may already be in your library: they are imported before the credit check. - Settlement, when the generation is final:
fixed:charged = reserved.settled_on_actual_usage:chargedfollows what the model actually produced, in whole credits rounded up. Less thanreserved, the difference is refunded; more, the difference is charged as far as your balance covers it.
- 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.
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.