A request fails in two boring ways: no online machine serves the model, or every candidate is saturated. Instead of answering 502, the endpoint can buy the capacity you are missing.
Fallback, never a replacement
Marketplace buying is off by default. When you switch it on, per workspace or per endpoint, the order stays the same: your own machines first, always. A request only reaches the marketplace when the pool cannot serve it.
Your spending rules
- Maximum price. Set a cap per 1M input and output tokens. Providers asking more are never used.
- Monthly budget. Optional. When it is reached, requests are refused with
402 marketplace_budget_exceededinstead of silently spending more. - Privacy preference. Prefer privacy-first providers by default, or require them.
You pay the asking price of the provider that served the request, never above your maximum, invoiced monthly with a card on file.
Free machines first
Some workspaces share capacity for free. Keep Free machines only on and those are always tried before paid ones, no card needed. Without a card you wait a few seconds for a free slot before the request is refused; with a card and budget it falls through to a paid machine.
Honest limitations
Your prompt and the model output pass through a provider's computer. Tokmine does not store request or response bodies, but it cannot control what a provider's machine does, so do not send secrets or regulated data. Providers can also be slower or less reliable than a hosted API, and output can be wrong: validate what you rely on.
See the market
The marketplace page lists live asking prices per model: lowest, median, highest, provider count and the share that is privacy-first. Buying rules are in the marketplace docs.