Skip to content

AI assistant spending and limits: what it cost and who ran out

Describes AI Agent 0.2.0.

Each user of the AI assistant has a daily and a monthly spending limit and a number of turns per day. AI Agent > Spending shows what everyone spent, and the limits stop a person’s assistant when they run out.

Where to find it

In the admin sidebar, open AI Agent, then Spending (/admin/agent/spending). You need the Manage the AI assistant permission, which the Admin role holds from the start.

The limits themselves are set in Settings > AI Agent (for everyone) and on AI Agent > Users (for one person).

The AI Agent spending page: totals for today and this month and a per-person table, empty here The AI Agent spending page: totals for today and this month and a per-person table, empty here

Spending: what the assistant cost, per person.

The Spending page

Two cards at the top show the total for Today and This month, each with the date or month it covers.

The table lists everyone who used the assistant this month, also someone who no longer has the permission, the biggest spender this month first:

  • User: the email.
  • Today and This month: what they spent, in US dollars.
  • Turns today: how many messages they sent the assistant today.

With no use this month, it says Nobody used the assistant this month. The page shows the numbers as they were when you opened it; reload it to see new ones.

How money and turns are counted

  • Money is what the AI module’s request journal recorded for the person’s assistant calls, picture descriptions included. Failed calls that still had a cost count too.
  • A turn is one message the person sent, in any of their chats.
  • The day and the month are those of the site’s time zone. Daily limits reset at midnight, monthly ones on the first day of the month.
  • Money is counted only on endpoints whose calls get a cost in the journal. On any other, only the turn limit applies, and Settings > AI Agent and AI Agent > Users say so. A picture’s description counts against the vision model’s endpoint; if that model has no price, descriptions aren’t counted as money at all.

When a limit is reached

Limits are checked when a turn starts. A turn that started under its limits runs to its end, even if it goes past them.

  • At 80 % of a limit, the user gets an in-app notification, for example “You have used 160 of your 200 AI assistant turns for today.”
  • When a limit is reached, the user gets another notification, and the chat refuses new messages with a notice such as You have reached your daily spending limit for the assistant. It resets at midnight., You have reached your monthly spending limit for the assistant. It resets on the first day of next month. or You have used all your assistant turns for today. They reset at midnight.
  • If the user’s Tell the watchers when this user reaches a limit is ticked (AI Agent > Users), the people under Who is told about limits in Settings > AI Agent, or every Owner if nobody is chosen, get a notification of the type AI assistant limits. Each watcher can switch that type off for themselves.

Each notice is sent once per limit and period, however often the person tries again.

The AI module has its own budget too. When that is used up, the chat says The AI budget is used up. and the AI module tells its own watchers.

What it doesn’t do

  • It does not show cost per chat or per message.
  • It does not list past months, only today and this month.
  • It does not stop a turn half-way when a limit is passed.