Blog

How the gateway bills, meters and protects an account, written down as it is built.

Rates1 min

What the three rates on every model mean

Input, cached input and output are billed at different prices. Here is what each one covers, how reasoning tokens are counted, and why cache hits are reported rather than promised.

Keys1 min

Spend caps and model lists on every key

Give each project its own key, a budget it cannot exceed, and the list of models it is allowed to call. When a key reaches its cap, it stops on its own.

Billing1 min

Reserve, settle, stop: how prepaid billing works

There is no credit line and no invoice. Before a request is forwarded, the most it could cost is held against your balance. Real usage is charged afterwards, and the rest of the hold is released.

Product1 min

A receipt for every request

Each call on each key leaves a record of its tokens, its charge and its status. Export the lot as CSV and reconcile it against your own logs.

Rates2 min

How Prompt Caching Cuts LLM Costs by 85%

Cached input tokens are billed at a fraction of the standard rate. Here is how TokenCLI prices cache hits, which models benefit most, and why cache savings are reported — not promised.