Skip to content

How can I distinguish reserved credits from settled credits in API usage?

A reservation is a temporary credit commitment for admitted work, while settlement records the confirmed outcome under the request's pricing rules. For token-based text, final measured usage may be lower than the reserved ceiling. Do not compare only the largest temporary deduction with the final cost.

USE THE CUSTOMER API CONSOLEAISwapLab team · Editorial methodPublished 2 min read
Open API consoleExplore 67 Image Skills4.44 free welcome credits · No subscription
Article workflow: Prepare the right context; Follow the supported workflow; Verify before continuing.
Workflow diagram: Prepare the right context → Follow the supported workflow → Verify before continuing. Read the article for evidence and limits.

Understand this workflow decision

The available balance can change before work finishes. A task's current state and its associated credit entries explain whether money-equivalent capacity is reserved, spent or returned.

What to do next

  1. 01

    Prepare the right context

    Record the quote and maximum-credit ceiling before creation. Keep the returned job identifier so the reservation is not confused with another request.

  2. 02

    Follow the supported workflow

    Inspect the task's eventual state and usage record. For measured text usage, read the actual token settlement rather than assuming the full ceiling was consumed.

  3. 03

    Verify before continuing

    Reconcile any returned difference or confirmed-failure refund with the same job. Avoid adding both the reservation and settlement as if they were two independent purchases.

A concrete example

Illustrative distinction: a text request reserves a ceiling, then settles a smaller measured output. The difference returning to the balance is a reconciliation adjustment, not a promotional credit grant.

Before you call it ready

  • Record the quote and maximum-credit ceiling before creation.
  • Inspect the task's eventual state and usage record.
  • Reconcile any returned difference or confirmed-failure refund with the same job.

When to stop or choose another method

If the job remains unknown or processing, preserve that state. Do not force a final-cost interpretation until the service has confirmed its outcome.

Sources

Your video. Your characters.

Choose a scene, check the people, then add your photos.

Open API console