Get started

Credits

How jobs are paid for, and how to check the cost before you run one.

Work that costs money to run, such as dubbing, translation and voice generation, uses your organization's credits. Credits are charged when a job starts. If a job ends up costing more or less than estimated, the difference is settled when it finishes.

Check your balance

GET /v1/credits/balance

Response
{
  "balance": 12480,
  "expiringCredits": 10000,
  "nonExpiringCredits": 2480,
  "lifetimeGranted": 50000,
  "lifetimeSpent": 37520,
  "lowBalanceThreshold": null,
  "owed": 0
}

owed is above zero only when a finished job cost more than you had left. New jobs are refused until it's repaid by a top-up or your next monthly grant.

Know the cost first

  • GET /v1/credits/rates lists what each operation costs.
  • POST /v1/credits/quote estimates the cost of a job before you start it.
  • GET /v1/credits/ledger lists every charge and grant, for reconciliation.

When credits run out

Starting a job without enough credits returns 402 and the job doesn't start:

402 Payment Required
{
  "statusCode": 402,
  "error": "InsufficientCredits",
  "message": "You don't have enough credits to start this. It needs 120; you have 80.",
  "required": 120,
  "available": 80,
  "owed": 0
}

Reading credit information needs the credits permission on the key's role.

On this page