> For the complete documentation index, see [llms.txt](https://crypto-chief.gitbook.io/chief-event-stream/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://crypto-chief.gitbook.io/chief-event-stream/getting-started/billing.md). Agents can also search and read this documentation through its [MCP server](https://crypto-chief.gitbook.io/chief-event-stream/~gitbook/mcp).

# Billing

## Billing

EventStream is paid from the project's prepaid credit balance. Top it up in [Data Suite](https://app-data.crypto-chief.com). [`pricing` and `usage/get`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/usage-and-pricing.md) return prices and usage.

### Credit rate and free allowance

| Parameter                                  | Value                                                                                                                                                                                                                                |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Credit exchange rate                       | `10,000,000` credits = `$1` (`1` credit = `$0.0000001`)                                                                                                                                                                              |
| Monthly free allowance                     | `10,000` delivered base event occurrences per project per calendar month (`UTC`)                                                                                                                                                     |
| Quota reset time                           | `00:00:00.000Z` on the `1`st day of each `UTC` month                                                                                                                                                                                 |
| Standard event price beyond free allowance | `500` credits (`$0.00005`) per `(subscription_id, occurrence_id)`                                                                                                                                                                    |
| Channel fee per accepted message           | `1,000` credits (`$0.0001`) for `telegram`, `slack`, `discord` and `pagerduty` sinks; `10,000` credits (`$0.001`) for `email` sinks; `0` for `https`, `s3`, `postgres`, `kafka` and `clickhouse`. Not covered by the free allowance. |

All subscriptions of the project share the `10,000` free events. From the `10,001`st event in the month, each costs `500` credits.

### What is charged

| Scenario                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Credits                 | USD        | Billing rule                                                                                                                                                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| First acknowledged delivery of an `occurrence_id` on a subscription within the `10,000` monthly allowance (`/v1/eventstream/event`)                                                                                                                                                                                                                                                                                                                                                 | `0`                     | `$0`       | Counts toward `free_used` in `usage/get`.                                                                                                                                                       |
| First acknowledged delivery of an `occurrence_id` on a subscription beyond `10,000` in the `UTC` month (`/v1/eventstream/event`)                                                                                                                                                                                                                                                                                                                                                    | `500`                   | `$0.00005` | Billed once per `(subscription_id, occurrence_id)`. If two separate subscriptions match the same `occurrence_id`, each subscription is billed independently.                                    |
| Accepted message to a `telegram`, `slack`, `discord` or `pagerduty` sink                                                                                                                                                                                                                                                                                                                                                                                                            | `1,000`                 | `$0.0001`  | Charged for each message on top of the event fee.                                                                                                                                               |
| Email accepted for sending to an `email` sink (an event or digest email)                                                                                                                                                                                                                                                                                                                                                                                                            | `10,000`                | `$0.001`   | Charged for each email on top of the event fees; [operational notification emails](https://crypto-chief.gitbook.io/chief-event-stream/sinks/email.md#operational-notification-emails) are free. |
| Later stages (`confirmed`, `final`, `reorged`) of an already-charged `(subscription_id, occurrence_id)`                                                                                                                                                                                                                                                                                                                                                                             | Channel fee of the sink | —          | Stages of one on-chain action share `occurrence_id`; the event fee is charged once.                                                                                                             |
| Delivery retries (`attempt_no` `2`..`12`) and deliveries ending in `dead` or `cancelled` without being accepted                                                                                                                                                                                                                                                                                                                                                                     | `0`                     | `$0`       | Unacknowledged deliveries create no charge items.                                                                                                                                               |
| Test deliveries via [`sinks/test`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/sinks.md)                                                                                                                                                                                                                                                                                                                                                                       | `0`                     | `$0`       | Marked `billable: false` and excluded from billing and monthly quota counters.                                                                                                                  |
| Manual redelivery via [`deliveries/resend` and `deliveries/resend-bulk`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/deliveries.md)                                                                                                                                                                                                                                                                                                                            | Channel fee of the sink | —          | An event is never charged twice for a subscription. The sink's channel fee applies to each acknowledged resend; `upper_credits` in the quote is its ceiling.                                    |
| Events rejected by `pre_filter` or `filter`, and subscriptions with `delivery_policy.mode` set to `"shadow"`                                                                                                                                                                                                                                                                                                                                                                        | `0`                     | `$0`       | Nothing is delivered, so no event or channel fee applies.                                                                                                                                       |
| All control API requests (`/v1/*`), including [`events/list`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/events.md), [`deliveries/list`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/deliveries.md), [`scripts/test`, `rules/explain`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/scripts.md), [`pricing`, and `usage/get`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/usage-and-pricing.md) | `0`                     | `$0`       | Control API calls cost `0` credits and work with a `0` balance, except the calls refused during a billing pause ([Insufficient balance](#insufficient-balance)).                                |

### When credits are deducted

A charge is created when the sink accepts a delivery (HTTP `2xx` for an HTTPS sink). Capturing an event creates no charge. The charge is deducted from the balance within seconds. Until then it is counted in `pending_credits` of [`usage/get`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/usage-and-pricing.md#get-usage).

### Insufficient balance

When the balance cannot cover a charge:

1. The balance never goes negative. Unpaid charges stay in `pending_credits` of `usage/get`.
2. The project enters a billing pause (`billing_paused: true` in `usage/get`), and EventStream emits a `project_paused_billing` notification (`reason: "insufficient_balance"`) in [`notifications/list`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/notifications.md).
3. All `active` subscriptions in the project move to `status: "paused_billing"`. Queued and running `redelivery` jobs move to `state: "paused_balance"`.
4. Capture continues. Matched events are still written to the `30`-day event journal (subject to [capture and storage quotas](https://crypto-chief.gitbook.io/chief-event-stream/getting-started/limits.md)), and their deliveries are created in `status: "queued"`. Delivery to all sinks of the project stops until the pause clears.
5. While `billing_paused` is `true`, [`subscriptions/resume`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/subscriptions.md) and a resend whose `upper_credits` is above `"0"` return `503 BILLING_UNAVAILABLE`, and [`sinks/resume`](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/sinks.md#resume-a-sink) returns `503 SERVICE_UNAVAILABLE`. Other resend quote errors are listed in [Quotes, cost, and limits](https://crypto-chief.gitbook.io/chief-event-stream/api-reference/deliveries.md#quotes-cost-and-limits). Read operations (`events/list`, `events/get`, `deliveries/list`, `deliveries/info`, `usage/get`, `notifications/list`) keep working.

#### Recovery after a top-up

Every `30` seconds, EventStream retries pending charges and checks the project's available balance. The pause clears when all pending charges are settled and the available balance is at least `10,000` credits (`$0.001`). If the month's `10,000` free events are not used up and no channel fee was charged in the month, a balance of `0` credits is enough. When the pause clears:

* `billing_paused` resets to `false`;
* subscriptions in `paused_billing` return to `status: "active"`;
* jobs in `paused_balance` return to `state: "queued"`;
* queued deliveries are sent in `sequence` order;
* EventStream emits a `project_resumed` notification (`reason: "billing_reconciled"`).

### Low-balance emails

Crypto Chief emails the project owner when the credit balance falls to or below `$10`, `$5` or `$1`, one email per threshold crossed. A fall to `$0` or below sends one email instead of one per threshold. A threshold sends again only after a top-up takes the balance above it.

### Monthly cost example

A project has `1` active subscription for token transfers with `stages: ["found", "confirmed", "final", "reorged"]` and `2` attached `https` sinks. In one `UTC` calendar month:

* `45,000` unique transfer occurrences match the subscription and receive at least one HTTP `2xx` acknowledgment.
* Each occurrence emits `found`, `confirmed`, and `final` to both sinks (`270,000` total webhook deliveries), plus `800` retry attempts (`attempt_no >= 2`), `5` `sinks/test` calls, and `1,200` control API calls.

| Line item                                                                     | Quantity             | Unit rate     | Credits          | USD         |
| ----------------------------------------------------------------------------- | -------------------- | ------------- | ---------------- | ----------- |
| Delivered occurrences within monthly free allowance                           | `10,000`             | `0` credits   | `0`              | `$0.00`     |
| Delivered occurrences beyond free allowance (`45,000 - 10,000`)               | `35,000`             | `500` credits | `17,500,000`     | `$1.75`     |
| Additional stages (`confirmed`, `final`) of the same occurrences              | `90,000` envelopes   | `0` credits   | `0`              | `$0.00`     |
| Second `https` sink deliveries (`/v1/eventstream/sink/https`)                 | `135,000` deliveries | `0` credits   | `0`              | `$0.00`     |
| Delivery retries (`800`), `sinks/test` (`5`), and control API calls (`1,200`) | —                    | `0` credits   | `0`              | `$0.00`     |
| **Total for `1` subscription**                                                |                      |               | **`17,500,000`** | **`$1.75`** |

A second subscription in the same project that delivers `5,000` of the same on-chain transfers after the `10,000` free events are used adds `5,000` `(subscription_id, occurrence_id)` pairs: `5,000 × 500 = 2,500,000` credits (`$0.25`). The monthly total becomes `20,000,000` credits (`$2.00`).
