DocsPlatform

Usage

What the usage page and the usage API count, how each counter is measured, and how to keep numbers low.

On this page

Generic Translation keeps daily counters for every project. The Usage page of an organization shows them as charts (with a table view) for the last 7, 30 or 90 days, as totals and per project. The same data comes from GET /v1/orgs/:orgId/usage with a from and to date. Any member of the organization can read it, including viewers.

The hosted instance is free during the preview, with fair-use rate limits; billing is switched off. These counters exist so you can understand your own use, and so the operator can see load. sourceTokens is also the unit that the free monthly allowance and, once billing is on, the per-token rates are measured in. See billing and pricing.

The counters

Counter What it counts
translatedStrings Pairs of (string, language) that the model translated successfully. Each pair counts once, across runtime, batch, file and glossary jobs. Retranslating counts again.
cachedStrings Pairs that were requested but already had a translation, so no model call was made.
sourceTokens An estimate of the source text sent to the model: characters divided by four, rounded up. It is not the model’s own token count.
runtimeRequests Calls to POST /translate.
cdnRequests Successful requests to the project’s /cdn/ URLs (both 200 and 304). Counted in small buffered batches, so recent requests can take a moment to appear.

Days are UTC days. The daily list in the API has an entry for each day with activity; the dashboard fills the gaps with zeros.

The dashboard also shows a cache-hit figure: cachedStrings divided by cachedStrings + translatedStrings.

Reading the numbers

  • A high cache share means your content hash is stable and you are not paying to translate the same text twice. It is what you want.
  • A steady stream of runtimeRequests with a high translatedStrings count means the app is translating on demand: dynamic content, or strings that were never extracted. Extract them and use batch translation instead.
  • Large cdnRequests are normal; serving published maps is the cheap path.

Keeping usage down

  • Do not change a message’s wording or context without need: either changes its hash and creates a new string. See hashing.
  • Translate in batches from CI, not per request, and publish to the CDN so users never hit the API.
  • Use force on batch submissions sparingly: it re-translates everything it is given.
  • Delete strings you no longer use in the editor, so jobs do not keep filling them in for new languages.

Limits

Beyond the counters, two rate limits apply (sign-in per IP, runtime translation per key); see rate limits. Uploaded files are limited to 1 MB each, batch calls to 2,000 entries, runtime calls to 50 strings. Self-hosters set their own limits; see self-hosting.

Something wrong or unclear on this page? Open an issue.

Type to search the documentation.