Billing
Errors and limits
A failed call costs nothing. Every error is a problem object with a type, a status and a detail, so an agent can act on it without parsing prose.
Format#
REST answers application/problem+json (RFC 9457). MCP returns the same object as an error result, in structuredContent. Each has type (a link to its entry on the errors page), title, status, detail and, when a call was opened, call_id. Some add fields of their own.
402 insufficient-funds
{
"type": "https://trysnow.ai/errors#insufficient-funds",
"title": "Insufficient funds",
"status": 402,
"detail": "This call needs 5 credits ($0.005) and the wallet has 2 credits ($0.002) available.",
"call_id": "call_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
"needed_credits": 5,
"needed_usd": 0.005,
"available_credits": 2,
"available_usd": 0.002
}topup_url is added for API keys and for apps SnowAI trusts with it. A chat app gets none and tells the person to open the Billing page.
What to do#
| Status | Type | What to do |
|---|---|---|
| 401 | unauthenticated | The request had no valid token or API key. Connect again, or send Authorization: Bearer <key>. |
| 400 | invalid-request | An argument is missing or wrong; detail names it. Fix the call and send it again. |
| 404 | not-found | The tool, page or article does not exist, or is not in this organization. detail says which. |
| 402 | insufficient-funds | The wallet cannot cover this call. needed_credits and available_credits (and their _usd twins) say by how much. Tell the user, then retry with the same idempotency_key. |
| 403 | forbidden | The call is not allowed as asked, for example reading Search Console before Google is connected. detail says what is missing and may include a link for the user. |
| 403 | spend-cap-reached | The call would pass the wallet's monthly cap or the API key's cap. The user can raise the wallet's cap at limits_url; a key's cap is set when the key is made. |
| 403 | account-closed | The account was closed, usually after 90 days unused without ever buying credits. Contact support to reopen it. |
| 403 | account-suspended | The wallet is frozen while a payment is reviewed. Contact support. |
| 409 | idempotency-conflict | Each idempotency_key belongs to one set of arguments. Use a new key for a different call. |
| 422 | max-cost-too-low | minimum_credits is the least a useful call can cost (1,000 credits = $1). Raise max_credits or ask for less. |
| 428 | approval-required | The call may cost more than the wallet's approval threshold. Ask the user, then call again with the same arguments and the confirmation_token. |
| 429 | rate-limited | Too many requests. Wait for Retry-After seconds, then retry. |
| 502 | upstream-error | The data source behind the tool failed. Nothing was charged. Retry later. |
| 504 | upstream-timeout | The data source did not answer before the deadline. Nothing was charged. Retry, or ask for less (a smaller limit or depth). |
| 503 | unavailable | The data source is unreachable for a moment. Nothing was charged. Retry later. |
| 500 | internal | Something broke on our side. Retry, and contact support with the call_id if it keeps happening. |
Limits#
- A call runs for at most 50 seconds by default. Each tool's deadline is in
GET /tools. - Per organization, REST and MCP together allow 240 requests and 120 tool calls a minute, with 10 calls running at once and 5 on any one source. Past a limit the answer is HTTP 429
rate-limitedwithretry_after_secondsand aRetry-Afterheader. - Three articles can be written at once per organization.
- List tools take a
limit. The hold is sized by it, andmax_creditslowers it.