# Usage and Billing screens

The app answers two questions on two screens. **Usage** says where the money
went. **Billing** says what your balance is, how to add to it, and lists every
movement on it. Both read the same ledger as the API, so the numbers agree with
[`/api/v1/usage`](pricing-and-credits.md#balance-and-statement) and
`/api/v1/usage/summary`. Every figure is in US dollars, and a month is a UTC
calendar month.

Only charges count as spend. A purchase, a grant, and the surcharge a model
owner is paid are not spend.

## Usage {#usage}

Usage opens on the current month, **Spent this month**, with these views:

- **By category**: the month's spend by kind of charge, such as training and
  inference.
- **By project**: each project's share. Projects of other accounts that you used
  through a share fold into one **Models others share or publish** row with no
  names; spend that belongs to no project, such as a base model called without
  one, is its own row. The statement lines and the recent charges on Home follow
  the same rule: a charge for another account's model names the model and no
  project (`project_id`, `project_name`, `project_number` and `owner_slug` are
  `null`), because that project is its owner's.
- **By model**: billed requests and cost per model, labelled
  **Your model**, **Shared with you**, **Public**,
  **Base model** or **No longer shared with you**. A model ReOpenly makes and
  hosts is named by its name, such as `ReOpenly/painting-coach`; each row's
  `model_id` is the value to send as `model` for it now (null for a model you
  can no longer call). It shows
  the 100 models that cost the most and says so when it cuts. Shares are of the
  period's total spend, so they do not add to 100% when training was also
  spent. A request refused because the model was warming up or busy was never
  billed and is not counted.
- **By day**: one bar per UTC day so far, split into fine-tuning and inference.
  A day with no charges is a true zero. Hover a bar, or press Tab to reach the
  chart and the arrow keys to move from day to day, to read that day's cost.
  Home's **Balance and spend** tab draws the same bars as **Spend by day**; a
  month with no charges there says **No spend this month**.

Change the period with the **Period** menu. It lists **Last 7 days** (the seven
UTC days ending today, a rolling window), then the current month marked
**(so far)**, then each earlier month, newest first. Usage opens on the current
month. An earlier month is a **past month**: it is marked **closed · final** and
links to that month's statement in Billing. Last 7 days is not a month and has no
such marker. Only months with activity are offered, so an empty month is never
shown as "you spent nothing".

A figure an older charge did not record, such as training minutes or tokens
served, reads **not recorded**. It is `null` in the API and is never shown as 0.

Through the API:

```text
GET /api/v1/usage/summary?month=2026-10
GET /api/v1/usage/summary?period=last_7_days
```

Send one of `month` and `period`. A key limited to some projects answers
`403 project_not_allowed`.

The app shows **By model** five rows at a time and **By project** six, in two
columns. The API pages the same way: `models_limit` and `projects_limit` (1 to
100) with `models_offset` and `projects_offset` return one page, and
`models_total`, `projects_total` and the offsets in the answer say where it
sits. Without a limit every row is returned. A share is always of the whole
period, whichever page you read.

```text
GET /api/v1/usage/summary?models_limit=5&models_offset=5
```

## Billing {#billing}

Billing shows your balance, **Net this month**, **Add funds**, and the statement:
one row per charge, purchase or grant, with what it was billed on (see
[Balance and statement](pricing-and-credits.md#balance-and-statement)).

Open a row to see its entry. A purchase made with a card also shows **Paid**
(the amount and currency the card paid, and the card Stripe charged, such as
"50.00 USD by card, Visa ···· 4242") and **Payment** ("Authorized, then
captured by Stripe"). The card is read from Stripe when you open the entry; if
Stripe cannot be asked at that moment the entry says so and offers **Try
again**. Only the brand and the last four digits are shown.

Billing has no refresh button. It reads your statement, what is in progress and
your saved card again when you come back to the page (the tab shown again or
the window focused, at most every 30 seconds), and when a run listed under **In
progress** is charged. Adding funds updates it too.

Home's **Balance and spend** tab lists your four latest charges under **Recent
charges**, each named by its model or project with its kind and date under it.
If your balance cannot be loaded, the card reads this month's statement instead,
so it lists this month's charges only.

### Cost so far {#billed-so-far}

Two things can be under way and not yet on the statement. Billing lists them
under **In progress**:

- **A run in training.** It shows **Cost so far** and an amount at the run's frozen
  rate, with the project, the run number and when training began. The cost so
  far updates while the run trains; it is charged when the run ends, and the
  amount moves into the statement then. Pausing a run also charges the training
  up to the pause. A run that fails is not charged for the training it was doing
  when it failed. A run that never began training costs nothing and is not listed.
- **A purchase in progress**: a card that is authorized or captured but whose
  funds are not yet on your balance (at most the 10 newest).

Nothing under **In progress** is counted in **Spent this month** or **Net**
until it is charged or added. It does not reduce your balance either: only a
completed charge does. The same lists are
`GET /api/v1/billing/in-progress` and appear on a past month's Billing too.

### Export CSV {#export-csv}

**Export CSV** downloads the month's statement. The file is built in your
browser from the statement's pages, not by a separate request, so it is the same
document you are reading. It waits until every page has loaded; the progress
reads "Exporting n of m" and you can cancel. The total is the month's
`entries_count` from `/usage/summary`. If a page cannot be loaded, nothing is
downloaded.

The file has one line per ledger entry, in UTC (ISO 8601), with these columns:
when, what, project, model, run, minutes, rate per minute, input tokens, output
tokens, reasoning tokens, cached tokens, input and output price per million
tokens, multiplier, what it was billed on, surcharge, and amount. A value that
was not recorded is left empty, never written as 0. A project or model name that
starts with `=`, `+`, `-` or `@` is prefixed with an apostrophe, so a
spreadsheet reads it as text and not as a formula.

On screen the statement shows the most recent 500 entries and says so; the CSV
holds the whole month.

## Add funds {#add-funds}

**Add funds** opens a dialog in the app, over the page you were on. There is no
hosted payment page and no redirect: the card form is embedded.

1. Choose an amount, or enter another: whole US dollars, from $1. With **BRL**,
   the amount is still US dollars; today's rate is applied once and **locked**.
2. The quote is locked and shown, with the rate when you pay in BRL.
3. Your card is **authorized**. The authorization is for the purchase amount
   only; it is not an extra fee, and a pending authorization may briefly appear
   on your card.
4. The charge is **captured** only when the funds can be added, and your
   balance updates. The dialog checks every second and closes by itself. If it
   takes long, close it: Billing keeps checking. A lost connection does not
   stop it. Billing checks every second for 10 minutes; for a purchase that is
   still not settled it then checks again when the page reads your billing
   again, such as when you come back to it.

If your card is declined, nothing was charged. If the funds could not be added
after capture, the payment is reversed and no second payment is needed. The API
and the status values are in [Add funds](pricing-and-credits.md#buy-credits).
Adding funds needs a person signed in: an API key gets `403 person_required`
with the `url` of the page.

## Your saved card {#saved-card}

Billing has a **Payment method** card. It shows the card you saved, as
Stripe describes it: the brand, the last four digits and the expiry, with a
**Default** badge, **Update** and **Remove**. With no saved card it says **No
saved card** and offers **Add a card**.

- **Saving.** A card is saved only when you finish **Add a card** or tick
  Stripe's own **Save my card** box in the payment form of Add funds. The box is
  never ticked for you. The
  next time you add funds, the form lists the saved card first, and **Use
  another card** is one click away. The purchase is the same either way: the
  price is locked, the card is authorized first, and the charge is captured only
  when the funds are added.
- **Add a card.** With no saved card, **Add a card** opens Stripe's card form in
  place. Nothing is charged now. When Stripe confirms the card it becomes your
  saved card, and the page says **Card saved**.
- **Update.** **Update** opens Stripe's card form in place. Nothing is charged,
  and your balance and past purchases do not change. When Stripe confirms the
  new card it becomes your saved card and the old one is deleted from your
  account, so there is one saved card.
- **Remove.** **Remove** asks first. Stripe then deletes the card from your
  account; the next time you add funds you enter a card again.
- **What ReOpenly keeps.** Your card goes to Stripe, never to ReOpenly. ReOpenly
  keeps Stripe's reference to the card and what Stripe returns about it: the
  brand, the last four digits and the expiry. It never has the card number, the
  security code or the name on the card.

Saving, updating and removing a card need a person signed in: an API key gets
`403 person_required` with the `url` of Billing. The routes are in
[Saved card](pricing-and-credits.md#saved-card).
