2.6 KiB
Provider pricing
What our model providers charge, and where the authoritative numbers live.
The authority
The gateway's own per-model costs are the authority — they are what the
response headers (x-litellm-response-cost) and member billing both read. They
live in the LiteLLM config on the gateway's persistent volume
(/app/data/config.yaml), under each model's model_info, as USD per token
(the comments in that file quote per-1M rates). Read them live with
GET https://gateway.inference.coop/model/info (master key), or read the config
straight from the running app.
The member-facing mirror is co-op/docs/models.md. When a rate changes,
update both the gateway config and models.md — the config is authoritative,
models.md is the mirror.
A missing cost field makes a paid feature free; a stale one bills wrong; a missing
cache_read_input_token_cost bills cache hits at the full input rate. All three
have happened here.
The pages
| File | Provider | Notes |
|---|---|---|
greenpt.md |
GreenPT | renewable energy; the default model lives here |
tinfoil.md |
Tinfoil | TEE; the local-proxy architecture lives here |
regolo.md |
Regolo | renewable + ZDR; includes our measured usage |
decision-model.md |
GreenPT "Metis" via /v1/systemone |
a pass-through route, not a chat model |
The routing rule
Members reach models through one gateway, which fronts all providers. The per-request cost the gateway records is the number to trust; do not re-derive a price from a provider's public page (they drift, and some are login-walled).
A note on currencies
Regolo and GreenPT both quote in EUR; the gateway converts at the ECB
daily reference rate at boot (regolo.md documents the derivation; the
committed USD fallback is pinned in code/litellm and named there as
FX_FALLBACK_USD, 1.0975 = ECB 2026-11-26). GreenPT's Token Pricing page states
plainly that prices are in EUR for the EU region, and its numerals match the
gateway's EUR table (checked 2026-11-27: deepseek-v4.1-flash-1017 €0.36 /
€0.04 cached / €1.45; glm-5.3 €1.10 / €0.275 / €4.40) — so the conversion
applies to them like Regolo's.
"
Automation (2026-11-18)
eur_prices.json in code/litellm is the EUR source of truth. At gateway boot,
fx_sync.py fetches the ECB daily reference rate and rewrites the USD
model_info fields (fail-open: feed down = keep last prices). A systemd timer
(gateway-fx-restart.timer, 04:30 UTC daily) restarts the gateway so the boot
sync applies the fresh rate. The portal's daily sweep spot-checks ECB vs the
config and emails info@ only if the feed is stale or missing.