Skip to content

Costs and usage ​

The cost dashboard shows what the workspace uses: tokens, estimated costs and answer times, by day, model, agent and channel.

Page: Monitoring → Costs and usage in the main menu, for workspace administrators. Prices are set in Settings → Model prices.

What is counted ​

Every assistant answer already records the tokens the provider billed (input and output) and the time before the answer. The dashboard adds these answers up over 7, 30 or 90 days: estimated cost (tokens × prices below), tokens, answers, average time to answer and the time 95% of answers stay under. Deleted conversations still count, since their tokens were spent. Answers without a token count from the provider are reported.

Model prices ​

In Settings → Model prices, enter for each chat model the price per million input and output tokens, as shown by your provider (OpenRouter shows it on each model page), and pick the currency. Prices only estimate: nothing is blocked or capped. Cached input tokens are counted at the normal price, so the estimate is slightly high.

Monthly budget ​

On the same page, Monthly budget sets the most the workspace means to spend per month, in the chosen currency. Spending is estimated with the prices above, from the 1st of the month (server time) until now; models without a price do not count. Empty or 0: no cap.

Once the budget is spent:

  • Only record it (default): questions go on. The overrun is written once a month to the audit log (action cost.budget_exceeded).
  • Refuse new questions: each new question gets a message saying the month's budget is spent, without calling the model, until next month or until the administrator raises the cap.

The month's spending is computed at most once a minute, so a question may still go through right after the overrun. The cost dashboard shows a "This month: … of …" bar.

API ​

GET /api/v1/usage-dashboard?days=30&tz=Europe/Paris, and GET/PUT /api/v1/tenants/kv/cost-config with {"currency": "EUR", "prices": {"<model id>": {"input_per_million": 0.4, "output_per_million": 1.6}}}.

GSMS Qualiopi · GsKnora engine, based on WeKnora v0.9.0 (MIT License)