PrecisionDocs

Wallet & Billing - Developer Docs

How API usage debits the organization credit wallet, and per-key and per-connection spending limits.

How is API usage billed?

GET /v1/wallet returns the organization's credit balance so your integration can check affordability before metered work.

The credit model:

  • One price per project: project creation (POST /v1/projects) holds the project price up front and debits it once, when the first build finishes. A build that produces nothing is released and charged nothing.
  • Metered: agent turns (POST .../messages), summaries (POST .../summaries), and report generation (POST .../reports) debit credits based on the underlying work, the same way as connector usage.
  • Flat: knowledge-base search (POST .../search) costs 2 credits per call.
  • Free: reads (project polling, site knowledge, message history, report status, artifact listing, wallet checks).

Spending limits:

  • Keys can carry optional daily, weekly and monthly spending limits (never mandatory); a day starts at 00:00 UTC, a week on Monday at 00:00 UTC and a month on the 1st. When a limit or the wallet balance is used up, metered endpoints return 402 (api_key_credit_cap_exceeded or insufficient_credits).
  • A chat-agent (MCP) connection can carry an optional daily, weekly or monthly spending limit, chosen on the consent page or set later on the app's row in Account -> Integrations -> Connected apps; past one, metered endpoints return 402 connection_credit_cap_exceeded; raise or remove the limit on that row.
  • A key's or connection's limits are read before every operation that spends credits, and count what that key or connection charged to the wallet.
  • Owners choose a plan (monthly credits that reset each month) and any member can buy extra usage (from $50, never expires) in Account -> Billing. When this month's plan and the extra usage are both spent, the 402 insufficient_credits message names the date the plan resets, in plan_resets_at as well.

API and connector spend land in the same workspace wallet and are labelled API or MCP in usage views. For the customer-facing explanation of what spends credits and why amounts vary, see the Credits & Billing help articles.

Other API topics

PrecisionDocs
Reload page