GGateYourWay API
Status RU Create key
Ledger

Usage, cache, and billing

The user is charged at the public rates of the selected scope. The final amount is recorded after the response completes.

01

Usage fields

CategoryOpenAI-styleAnthropic-style
Inputprompt_tokens / input_tokensinput_tokens
Outputcompletion_tokens / output_tokensoutput_tokens
Cache readcached_tokenscache_read_input_tokens
Cache writecache_creation_input_tokenscache_creation_input_tokens
json
{
  "prompt_tokens": 1200,
  "completion_tokens": 340,
  "prompt_tokens_details": {
    "cached_tokens": 800
  }
}
02

Charging rules

  • A failed fallback attempt does not charge the balance.
  • Cache read/write is charged only when explicitly reported in upstream usage.
  • Local estimation of missing usage does not invent cache hits.
  • Images use a fixed price per completed generation.
03

Usage ledger

The cabinet shows model ID, endpoint, tokens, cache HIT, rates, cost, status, and request ID.

Open Usage