Cost control
This page tells you how to see and limit what Nuemetrix costs before and after each request. All amounts are in US dollars.
Estimate the cost of a deployment#
Before you make a deployment, you can get its cost per hour and per month (730 hours).
- In the dashboard, open New deployment, fill in the form, and select Estimate cost.
- With the CLI:
ember deployments forecast --model mdl_... --gpu-class l40s --gpu-count 2 \
--min-replicas 0 --max-replicas 4 --average-replicas 1.5 --active-hours 8
- With the API:
POST /control/v1/deployments/forecastwith the body of a new deployment indeployment, and an optionalload.
The estimate gives the cost at the minimum and the maximum replicas. With a load, it also gives the expected cost. It uses the average replicas for the active hours of each day, and the minimum for the other hours. Nothing is made.
The estimate does not include the idle time: after its last request, a replica runs for idle_seconds before it scales to zero.
See the cost of each request#
For a shared model, each response tells you its cost in micro-USD (1,000,000 micro-USD is 1 US dollar):
- The header
X-Ember-Cost-Micro-Usd, andember.cost_micro_usdin the JSON body. - In a stream,
ember.cost_micro_usdis in the usage event. Ask for it withstream_options.include_usage.
Dedicated deployments are billed per GPU-second, not per request. Their responses have no cost.
The header uses the price that the gateway has at the time of the request. Your invoice uses the price of the hour of the request. Near a price change, the two can be different.
Export the usage#
The usage export gives one row for each request: time, API key, model or deployment, status, tokens and cost.
ember usage export --from 2026-10-01 --to 2026-11-01 --format csv > october.csv
With the API, use GET /control/v1/usage/requests?from=...&to=... (at most 31 days for each call, with a cursor for the next page).
See the spend of each key and member#
The Usage page has the panel Spend by API key. It shows the cost of each key on shared models for the period that you select.
- By key shows each key, the member who made it, the number of requests and the cost.
- By member adds the keys of each member. Use it to divide one invoice between people or teams.
- CSV downloads the table.
Dedicated deployments are billed per GPU-second, not per key. Their cost is not in this panel. A key of a member who left the organization stays in the panel as "A former member".
With the API, use GET /control/v1/usage?from=...&to=...&group_by=api_key. Each row has the key ID in key, the requests in units, the cost in cost_micro_usd, and also api_key_name and created_by.
Set budgets#
A budget is a monthly limit in US dollars. It is in addition to the spend limit of your organization. A budget can limit one of these:
- An API key. The budget counts the shared-model tokens and audio of that key.
- A member. The budget counts the shared-model tokens and audio of every key that the member made. This includes keys that the member makes later in the month.
- A deployment. The budget counts the GPU time of that deployment.
Owners and billing members get an email at 50%, 80% and 100% of a budget. For a member budget, the member also gets the emails. At 100%:
- The key gets
402 budget_reacheduntil you raise the budget or the next month starts. - For a member budget, every key of the member gets
402 budget_reached. - The deployment scales to zero. Its requests get
402 budget_reached. - The other keys and deployments of the organization continue to work.
A new key cannot get around a member budget: the next check, within one minute, blocks it too.
To set a budget, use one of these pages:
- Billing, then Budgets: for keys, members and deployments.
- API keys: the Set button on the key's row, or the budget field when you make a key.
- Team: the Set button in the Budget this month column.
Only owners and billing members can change budgets. Admins can see the budgets.
With the API, send POST /control/v1/budgets with one of api_key_id, user_id or deployment_id, and monthly_limit_usd.