Docs menu

Concepts

Billing and limits

How prepaid credits, computed cost, compile caps, per-call reservations and spend limits fit together.

Prepaid credits

Seldon bills from one prepaid workspace wallet, in USD. A signup grant, a card top-up, and a promo code are the same credits. Add credits under Add credits in Billing by card checkout through Stripe, or redeem a promo code. Card checkout is limited to workspace admins. Any member can redeem a promo code.

Billing shows the settled balance: the sum of ledger entries. Available credit is that balance minus credits reserved for work in progress. Gateway requests and Functions draw on available credit. When none is available, gateway requests return 402 PAYMENT_REQUIRED, except responses served from the cache, which are free. A running compilation can reserve its remaining cap, so other work can be refused while Billing still shows the earlier settled balance.

Starter credit

Sign-up is open and creates a workspace and default API key. Eligible new workspaces receive one $10 starter grant. Gmail and Googlemail addresses do not receive the grant; other domains are subject to checks for disposable addresses and automated sign-up patterns. These checks affect starter credit, not account access. If your workspace has no available credit, add funds in Billing before authorizing paid work.

What a gateway request costs

Each non-streaming response reports usage.computed_cost: the tokens used, priced at the serving offering's rates, including any discounted cached input tokens. Streamed responses are priced the same way; their cost appears in Calls & usage. Model prices are listed on Models.

When structured-output enforcement asks a provider again, every attempt is counted.

What Functions cost

Functions have two separate kinds of spend, both drawn from the same wallet:

SpendWhenControl
CompilationPreview, evaluation tests, the rubric judge, search, measurement, and optional prompt refinementThe compile cap you authorize, $10 by default and at most $100
CallsEach call to an activated function, plus Try and CompareA per-call reservation, released down to actual usage

The compile cap is the most one run can charge. Authorizing it does not debit the whole amount.

  • While a preview or optimization job is waiting in the queue, nothing is reserved, and waiting is not charged.
  • When that step starts, Seldon reserves the remaining cap: the cap minus what the run has already spent. Each provider call settles out of that hold at that model's rates on Models, rounded up to the nearest $0.000001.
  • After preview, the unused hold is released while you review the quote. Calls whose usage is still unknown stay reserved. An evaluation test reserves the remaining cap again until the test finishes, then releases what it did not spend.
  • Optimize reserves whatever remains of the cap when optimization starts.
  • When the run ends, or you cancel it, completed usage stays charged. Unknown provider calls stay reserved until they settle. The rest of the cap is released.

The function run shows Spent and Held. A queued job does not start when available credits are below the remaining cap, or when the reservation would exceed a spend limit. Add credits if the balance is short, then prepare a new preview.

Compilation charges the usage that actually ran, even when no executable alternative is found or the run is cancelled. Cost per execution in the comparison report leaves out failed calls and this offline work. The run's spent total includes them.

Ledger lines appear as each call settles: prompt.compile for a run, prompt.try and prompt.compare for dashboard trials, and prompt.serve for calls through the alias.

Each function call reserves up to $10 while it runs (revisions created before this limit use $1) and is charged for the tokens of every stage that ran, including fallback. The reservation is released down to that usage. Functions always run on workspace credits, not BYOK.

Spend and rate limits

  • Available credit. Gateway requests, compilation, and function calls stop when available credit is not enough for the next reservation.
  • API key limits. When you create a key, Advanced offers a spend limit and a requests-per-minute limit. They apply to function calls. A compilation is admitted from available workspace credits.
  • BYOK budgets limit spend on your own provider credentials. BYOK usage never counts against workspace spend limits. See Bring your own key.

Limits

See Limits for every numeric limit.

Billing and limits | Seldon