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
- 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.
- 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.
- 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.
