Skip to content

User costs

User costs view

Description

The User costs page reports the spend of every user in an organisation over a chosen time range. It is a page of the Organisation area: Organisation › Usage & costs › User costs (address /org/<organisation>/usage/user-costs), next to Organisation usage, Costs by department and Live monitor in the Usage & costs section. The former address /finance still works and opens your own organisation's page. Pricing per model is on the Model prices page (Platform › Models & providers).

The view is available to the platform admin role, the tenant_admin role, and the scoped finance role — more precisely, to every role that holds the Manage billing settings permission (the tab is hidden otherwise), so a custom role with that permission also sees it; the per-user figures need the View per-user cost permission. The finance role reads per-user cost and manages billing settings without the rest of the administrative surface. For the exact permissions of the role, see the Finance API. Every other role sees No access at the page's address.

The organisation is the one in the address, and the page asks the server for that organisation's figures (and exports). The server enforces the tenant scope: a finance or tenant_admin caller sees the costs of the own tenant only, whatever the address says; a platform admin may open any organisation. A caller without a tenant receives an error. The invoice-recipient Billing settings card belongs to the caller's own tenant, so a platform admin sees it only in their own organisation.

Summary cards

The view shows two summary cards above the table:

  • The Total cost card shows the total spend across all users in the selected range, with a daily cost trend sparkline below the value.
  • The Users with spend card shows the number of distinct users that recorded a cost in the selected range.

Two controls in the header change every figure on the view:

  • The Time range drop-down list selects Last 7 days or Last 30 days. The default value is Last 30 days.
  • The Currency selector converts the displayed amounts. The conversion is a display value only. The gateway records the underlying cost in US dollars.

Cost per user

The Cost per user table lists one row per user, sorted by cost, with the highest cost first. The table has three columns.

Column Content
User The email address of the user.
Requests The number of billed requests of the user in the selected range.
Cost The total spend of the user in the selected range, in the selected currency.

When no cost exists in the selected range, the table shows the message No cost recorded in this range.

💡 Note: The figures come from the per-leg billing ledger — the same cost attribution that Cost analytics reports. They are the raw provider cost and include calls on the workspace's own provider key, which Budgets do not count. A request to a model without a price and without a built-in fallback records a cost of zero (see Model prices). The request adds to the Requests count but not to the Cost value.

⚠️ Caution: The view joins the email address of each user to the spend of the user. Granting the finance role exposes per-employee spend within the tenant. Confirm the exposure against the data-processing agreement before assigning the role.

Requests without a person (an erased user, an agent or a service token) are not listed in this table and do not count as active users. Inside the selected period they remain in the totals of the page, and a line above the table says how many requests and how much cost that is. Requests older than the request-log retention period can no longer be attributed to a person; the page then shows from which date the per-person figures cover requests. If you narrow the page to a group, only requests attributable to a member are counted, including the usage chart and the period summary. A note with the cut-off date appears only when older requests in the window can no longer be attributed.

Cost of each answer

Below each chat answer, the chat shows what the answer cost, in the currency selected for the account. The amount is the charged cost: the same amount the answer takes from the budget, including the platform margin on external providers. The chat never shows the raw provider price.

  • Sub-agents: when an answer delegates work to sub-agents, the amount includes their cost. Each part is counted once.
  • Own provider key: an answer from a model that runs on the workspace's own provider key is charged nothing by Myra, so it shows no amount and no cost notice. The workspace pays the provider directly; neither the prepaid wallet nor any budget limit counts it (see Budgets). Parts of the answer that ran on a Myra-hosted model are charged and shown as usual.
  • Older answers: answers saved before this feature existed show no cost.
  • Free answers: an answer that cost nothing (a model without a price) shows no amount.
  • Stopped answers: when a user stops an answer while it is being written, the cost appears after the next reload of the conversation.

Who sees the cost. A user with the permission to view per-user costs always sees it. By default this is the admin, tenant_admin and finance roles, and any custom role the permission is given to. Other members see it only when a tenant admin turns on the tenant setting Show the cost of each answer to members. The setting is off by default. On an agent run, the permission of the person who started the run decides, never the permission of the agent's owner; a run that no person started (a schedule, a webhook, a service token) shows no cost while it streams. The server enforces the rule: it removes the amount from every response and stream for a user who may not see it.

Proceed as follows to show the cost of each answer to members:

  1. Open Organisation → Overview (a platform admin: Platform › Organisations, then open the organisation) and click on the Edit button.
  2. On the General tab, activate the Show the cost of each answer to members checkbox.
  3. Click on the Save Changes button.

-> Members see the cost of each answer the next time they open a conversation — also of answers written before the setting was turned on (since every answer records its cost); answers saved before this feature existed show none. Turning the setting off hides the costs again the same way.

Cost warning for external models

A tenant admin can set a Cost warning threshold (USD). Under an answer that cost at least this amount, and that came from an external model (a model of a third-party provider, not a model hosted by Myra), the chat shows a notice: This answer reached the cost warning set by your administrator. with the hint A Myra-hosted model can answer at a lower cost. An answer on the workspace's own provider key costs nothing in Myra's billing, so it never shows the notice.

  • Only where the cost is visible. The notice appears only for a user who sees the cost of each answer (see Who sees the cost). For every other user the server sends no notice, as it sends no amount.
  • Myra models never warn. An answer from a Myra-hosted model shows no notice, whatever it cost. Whether an answer counts as external is decided by the gateway the answer was routed through, both right after the answer and when the conversation is opened later. An answer that cannot be identified as external shows no notice.
  • At or above. The threshold is compared with the charged cost of the answer. An answer that cost nothing never warns. The notice stays after a reload of the conversation and on a fork of it.
  • Empty means off. Without a threshold no notice appears. The threshold is empty by default.

Proceed as follows to set the threshold:

  1. Open User Management → Organisation (a platform admin: Organisations, then select the organisation) and click on the Edit button.
  2. On the General tab, enter an amount in Cost warning threshold (USD). The amount must be above 0 and may have up to 4 decimals. Leave the field empty to turn the notice off.
  3. Click on the Save Changes button.

-> The notice appears under matching answers the next time a conversation is opened, and on answers that are written from then on. An invalid amount shows Enter an amount above 0 (at most 4 decimals), or leave it empty. and nothing is saved. A change of the threshold is recorded in the audit log.

Setting the invoice recipient

A Billing settings section with an Invoice recipient text field appears below the summary cards when the tenant feature flag billing_settings_enabled is turned on. The section is hidden by default, because the invoice-recipient value has no downstream consumer yet. When the section is absent, the flag is off.

The Invoice recipient field sets the email address that invoices are addressed to. The section also shows the current Plan of the tenant as a read-only value.

Required role: admin, tenant_admin, or finance.

Proceed as follows to set the invoice recipient:

  1. Enter the email address in the Invoice recipient text field.
  2. Click on the Save button.
    • The view shows the message Saved.

-> The gateway stores the email address as the invoice recipient of the tenant.

To clear the setting, leave the Invoice recipient text field empty and click on the Save button.

💡 Note: The Invoice recipient field accepts a valid email address of up to 255 characters. The view rejects an invalid address with the message Enter a valid email address. and stores nothing.

See also