# Plans & Limits (https://docs.predictorsdk.com/guides/plans)

Request allowances, rate limits and keys for each plan, and how to read the plans from the API.

Prices are on [predictorsdk.com/pricing](https://predictorsdk.com/pricing).
This page covers what a developer needs: the limits, how they count, and how to
read the plans from the API.

## Plans at a glance [#plans-at-a-glance]

| Plan | Monthly allowance | Rate limit | API keys | Overage |
|---|---:|---:|---:|---:|
| Free | 1,000 / mo | 10 / min | 1 | None |
| Starter | 100,000 / mo | 60 / min | 3 | $0.25 / 1K |
| Pro | 500,000 / mo | 300 / min | 10 | $0.12 / 1K |
| Business | 2,000,000 / mo | 1,000 / min | 25 | $0.06 / 1K |
| Enterprise | Custom | Custom | Custom | Custom |

Every plan can call every endpoint. Plans differ only in how many requests you
can make, how fast, and how many keys you can create.

- **Monthly allowance** resets each UTC calendar month.
- **Rate limit** is per key, over any rolling 60 seconds. Pace from
  `Retry-After` and `X-RateLimit-Reset`; see
  [Building a local limiter](https://docs.predictorsdk.com/guides/error-handling#building-a-local-limiter).
- **Overage** is billed on paid plans for requests beyond the allowance. Free
  has no overage: it stops at its cap.

Each request counts once against the allowance, including a lookup of many IDs
or a list with `include_settled=true`.

## Free plan cap [#free-plan-cap]

Free allows **1,000 requests per UTC calendar month**. A request counts when it
arrives, before it is handled, so failed and malformed requests count too. Once
the cap is reached, every request that needs a key answers
`402 Payment Required` with `action: upgrade_plan` until the month ends.

The `402` body includes `included_requests_per_month` and
`current_period_requests`, so you can show what is left without another call.
[Error handling](https://docs.predictorsdk.com/guides/error-handling) has the full `402` shape.

## Reading plans programmatically [#reading-plans-programmatically]

`GET /v1/plans` returns every plan, with its price, allowance and features, as
JSON. It needs no API key, and the pricing page is built from the same data.

```bash
curl https://api.predictorsdk.com/v1/plans
```

The response shape:

```json
{
  "data": [
    {
      "key": "free",
      "name": "Free",
      "billing_tier": "free",
      "trial_days": 0,
      "tagline": "Every endpoint, to build and try things. No card.",
      "monthly_price_cents": 0,
      "included_requests_per_month": 1000,
      "overage_cents_per_1k": 0,
      "rate_limit_per_min": 10,
      "max_keys": 1,
      "features": ["Every endpoint, on every venue", "..."],
      "cta_label": "Start free",
      "highlighted": false,
      "contact_sales": false
    }
  ]
}
```

The SDKs call it the same way, with no key needed:

```ts
const catalog = await client.getPlans();
```

Python uses `client.get_plans()` and Go uses `client.GetPlans(ctx)`.

## When you hit 402 [#when-you-hit-402]

A `402` body says what to do next in `action`: `upgrade_plan` when the plan or
its allowance is too small, `resolve_payment` when an existing subscription has
a payment problem. Send the user to the pricing page or the dashboard
accordingly. [Error handling](https://docs.predictorsdk.com/guides/error-handling) has example code for each
SDK.