Embedding Spend
Embedding spend is every token your account sends to an embedding model, counted across all models, split by list and by work, with an optional monthly cap and alerts.
What is counted
- Every embedding call made for the account: indexing records (documents and media included), live searches, and batch runs.
- Not counted: the short check that runs when a model is added or edited.
- Each count is split by list, use (
index or search), kind and model, per UTC day and month.
Tokens are estimates
- Providers do not return usage to us, so the count is an estimate. Your provider’s bill can differ.
- Text counts characters divided by 4.
- Each image, document, video or audio embedding counts a fixed weight:
| Kind | Tokens per embedding |
image | 1,000 |
document | 2,000 |
video | 5,000 |
audio | 2,000 |
The monthly cap
- One cap covers every embedding model on the account, per UTC month.
- The cap in force is the account’s own, else the platform default, else none.
budget_source says which: account, default or none.
- Set it on the account’s Usage tab, or over the API and MCP. Clearing it falls back to the platform default.
- A change takes effect within a minute.
- At the cap, new and changed records are saved without vectors, and searches use keywords only, until the month turns or you raise the cap.
- After raising it, rebuild the list’s vectors; list health shows
vectors-incomplete until then.
- Each embedding model also has its own monthly budget; both apply.
Alerts
- Each alert is emailed to the account owner and sent as a webhook.
- 80% of the cap: once a month.
- 100% of the cap: once a month.
- Spike: once a day, when today reaches 3 times the average of the last 7 days and at least
spike_min_tokens (2,000,000 unless changed).
- Each alert names the top lists, uses and models.
Over the API and MCP
| Do | API | MCP tool | Needs |
Read a month’s use (month as yyyy-MM, default this month) | GET /account/embedding-usage/{account-name}?month= | account_embedding_usage | account:read |
| Set or clear the cap | PUT /account/embedding-budget/{account-name} { "monthly_token_budget" } | account_embedding_budget_set | account:edit |
monthly_token_budget is at least 1, or null to clear the account’s own cap. The cap call returns the same as the usage call.
- The usage response has
tokens, monthly_token_budget, budget_source, percent, over_budget, today_tokens, usual_day_tokens, spike_min_tokens and days.
- It also has
by_list, by_use, by_kind, by_model (each name, tokens, percent) and slices (every list, use, kind and model combination).
Webhook events
| Event | Sent when | Payload |
embedding.budget-warning | Use reaches 80% of the cap. | account_name, month, tokens, monthly_token_budget, percent, by_list, by_use, by_kind, by_model |
embedding.budget-reached | Use reaches the cap. | Same as embedding.budget-warning. |
embedding.usage-spike | A day reaches 3 times the usual day. | account_name, day, tokens, usual_day_tokens, by_list, by_use, by_kind, by_model |
Each by_ list holds the top 5 as { "name", "tokens", "percent" }.
When a bill is higher than expected
- Call
account_embedding_usage.
- The top of
by_list and by_use says which list and what work spent it.