Billing and credit

The API is paid from a prepaid credit balance. Each request is charged for the tokens it used.

How charges work

  • Cost per request = input tokens × input price + output tokens × output price, for the model used. Prices are on the models page.
  • Charges are taken from your credit balance when the request completes.
  • A request that fails before generation starts is not billed.
  • Requests with a max_tokens limit are billed only for the tokens actually generated.

Example: a request with 128K context used 1,000 input and 500 output tokens on DeepSeek V3 costs $0.000820.

Adding credit

Open Top up in the console and choose an amount. Each top-up is listed as pending until its payment is confirmed. Credit is added only once the status becomes paid.

Insufficient credit

When the balance does not cover a request, the API returns 402 insufficient_credit. Add credit and retry.

Invoices and receipts

Every paid top-up is a receipt in the console's top-up history. Contact support for tax documents.

Credit does not expire while the account is active.