Gateway
Billing and pricing
A prepaid balance pays for each request at its model’s list price, with no fee on top.
Conifer Gateway bills each workspace from a prepaid balance. A request pays its model’s list price for what it used, whichever provider served it, and there is no fee on top. This page says how a request is held and charged, what costs nothing, how to add funds, and how to use your own provider keys. Every model’s prices are in the public catalog, which needs no key, so you can read them before you add funds: Models shows how.
List prices
Each model has a list price for each thing it meters: input tokens, output tokens, cache reads and writes, web searches. A meter can have more than one price: by tier, such as standard, flex and priority; by variant, such as a cache write kept 5m or 1h; and above a size of request, where a model charges more for a long prompt. The catalog lists each one. The price is the same whichever provider serves the request, less a discount where Conifer gives one, except while a list price is raised, below. A list price comes from the maker’s own published price where it is known; otherwise from two open price lists where they agree, or from the cheapest provider’s full price. Conifer may also set one by hand.
When a list price rises on its own
While every provider at or under a model’s list price has been down for 10 minutes, the list price is raised to cover the cheapest provider above it, where no price would more than double; past double, it isn’t raised. A request that a provider at or under the usual list serves still pays the usual list. The list drops back 15 minutes after a cheaper provider returns, and while raised the catalog marks the model raised, with since when and its usual list.
How a request is charged
Before a request starts, the gateway counts it at its worst case at list price, or at $20 if that is less, or at what it usually costs if that is more. It starts only where two things hold: the balance, less credit that expires today, covers what the requests already running usually cost, this one with them; and that, with a margin of up to $20, covers what they are all counted at. When it ends, it is charged what it actually cost. That can take the balance below zero; after that, nothing new starts until you add funds.
A router’s decision costs nothing: when a router asks its routing model which model to use, Conifer pays for it.
The answer says what it cost, in nanodollars: in x-conifer-cost-nanousd on a whole answer, and in the body’s router object on every answer, a stream’s last event among them. The line-by-line receipt, meter by meter, is in GET /v1/requests/{id} and on the console’s Logs page.
To cap one request, send x-conifer-max-cost-nanousd: a request whose worst case at list price is above it answers 422 no_eligible_model before anything is held or sent. To cap a key’s month, give it a spend limit (API keys).
What costs nothing, and what does
| The request | Charged |
|---|---|
| Refused by the gateway, for any reason | Nothing |
| Failed | Nothing, unless a router moved past an empty answer to another model, or one a provider’s filter stopped before it said anything: that answer is charged, once, as passed_nanousd |
| A stream the provider broke after it started | Nothing |
| A stream whose client went away | What the provider produced: the gateway reads it to the end |
Answered again for its Idempotency-Key | Nothing: the first request was charged once |
| Sent to a router with instructions | The instructions, as input |
When the balance runs out
A request the balance doesn’t cover answers 402 insufficient_balance (in Anthropic’s format, the type is billing_error). When the balance, less credit that expires today, is nothing or less, the message says so, with the figure as it stands, such as $0.00 or $0.02 below zero:
“The workspace has nothing it can hold a request against: its balance, less credit that expires today, is $0.00, and a request starts only where that covers what it usually costs. Add credit.”
When the balance is above zero but short, the message gives what the request usually costs and what it could cost or is counted at, the balance, and how much more it needs, and suggests adding credit or lowering the request’s output cap.
When the balance would cover a request but all of it is set aside for requests already running, the request answers 429 rate_limited with retry-after: 1 instead: it can start once one of them ends. The errors page lists the other causes of a 429.
Add funds
On the console’s Balance page, Add funds opens Stripe’s checkout, which takes a card. Each top-up adds $10 to $10,000 of credit. The workspace’s owner and editors manage billing.
Each top-up also charges a Top-up fee line: the smallest whole-cent total that leaves the full credit after Stripe’s card fee of 2.9% plus 30¢. In cents, the total is (credit + 30) × 10,000 ÷ 9,710, rounded up.
| Credit | You pay |
|---|---|
| $10.00 | $10.61 |
| $100.00 | $103.30 |
| $1,000.00 | $1,030.18 |
The daily cap
A paying account can add up to $500 of credit a day, across every workspace it pays for, until it has a top-up that went through, was not disputed, and is at least 14 days old. After that it can add up to $10,000 a day. A day is the last 24 hours, the cap counts credit and not the fee, and while a payment is disputed it is $500 again.
Auto top-up
With auto top-up on, a saved card is charged whenever the balance falls below a threshold, from $5 to $5,000, to bring it up to a target at least $10 above it and at most $10,000. Each charge adds the top-up fee and stays within the day’s cap, and the card can be removed at any time.
Receipts and refunds
Receipts are Stripe’s: Stripe emails each one to the address given at the workspace’s first payment, and each payment on the Balance page has a Receipt button that opens it. A refund is made by Conifer’s support, not in the console: write to us. Only the payment’s credit that is still unspent can be refunded: it is taken back first, and the top-up fee is returned in proportion.
Your own provider keys
A workspace can add its own keys for any provider in the catalog, today Anthropic, DeepInfra, Google, OpenAI and External Provider: up to 10 keys a provider, on the second tab of the API keys page, Add a provider key. Each key is checked, by listing the provider’s models, before it is kept, and has a priority: First, Fallback or Off.
- A request that names a model uses your keys by their priority. A router uses them only where its Use my provider keys first is on, which it isn’t unless set, and never while it is held to a region;
manual-routerdoesn’t use them. - A request served on your own key takes nothing from the balance and carries no Conifer fee. Its cost is reported at the provider’s published prices, with
x-conifer-own-key: trueandown_key: truein therouterobject. - When your key errors or is rate limited, the request falls back to Conifer’s own capacity and is billed to the balance. That is on unless the owner or an editor turns off Fall back to Conifer capacity.
- What your own keys spend counts toward a key’s spend limit only if the owner turns on Count provider-key spend toward key limits.