> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ironflow.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Plans and payment

> Upgrade an Ironflow API key to a paid plan with USDC on Base or Hyperliquid, from the website or from code, or buy a plan in one call with x402.

Paid plans are self-serve and paid in USDC on Base or Hyperliquid. There is no card, no account to create and no subscription: one payment gives a plan for 30 days, or for a year, and paying again extends it. The key you already have gets the new limits; nothing changes in your code.

| Plan | Price | Requests per minute | Credits | Liquidation, funding, open interest, mark and oracle history | Other history |
| - | - | - | - | - | - |
| Free key | \$0 | 60 | 1,000 a day, 3,000 a month | 14 days | 14 days |
| Explorer | $49/mo, or $468 yearly (\$39/mo) | 100 | 25,000 a day | Full | 90 days |
| Builder | $199/mo, or $1,908 yearly (\$159/mo) | 1,000 | 250,000 a day | Full | 1 year |
| Pro | $499/mo, or $4,788 yearly (\$399/mo) | 3,000 | 1,000,000 a day | Full | Every fill since May 2025 |
| Enterprise | Contact us | 10,000 | No cap | Full | Everything stored |

Full history means every liquidation since 25 May 2025 and every funding rate, open interest, mark and oracle price row since May 2023, on `/v1/liquidations`, `/v1/liquidations/summary`, `/v1/funding`, `/v1/open-interest` and `/v1/mark-prices`. Other history covers fills, trades, candles and wallet endpoints. SQL keeps its own window (see [Rate limits](https://docs.ironflow.sh/concepts/rate-limits.md)).

A read costs 1 credit, analytics 5, SQL 10 and a stream 1 a minute: [Credits](https://docs.ironflow.sh/concepts/rate-limits.md#credits). Free keys and Explorer are for personal projects, research and demos; Builder, Pro and Enterprise include commercial use ([Terms 15.2](https://ironflow.sh/terms)). Pro comes with priority support by email.

## Yearly plans

Each paid plan also comes for a year, 365 days, in one payment: plan ids `explorer-12m` (468 USDC, $39 a month), `builder-12m` (1,908 USDC, $159 a month) and `pro-12m` (4,788 USDC, \$399 a month). Prices are in USDC; a month is billed as 30 days. They have the same limits as the 30-day plans and are bought the same way. Paying again extends the plan from its current end.

## Plans no longer sold

The Liquidations plan (`liquidations`, `liquidations-3m`, `liquidations-12m`) and the early-customer Builder price (`builder-early`) are no longer sold. Accounts on them keep their limits until the plan ends, and pay links and open orders that name them still work.

An account with an active paid plan cannot buy a smaller plan: `POST /v1/billing/upgrade` answers `409 PLAN_BELOW_CURRENT` with its current plan, when it ends and the link that extends it. A running trial is not a paid plan.

Builder, Pro and Enterprise also get every market's liquidation map in one call ([`/v1/liquidations/map/all`](https://docs.ironflow.sh/api-reference/analytics/liquidation-map-all)); the other plans read one market per call, or pay 0.05 USDC for one all-markets call with x402.

Streams, alerts and SQL limits per plan: [Rate limits](https://docs.ironflow.sh/concepts/rate-limits.md). A dedicated Hyperliquid node in Tokyo, with the Ironflow data API at Pro limits, starts at $1,450 a month, or $1,290 a month paid quarterly upfront: see [ironflow.sh/nodes](https://ironflow.sh/nodes). More nodes, data streams and the state archive: [quote on request](https://ironflow.sh/nodes#quote).

## Try Explorer for 7 days

A free account can try Explorer once, for 7 days: 25,000 credits a day and no monthly cap, on the same key, with no payment details. The trial has no bulk rows: SQL export, and REST history older than 7 days, come with the paid plan, and SQL runs at free-key limits ([bulk rows](https://docs.ironflow.sh/concepts/rate-limits.md)). It can start the trial when it has used up its daily or monthly credits in the last 30 days, or when its first key is at least 48 hours old and it used 200 credits in the last 30 days.

```bash theme={null}
curl -X POST https://api.ironflow.sh/v1/billing/trial \
  -H "Authorization: Bearer if_..."
```

While it runs, every answer carries `X-Ironflow-Trial-Ends` (when it ends) and `X-Ironflow-Trial-Pay` (where to pay). We email you 2 days before the end and at the end; then the key is back on the free limits by itself, unless you pay for a plan as below. One trial per person; accounts that paid before do not get one. [`GET /v1/billing/trial`](https://docs.ironflow.sh/api-reference/billing/trial-status) says whether your key's account can start it. An account that can is told in the `notice` of its answers, at most once a day, and once by email.

## Pro trial, by invitation

The Pro pass is a 48-hour Pro trial that the Ironflow team gives personally, by invitation. It turns on Liquidation Pressure, Opening Bell, Flow Ahead, Pain Map, Flow alerts and Sweeps in real time, the [signal stream](https://docs.ironflow.sh/api-reference/signals/stream-signals.md) and signal alerts for an account on free, Explorer or Builder. Credits, rate limits and history stay your plan's. Nothing to pay and nothing to cancel. To ask for one, write to [hello@ironflow.sh](mailto:hello@ironflow.sh).

Every invitation comes with a single-use invite code, on a link like `https://ironflow.sh/pro/pass?code=ABCD-EFGH-JKLM-NPQR`. Open the link, or start it with your key and the code:

```bash theme={null}
curl -X POST https://api.ironflow.sh/v1/billing/pro-pass \
  -H "Authorization: Bearer if_..." \
  -H "Content-Type: application/json" \
  -d '{"code": "ABCD-EFGH-JKLM-NPQR", "use_case": "a liquidation alert bot"}'
```

No key yet? [`POST /v1/billing/pro-pass/email`](https://docs.ironflow.sh/api-reference/billing/start-pro-pass-from-email) makes a free key for a new email and starts the pass in one step; the answer shows the key (it is also emailed to you).

```bash theme={null}
curl -X POST https://api.ironflow.sh/v1/billing/pro-pass/email \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "accept_terms": true, "code": "ABCD-EFGH-JKLM-NPQR", "use_case": "a liquidation alert bot"}'
```

Every start says what you are building (`use_case`, 10 to 200 characters; `400 USE_CASE_REQUIRED` without it). Without a code the answer is `403 PRO_PASS_INVITE_REQUIRED`; a code starts one pass and expires (usually after 7 days). Throwaway and public inboxes are refused.

During the pass, signal answers come back with `delayed_minutes: 0` and `pro_pass.ends_at`. We email you at the start, 2 hours before the end and at the end; after it the signal endpoints answer `402 PRO_REQUIRED` again. One pass per person; accounts that had Pro do not get one. [`GET /v1/billing/pro-pass`](https://docs.ironflow.sh/api-reference/billing/pro-pass-status) says whether your account can start it. Pro itself is $499 a month or $399 a month billed yearly.

## With your key, in one call

An agent with an API key and an x402 client with USDC on Base buys a plan for its own account in one call. No email, no form: the key names the account.

```bash theme={null}
curl -X POST https://api.ironflow.sh/v1/billing/buy \
  -H "Authorization: Bearer if_..." \
  -H "Idempotency-Key: my-bot-2026-11" \
  -H "Content-Type: application/json" \
  -d '{"plan": "explorer"}'
# -> 402 with the x402 terms for 49 USDC in the PAYMENT-REQUIRED header
```

Pay the `402` with any x402 client (for example `@x402/fetch`, which pays and sends the request again with `PAYMENT-SIGNATURE`). The plan starts on every key of the account within a minute of settlement. Plans: `explorer` (49 USDC), `explorer-12m` (468 for a year), `builder` (199), `builder-12m` (1,908 for a year), `pro` (499) and `pro-12m` (4,788 for a year). A refused buy (a plan below your current one) is not charged. With the same `Idempotency-Key`, a retry answers the first order and never charges twice.

Every limit error carries this call for the plan it offers (`upgrade.buy`), and so does [`GET /v1/usage`](https://docs.ironflow.sh/api-reference/billing/usage). Limit errors also carry `agent`, an instruction for an AI agent that cannot pay by itself: what to tell the person it works for, the trial call, the pay link for their account and this call ([Rate limits](https://docs.ironflow.sh/concepts/rate-limits.md)).

## From the website

Every upgrade link the API gives your key (in limit errors, `GET /v1/usage`, the `Link: rel="payment"` header and our emails) opens [ironflow.sh/upgrade](https://ironflow.sh/upgrade) with the plan and your account already filled in: the link carries a short-lived `checkout` token (7 days) that names your account, never your key or email. The page shows the price and asks only how you pay.

1. Open [ironflow.sh/upgrade](https://ironflow.sh/upgrade), pick a plan, enter the email your key was sent to (with a link from the API, the plan and your account are already filled in).
2. Pick one of the two ways to pay and the network, Base or Hyperliquid, then tick the terms:
   * **Pay with your wallet**: your browser wallet connects and shows one USDC transfer of the exact amount to Ironflow's address; confirm it. On Base it switches to Base and sends the transfer. On Hyperliquid it asks you to sign one Send from your Hyperliquid account, the same as Send in the Hyperliquid app. No spending approval is asked for.
   * **Get payment details**: the page shows Ironflow's address, the exact amount for your order and a QR code at once. The amount is the price plus a small fraction under one cent, for example 49.0037 USDC, and no other open order has it. Send exactly that amount yourself, from any wallet. If you pay from a wallet you control, you can enter it below the button to match faster.
3. The page follows the payment and turns green when the plan is active, about a minute later, and we email you. The same key now has the plan's limits.

No wallet in the browser? Open the page in your wallet app, or use **Get payment details**. With payment details the payment is matched by its exact amount: less or more is not matched, so send exactly the amount shown, in one transfer. An exchange works too if it can send that exact amount and the amount that arrives is exactly that after its fees. A transfer sent more than 1 hour before the order does not count. On Hyperliquid, open Portfolio in the Hyperliquid app, press Send, paste the Ironflow address as Destination, keep USDC, enter the amount and send.

On Base, send native USDC (`0x833589fcd6edb6e08f4c7c32d4f71b54bda02913`, chain 8453); the plan starts after 15 confirmations, about a minute.

When you hit a limit, the error names the limit and the plan that lifts it (`upgrade.limit`, `upgrade.lifts`), and its link opens this page with both filled in.

## From code or an AI agent

An agent that holds USDC on Base or Hyperliquid can upgrade its own key in three calls.

**1. See the plans and where to pay** (no key needed):

```bash theme={null}
curl https://api.ironflow.sh/v1/billing/plans
```

**2. Open an upgrade request** for the key's email, the wallet that will pay, a plan and a network (`base` or `hyperliquid`, the default):

```bash theme={null}
curl -X POST https://api.ironflow.sh/v1/billing/upgrade \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "wallet": "0xYourWalletAddress", "plan": "explorer", "network": "base"}'
```

The answer has `amount_usdc`, `amount_units`, `to_address`, `request_id`, `status_url` and `match`, the rule that pays it. On Base it also has `chain_id`, `token_contract` and `confirmations_required`.

Leave out `wallet` (or send `"exact_amount": true`) to order by an exact amount instead: `amount_usdc` is then the price plus a fraction under one cent that no other open order has (for example `49.0037`, `amount_units` `49003700`), `exact_amount` is `true`, and a transfer of exactly that amount pays the order, from any wallet. With a wallet as well, a transfer of at least the price from that wallet also pays it.

**3. Send the USDC** to `to_address`, in one transfer: from that wallet, or exactly `amount_usdc` for an exact-amount order.

On Base, an ERC-20 `transfer(to_address, amount)` on the USDC contract (6 decimals), signed by that wallet. On Hyperliquid, with Hyperliquid's Python SDK:

```python theme={null}
exchange.usd_transfer(amount_usdc, to_address)
```

On Hyperliquid the transfer has to be signed by the wallet itself: an API (agent) wallet cannot send funds.

**4. Poll the request** until `status` is `paid`:

```bash theme={null}
curl "https://api.ironflow.sh/v1/billing/upgrade?request=up_..."
```

| `status` | Meaning |
| - | - |
| `pending` | Waiting for the transfer. `transfers_seen` lists what arrived from the wallet (or with the order's exact amount) so far; on Base each one shows `confirmations`. |
| `paid` | The plan is active. `plan_active_until` says until when; `paid.tx_hash` is the transfer. |
| `expired` | No payment within 7 days. Open a new request. |

Hyperliquid payments are checked every 10 seconds; Base payments every 15 seconds, and each must reach 15 confirmations before the plan starts.

## With x402 and no key

Without an API key, an agent with an x402 client and USDC on Base can buy a plan for an email in a single call: POST the plan's `x402_buy_url` from `GET /v1/billing/plans` with the email, pay the `402` terms with any x402 client and send the request again. It is a POST: a GET of the link answers `405`. With a key, use [`POST /v1/billing/buy`](#with-your-key-in-one-call) instead.

```bash theme={null}
curl -X POST https://api.ironflow.sh/x402/v1/plans/explorer/buy \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'
# -> 402 with the payment terms in the PAYMENT-REQUIRED header
```

The plan starts within a minute of the payment settling, on the keys of that email (or a new key is emailed). Paying per call instead, with no plan: [Pay per call](https://docs.ironflow.sh/guides/pay-per-call.md).

## If something goes wrong

* Check the address, network and amount before you send. Transfers on Base and Hyperliquid are final: we cannot reverse them, and we are not responsible for, and cannot recover, funds sent to any other address or network.
* If a transfer reaches our address but matches no request (another wallet, less than the price, or not the exact amount of an exact-amount order), write to [hello@ironflow.sh](mailto:hello@ironflow.sh): we apply it to a plan or refund it to the wallet it came from.
* A plan that has started is not refundable, except where the law requires it.
* There is no memo or reference field on Hyperliquid or Base, so a request is matched by its exact amount (any wallet, exactly that amount) or by the wallet it names (at least the price from that wallet). When both could apply, the exact amount wins. One wallet pays for one email.
* When a plan ends, the key returns to the free limits and we email you.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.