Tokens
Tokens shows how much AI usage your documents consume. Tokens are the units AI providers charge for: the text sent to the AI and the text it writes back are both counted in tokens. Everyone on the agent can read this page.
Choose 7 days or 14 days at the top. The period is whole days (in UTC, ending today), so the daily bars add up to the totals.
How tokens are counted
- The numbers come from the AI provider's own usage figures, added up per document over every AI call it made.
- Every retry counts, because it was paid for. So does a fallback to another model.
- A document whose application reported no token counts is left out, never counted as zero. A note says how many documents that is.
- Zyonix has no price list, so it shows tokens, not money. Multiply by your provider's prices to get a cost.
- A document is your application's document id. If your application gives each upload its own id, the same file uploaded twice is two rows.
The four numbers
| Number | Shows |
|---|---|
| Total tokens | All tokens in the period, and the change against the previous period of the same length (for example ▲ 12% vs previous 7 days), or No earlier period to compare with |
| Average per document | Tokens per document, over the documents that reported tokens |
| Spent on failed documents | Tokens used by documents that failed, and their share of all tokens. These are tokens paid for results that were wrong. |
| Most expensive document | The highest number of tokens one document used, and its name |
Hover over a large number to see it in full.
The charts
| Panel | Shows |
|---|---|
| Tokens per day | One column per day, split into Sent to the AI and Written by the AI |
| Where the tokens went | One bar split by the result of each document: Passed, Needs review, Failed, Not checked |
| By AI model | Tokens per AI model, with how many documents used it |
Every chart has Show the numbers under it, to see the same data as a table.
Documents using the most tokens
The documents that used the most tokens in the period, most first. The first 15 are shown; click Show all N for the rest.
| Column | Shows |
|---|---|
| Document | Its name. Click to open the document. |
| Result | Failed if any of its runs failed, otherwise Passed |
| Times processed | How many times this document was processed (for example after a retry by your application) |
| Sent | Tokens sent to the AI |
| Written | Tokens the AI wrote |
| Total | Sent plus written |
Download CSV saves the whole list as a spreadsheet file, zyonix-tokens-7-days.csv (or 14
days), with the columns document, document_id, times_processed, failed, tokens_sent,
tokens_written and tokens_total.
Common tasks
Find out why usage went up
- Compare Total tokens with the previous period.
- In Tokens per day, find the day it rose.
- In By AI model, see whether a model changed.
- In Documents using the most tokens, look for documents processed many times (Times processed) or with very long inputs (Sent).
See what failures cost you
- Read Spent on failed documents and its share.
- On Problems, each group's small print says how many tokens its documents used: fixing the biggest group saves the most.
Share the numbers
Click Download CSV and open the file in a spreadsheet.