Skip to content
Docs · AI spend

Security

AI spend and budgets

What every AI call costs, estimated from its tokens and the model's price, where the money went, and budgets in dollars that alert or stop calls.

Updated

On this page

Yomenie estimates what every AI call through its proxy costs: the tokens your provider reports, times the provider’s published price, or your own price if you set one. Settings › Spend shows where the money went, and budgets set a limit in dollars that alerts people or stops calls.

Everyone opens Settings › Spend. Owners, admins and members who can manage AI providers see the whole workspace; everyone else sees their own spend and their AI teammates’, and the budgets that cover them. For a workspace called acme the page is at https://yomenie.us/app/acme/settings/spend.

How a call is priced

  • The proxy reads each answer’s token counts, keeping apart what was read from the cache, written to the cache and spent reasoning. Cached input costs a fraction of fresh input, so it’s priced on its own.
  • Each model has a price per million tokens: input, cached input, cache writes and output. Yomenie ships the providers’ published prices, with the page and date they came from (Vault › Providers › a provider › Prices).
  • Some providers charge more for a very long prompt (Gemini Pro and OpenAI above a size, Claude Haiku above 100,000 tokens). Then the whole call is priced at the higher rate, as the provider bills it.
  • Your own price (a contract price, a fine-tuned or self-hosted model): open the provider’s Prices, press Edit on a row, and Save. Use published goes back. A change counts from then on; past calls keep the price they were counted at.
  • No price: a model with none is counted in tokens, never as $0, and shows under Models with no price with Set a price. Its calls still go through, under the token limits, unless an owner or admin turns on Refuse models with no price.
  • Estimated calls: when a stream ends early (you pressed stop, the connection dropped), the provider never sends its usage, but it still bills. Yomenie estimates those calls from their size and marks them estimated on the call’s page.

Every figure is an estimate. A later version puts each provider’s real bill beside it.

Where it went

The page shows this month so far, then Where it went by Team, Project, Person, AI teammate, Provider or Model. Days, weeks and months follow the workspace’s time zone, and weeks start on Monday.

Budgets

A budget is an amount in dollars per day, week or month on:

  • the workspace, a team, a project (or one of its environments), a person, an AI teammate, a provider or a model;
  • as one shared pool, or each their own (every person and AI teammate it covers gets that much);
  • that stops calls when it’s used up (the default for a new budget) or only alerts.

Every workspace starts with three, which owners and admins can change or remove:

Budget Amount When used up
Workspace $500 a month Only alerts
Each person $20 a day Stops calls
Each AI teammate $20 a day Stops calls

Press Add budget, or Edit on one, and the form opens in the list. Owners, admins and members who can manage AI providers set any budget; an AI teammate’s managers set its budget, a team’s managers their team’s, a project’s managers their project’s. Every change is in the audit log.

A call goes through only while every budget that covers it with Stop calls has room. One call can finish a little over (Yomenie checks before a call and counts it after). Token limits set by hand still apply; the built-in token defaults now apply only to models with no price.

Alerts

At 50%, 80% and 100% of a budget, whoever can set it gets a notification (and a push on the phone), once each period. The people it covers are told at 80% and when it stops them.

When a budget stops a call

Your AI tool gets an answer it can act on, for example:

Refused: Platform team’s budget is used up ($401.20 of $400.00 this month, estimated). It resets on 1 Jan, 00:00 UTC. Maya, Priya can raise it: set_budget { budget: "Platform team", amount: 600 }. Spend: https://yomenie.us/app/acme/settings/spend

From your AI tool

Everything on the page works through MCP:

  • get_spend: the period’s total and breakdown, models with no price, and the budgets.
  • list_budgets, set_budget (“$400 a month for Platform”: { scope: "team", target: "Platform", amount: 400 }) and remove_budget (by id).
  • set_model_price: your own price for a model, or published: true to go back.
  • set_spend_settings: refuse models with no price.
  • what_can_i_use shows the budgets that cover you and what’s left.
  • set_proxy_limit still sets token limits.