# Billing & reservations

A reservation temporarily holds credit before work starts. The final charge is recorded separately.

`GET /v1/requests/{request_id}`

## Before a request starts

The account needs enough available credit across its eligible Plan usage and paid balance for the request’s hold. The API key must also have room under each spending limit. Other active reservations reduce the available amount.

- Text holds use a conservative model context input bound plus the requested output allowance. A short prompt can still require a large hold. A smaller max_tokens reduces only the output part.
- The hold accounts for applicable input and cache rates. Heuristic token-count estimates do not reduce it or guarantee an exact cost.
- Media holds depend on the chosen model and supported parameters. Read required_credit and its returned parameters from the live catalog.

## After execution

Confirmed usage settles the charge and releases unused reserved credit. A confirmed unbilled failure releases the hold. When the outcome is uncertain, the hold can remain until it is reconciled.

- HTTP success, a tool result, a disconnected stream or a cancellation request alone does not prove what was charged.
- On request and job reads, reserved_usd is the active hold. It becomes zero when no hold remains. settled_usd is null until a charge is known.
- Treat money as decimal USD strings. Preserve decimal precision rather than using floating-point values for accounting.

## Credit and key limits

Manage paid credit in Billing and daily, weekly, monthly or lifetime limits in API Keys. Limits count the full request cost and active holds, including Plan usage. Changing a limit does not erase earlier usage.

- Calendar limits use UTC: daily at midnight, weekly on Monday and monthly on the first. A zero limit blocks spending. No limit removes that period’s cap.
- Chat and personal API keys share the same Plan usage and paid balance. A banked reset renews that shared allowance. Each key’s spending limits still apply.
- Balance, deposit instructions, usage reports and key management are dashboard features. This inference-key API does not expose account-management or payment endpoints.
