Skip to main content
Dashboard sessions, CLI sessions, and API keys draw from one credit balance. Every metered response reports what it cost in X-Credits-Charged and the balance left in X-Credits-Remaining. See response conventions for the headers.

Reserves and charges

Before an operation runs, the API holds its reserve amount from your balance. When the operation finishes, the API charges the final amount and returns the rest of the hold. A failed operation returns the whole hold. If your balance is below the reserve, the request fails with 402 and X-Credits-Charged: 0, even when the balance would cover the final charge.

Provider data

A request costs the fresh price only when the API fetches new data from the provider. A response served from cache, served stale, or shared with an identical in-flight request costs the cached price. Each page of a paginated endpoint is a separate request with its own charge. comments?all=true fetches up to five newest-first pages in one request and charges once. A capped crawl returns partial results; use continuation to read further.

Search and analysis

These operations charge a fixed amount whether or not the underlying data was cached.

Agent tool calls

When an agent fetches provider data during a run, each tool call uses the provider data prices above. Two operations exist only as agent tools: storyboard costs 1 credit cached or fresh, and frames cost 1 cached or 2 fresh. An agent run also pays the cached price when it uses evidence saved in its session by an earlier run. This covers retrieval tools served from saved assets, analysis of saved transcripts, frames or storyboard sheets, saved-evidence reads and searches during finalization, and earlier-turn source content. Each saved unit is charged once per run, in the same units as the operation that produced it: Within one run, later pages, filtered reads, searches, analyses, retries, answer repairs and restart recovery of a unit that run already received cost 0. A different language or a refreshed version is a separate unit. A fresh provider call always pays its own price, even when it returns content the run already has. Requests that share one in-flight provider call pay that call’s price once. The next run that needs the same evidence pays again. Some requests use no saved source content, such as rephrasing or quoting earlier messages. They charge nothing, because no priced operation runs. A failed or cancelled run keeps the charges for evidence operations that succeeded before it stopped, and returns the rest of its reserve. A run never charges more than its reserve. When the remaining reserve cannot cover a new unit, that evidence is not loaded, and the answer states the gap. Agent responses list the settled operations in billing.charges. Opening existing runs, Sources, Projects and their stored content in the dashboard is free. Project search keeps its separate price.