GET /v1/usage before paid work and while diagnosing a generation that appears to be holding Credits.
Estimate Credit requirements
CallPOST /v1/pricing:estimate immediately before starting paid work when your integration needs to show or check the expected Credit requirement.
Idempotency-Key.
The response separates the Credits planned for the first stage from the conservative total:
review mode, the final stage is marked conditional: true because the client must approve a Preview before Mint starts final work. estimatedTotal still includes that stage. Single-stage work such as Audio generation or 3D Model optimization returns one operation stage.
Estimates use normalized public factors. For example, Audio returns its normalized durationSeconds, Asset Packs return the priced itemCount, and existing-resource actions resolve the owned asset before returning an estimate. The request accepts only fields relevant to its operation; use the OpenAPI contract for the complete operation union.
Treat the result as advisory. It represents conservative planned reservations, while finalized spend can be lower. The subsequent operation and its credits fields are authoritative.
Credit fields
totalAvailable: Credits currently available for new work.monthlyRemaining: available included monthly Credits.monthlyAllowanceandmonthlyUsed: current monthly allocation and settled use.topUpBalance: available non-monthly Usage Credits.totalReserved: Credits pending across in-progress work.monthlyReserved: pending Credits allocated from the monthly allowance.topUpReserved: pending Credits allocated from the top-up balance.
Reservation lifecycle
Mint reserves the displayed Credit amount before paid provider work. A reservation is released when work fails before provider submission, stays reserved while work is active, and settles after provider-backed work completes. Expiration is a last-resort recovery backstop, not the expected waiting time. Each operation can also exposecredits.estimated, credits.reserved, credits.finalized, and credits.availableAfterReservation. The available balance is refreshed after both reservations and settlements. Use these operation fields for one request and GET /v1/usage for the account-wide view.
If an operation reports billing_required, read its billing.requiredCredits, billing.availableCredits, and billing.actionUrl. When the operation already has a Preview or intermediate resource, add Credits or restore billing and call:
Idempotency-Key. Mint reopens the blocked operation and preserves its operation ID.
This continues the existing operation and preserves any completed Preview or intermediate work.
API usage
apiUsage aggregates API requests and settled Credits for the authenticated Mint account.
requestCountincludes authenticated operations that Mint rejects withbilling_required.succeededCountandfailedCountcount terminal asynchronous operations. Validation and billing-required responses are not terminal failures.creditsUsedincludes only finalized Credits. It can trail active work until reservations settle.