---
title: "Errors and limits - Billing | SnowAI"
description: "Every error the SnowAI API and MCP server return, what an agent should do about each, and the limits on calls."
url: "https://trysnow.ai/docs/billing/errors"
---

# 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](https://trysnow.ai/errors)), `title`, `status`, `detail` and, when a call was opened, `call_id`. Some add fields of their own.

**402 insufficient-funds**

```json
{
  "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](https://trysnow.ai/dashboard/billing).

## What to do

| Status | Type | What to do |
| --- | --- | --- |
| 401 | [`unauthenticated`](https://trysnow.ai/errors#unauthenticated) | The request had no valid token or API key. Connect again, or send `Authorization: Bearer <key>`. |
| 400 | [`invalid-request`](https://trysnow.ai/errors#invalid-request) | An argument is missing or wrong; `detail` names it. Fix the call and send it again. |
| 404 | [`not-found`](https://trysnow.ai/errors#not-found) | The tool, page or article does not exist, or is not in this organization. `detail` says which. |
| 402 | [`insufficient-funds`](https://trysnow.ai/errors#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`](https://trysnow.ai/errors#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`](https://trysnow.ai/errors#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`](https://trysnow.ai/errors#account-closed) | The account was closed, usually after 90 days unused without ever buying credits. Contact support to reopen it. |
| 403 | [`account-suspended`](https://trysnow.ai/errors#account-suspended) | The wallet is frozen while a payment is reviewed. Contact support. |
| 409 | [`idempotency-conflict`](https://trysnow.ai/errors#idempotency-conflict) | Each `idempotency_key` belongs to one set of arguments. Use a new key for a different call. |
| 422 | [`max-cost-too-low`](https://trysnow.ai/errors#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`](https://trysnow.ai/errors#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`](https://trysnow.ai/errors#rate-limited) | Too many requests. Wait for `Retry-After` seconds, then retry. |
| 502 | [`upstream-error`](https://trysnow.ai/errors#upstream-error) | The data source behind the tool failed. Nothing was charged. Retry later. |
| 504 | [`upstream-timeout`](https://trysnow.ai/errors#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`](https://trysnow.ai/errors#unavailable) | The data source is unreachable for a moment. Nothing was charged. Retry later. |
| 500 | [`internal`](https://trysnow.ai/errors#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-limited` with `retry_after_seconds` and a `Retry-After` header.
- Three articles can be written at once per organization.
- List tools take a `limit`. The hold is sized by it, and `max_credits` lowers it.

Every docs page as Markdown: https://trysnow.ai/llms.txt
