Skip to content

Ask AI

Powered by Blaze

Answers come from E2E Cloud documentation. AI can make mistakes.

Monitor usage and cost

View as Markdown

Watch how much your project uses Token Factory, which models take the most tokens, how often requests fail, and what one model costs. Analytics covers every model in the project, and a model’s Metrics covers that model alone. The figures can be up to a minute old.

In TIR, open the project. In the side menu, under INFERENCE, select Token Factory, then select Analytics. Choose the last 24 hours, 7 days, or 30 days; the page opens on 30 days.

Requests and Token volume are the totals for the period, each with its change from the period of the same length before it. Error rate is the share of requests that failed, with the number of failed requests beside it. Prompt / completion splits the tokens into those your requests sent and those the models returned. Cached tokens and Cache hit rate show how much of the prompt was served from the prompt cache; those tokens are billed at the cached input price instead of the input price, as Tokens and billing explains.

Below the figures, Requests over time and Token breakdown show the period as charts, and the model table lists each model’s Requests, Tokens, and Share of Tokens, busiest first. A model you do not expect in that table can mean that a key has reached someone it was not meant for; see Block, unblock, or revoke an API key.

Analytics counts requests and tokens, not cost. For cost, use a model’s Metrics or your usage in Billing & Usage.

In Token Factory’s model list, select the model. Its Metrics covers the last hour, 24 hours, 7 days, or 30 days, and opens on the last hour.

Requests routed counts the requests sent on to the model. Failed or refused counts the requests that were rejected, refused for their key, or failed at the model, with their share of all recorded requests. Tokens is the total the model read and wrote, split into prompt and completion tokens, and Cost is what those tokens cost at your project’s prices. Half of the requests got a response within Latency p50, and 95 in 100 within Latency p95; latency counts only the requests that reached the model.

The Requests chart splits requests into Routed, Rejected, Upstream error, and Unauthorized, so failed and refused requests show on the chart too. Show table shows the same figures as a table, and Show charts switches back.

Token Factory usage is billed to the account that owns the project, with your other TIR usage. In Project Settings, open Resource Usage and choose Token Factory in Resource Name to see each model’s billed tokens of each kind and their cost for the project; see View resource usage and activity. In Billing & Usage, open Account Usage and choose Token Factory Usage in Resources to see Token Factory across your projects; see Analyse usage.

For how the tokens are priced, see Tokens and billing. For help with a message on Analytics or Metrics, see Troubleshooting TIR Token Factory.

Was this page helpful?