ospalabs
Glossary

LLM API cost, in plain words

The terms that come up when you put a budget on model API calls, and what each one means in Fuse.

BYOK (bring your own key)
You keep your own provider API keys and accounts. The provider bills you for tokens; a BYOK proxy like Fuse sits in front and does not resell tokens.
Cached input tokens
Prompt tokens the provider served from its cache, usually billed at a discount. Reservations assume no caching; settlement uses the real cached count.
Fail closed
When Fuse cannot check the budget (counter, price table or key decryption unavailable) it refuses the request rather than letting it through unmetered.
fuse_blown (HTTP 402)
The error Fuse returns when a request would cross a ceiling. The provider is never called. The body includes spend, limit, in-flight amount and reset time. Guide: handling 402 →
In-flight spend
Money held by requests that have been forwarded but not yet settled. It counts against the ceiling, which is why Fuse can refuse a request before the meter looks full.
Key cap
A ceiling on a single Fuse key, inside the project ceiling. Used to keep a staging or experiment key from spending the production budget. Guide: staging and production budgets →
Long-context pricing
Some models bill the whole request at a higher rate once input passes a size threshold. Fuse prices those requests at the higher rate.
Output cap (max_tokens)
The most tokens a model may generate for one request. It sets the size of the worst-case reservation; a realistic cap lets more requests run at once under a ceiling.
Settlement
Turning a reservation into the real cost once the provider reports usage. If usage never arrives, the reservation stands; an error before any tokens costs nothing.
Spend anomaly
An hour of spend several times higher than the project's usual hour over the past week. Fuse emails and sends a webhook; nothing is blocked. Guide: cost spike alerts →
Spending ceiling
The most a project may spend in a period, daily or monthly, in a timezone you choose. A request that could push spend past it is refused before it is sent. Ceilings in the docs →
Worst-case reservation
Before forwarding a request, Fuse holds its maximum possible cost: input tokens plus the full output cap at the model's price. The hold is replaced by the real cost when usage arrives.