Costs and spending limits
What the models cost, the price of each model, and monthly limits.
Every model call Orlok makes is recorded: conversations, summaries of long conversations, documents filed in the wiki, proposals from conversations, critical reading of the wiki, images and scanned pages, and the playground. Each call records whom it was for (office and person), the model, the purpose, the tokens the provider reported and what they cost. Administrators read it at Admin → Costs.
Prices
Each provider in Models is billed in one of two ways:
| Billing | Meaning |
|---|---|
| Billed per token | Set the price of each model in US dollars per million tokens: input, cached input, cache write and output. |
| Included | Local models (Ollama) or a subscription, for example through a proxy: calls are counted, not priced. New Ollama providers start as included. |
A call to a per-token model without a price is unpriced: its cost is unknown, not zero. Admin → Costs lists the models without a price with the number of calls waiting for one. A price applies from the moment it is saved: earlier calls keep the price they had, or stay unpriced, so changing a price never rewrites the past.
Spend
Choose a month to see the total spend and the number of calls, by office, by person, by model and by purpose, with unpriced calls shown apart. Spend is never shown by colleague: colleagues are private to their owner, administrators included.
Monthly limits
Set a limit in US dollars per calendar month (UTC) for the whole installation, an office or a person, with a warning threshold (80% by default). Limits are checked before every model call:
- when a limit is reached, the colleagues under it stop calling the model until next month; the answer says the monthly spending limit has been reached, and a document being filed stops and can be filed again later. A command already running finishes;
- administrators are notified once per limit and month, at the warning threshold and at the limit, by email, push or Telegram, and the event is written to the installation log;
- only priced calls count: a limit whose scope has unpriced calls this month says so next to its spend;
- the playground is counted but never stopped, so a provider can always be tested;
- raising or removing a limit applies from the next call, with nothing to resume.
Give every per-token model a price. Unpriced calls do not count towards limits, so a model without a price is a gap in the limits. Embeddings for wiki search are not counted: the built-in model runs on the server.