> This page is for version Preview (default).
> For other versions, use one of these documentation indexes:
> - Preview (default): https://docs.preview.paid.ai/preview/llms.txt
> - Current: https://docs.preview.paid.ai/current/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.preview.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.preview.paid.ai/_mcp/server.

# How Paid works

> How Paid turns the work your AI product does into accurate invoices and credit balances, and the objects that do it.

Paid turns the work your AI product does for each customer into revenue you can explain. You tell Paid what happened, and decide in Paid what's billable and what it costs. Paid then measures it, prices it, draws down prepaid credits, invoices the rest, and reports every step back to you and your customers.

Your product code only ever sends facts. Pricing, packaging and contract terms live in Paid, so you can change what and how you charge without shipping code, and every amount on an invoice can be traced back to the events behind it.

## The flow from events to invoices

```mermaid
flowchart LR
  E[Events] --> M[Meters]
  M --> P[Prices and rate cards]
  P --> O[Orders]
  O --> I[Invoices]
  P --> C[Credit balances]
  M --> U[Usage summaries]
```

1. **You send events** for the work you do for each customer, such as a model call or a ticket reply.
2. **Meters** decide what in those events is billable, and measure it.
3. **Prices** and **rate cards** turn measured quantities into amounts, in money or in credits.
4. **An order** puts prices and rate cards on a customer for a term, and produces **invoices** on its billing cycle.
5. Usage priced in credits draws down the customer's **credit balance**; usage past it is overage, billed at the credit currency's `conversion` when it has one.
6. **Usage summaries** report usage and spend to you and your customers.

## The objects

| Object          | What it does for you                                           | ID prefix | Guide                                                             |
| --------------- | -------------------------------------------------------------- | --------- | ----------------------------------------------------------------- |
| Event           | Records something you did for a customer                       | `evt_`    | [Send events](/usage/sending-events)                              |
| Meter           | Decides what's billable, and measures it                       | `mtr_`    | [Meters](/usage/meters)                                           |
| Customer        | A company you bill, optionally under a parent that pays for it | `cus_`    | [Customers](/customers/customers)                                 |
| Customer unit   | A team, environment or person inside a customer                | `cu_`     | [Customer units](/customers/customer-units)                       |
| Customer alias  | Another system's ID for a customer                             | `als_`    | [Customer aliases](/customers/customer-aliases)                   |
| Segment         | A named class of customers, such as key accounts               | `seg_`    | [Segments](/customers/segments)                                   |
| Product         | Something you sell, in your catalog                            | `prod_`   | [Products](/catalog/products)                                     |
| Price           | What a product charges                                         | `prc_`    | [Prices](/catalog/prices)                                         |
| Rate card       | Many usage rates for one product, by dimension                 | `rc_`     | [Introduction to pricing](/core-concepts/introduction-to-pricing) |
| Plan            | Prices sold together, on an upgrade path                       | `plan_`   | [Plans](/catalog/plans)                                           |
| Order           | Puts prices and rate cards on a customer for a term            | `ord_`    | [Orders](/orders-and-billing/orders)                              |
| Commit          | A spend commitment on an order                                 | `cmt_`    | [Commits](/orders-and-billing/commits)                            |
| Seat            | A seat price assigned to a person                              | `seat_`   | [Seats](/orders-and-billing/seats)                                |
| Credit currency | What non-money amounts are in, such as credits                 | `cc_`     | [How credits work](/credits/how-credits-work)                     |
| Credit grant    | Adds credits to a customer's balance                           | `cgr_`    | [Credit grants](/credits/credit-grants)                           |
| Credit hold     | Reserves credits before work runs                              | `hold_`   | [Credit holds](/credits/credit-holds)                             |
| Usage summary   | Reports usage and spend over time                              |           | [Usage summaries](/usage/usage-summaries)                         |

Anywhere the API asks for one of these, it takes Paid's ID or, where the object has one, your own ID (`externalId` or `key`).

## Your account

When you sign up to Paid you become a **user**, with your own login, in your company's Paid **organization**. Your API keys, your pinned API version and the betas you're enrolled in belong to the organization.

A **production organization** bills real customers. A **sandbox organization** belongs to a production one and never bills anyone, so use it to build and try things out. A key from a sandbox starts with `paid_sk_test_`, a key from production with `paid_sk_live_`, and every object says which it's in with `livemode`. [Set up your account](/get-started/set-up-your-account) walks through creating both.

## API versions and betas

The API lives at `https://api.paid.ai/v1`. Breaking changes ship as a new **dated version**, the first being `2026-11-01`. Your account is pinned to a version, and a single request can try another with the `Paid-Version` header. New features start as **betas**, which a request switches on with the `Paid-Beta` header. See [Versioning](/developers/api/versioning).

## Next steps

* [Make your first request](/get-started/first-request): call the API with your key.
* [Metering](/core-concepts/metering): the next of the core concepts behind how Paid bills.
* [Migrate from the legacy API](/developers/api/migrate-from-legacy): the new names for what you already know, and how to move an integration across.
* [API reference introduction](../api-reference/introduction): authentication and headers.