# Billing and Usage

You pay for the AI work, in arrears. There is no subscription and no prepayment: GoSmarter invoices you once a month for the credits you used.

## Credits

One credit is one page.

| Work | Credits |
|---|---|
| Scanning a multi-supplier pack | 1 per non-blank page scanned (`scanCredits`) |
| Extracting a certificate | 1 per page extracted, per certificate (`extractCredits`) |
| Classification-only work | none |
| Failed work, including a failed pack split or a failed page | none |
| Mock accounts | none: mock usage is never billed |

A job's `usage` already reports its own scan and extraction pages. A repeated or redelivered result never charges twice.

## Price

GoSmarter agrees a **price per credit** and a **currency** with you when your account is set up. `GET /v1-preview/account` shows them as `pricePerCredit` and `currency`. A month's amount is the credits used times the price.

## Monthly usage report

`GET /v1-preview/usage-report?month=2026-11` returns one UTC calendar month (the current month when `month` is left out):

- `totals`: jobs, certificates, scan credits, extraction credits, total credits and `amount`.
- `jobs`: each job with its scan and extraction credits and, for every certificate, its supplier and `sourcePages` range, so a multi-supplier pack reconciles with the invoice line by line.

The `amount` in `totals` is rounded to two decimal places and is the figure invoiced. Job and certificate amounts are exact (not rounded), so they may differ from the total by fractions of a penny. `final` is `true` once the month has ended and the figures can no longer change. A mock account always gets an empty report.

## Monthly credit cap

Your account can have a **monthly credit cap**: the most credits you can use in a UTC calendar month. It is the spending cap you agreed with GoSmarter.

- GoSmarter is alerted when you reach **80%** of the cap, and again when you reach it, and will contact you.
- At the cap, `POST /v1-preview/jobs/{jobId}/submit` returns **`402`** with a message saying the cap was reached. Jobs already accepted finish normally. New jobs are accepted again when GoSmarter raises the cap or the next month starts.
- The cap counts credits for work that has completed. Jobs submitted at the same moment, or already running, can take usage past the cap, and a burst of large pack jobs submitted before any of them completes can overrun it by more than slightly. Every credit of that overrun is billed. Counting in-flight pages in the check is planned (GoSmarter issue #2363).

`monthlyCreditCap` is shown by `GET /v1-preview/account`; no value means no cap.

## Invoices

Invoices are issued by GoSmarter in the first days of each month for the month before, in your currency, from the same usage the report shows. Compare the invoice with the report for that month; if they differ, contact GoSmarter.
