For agents and the people who run them
Inferrail HostedOne budget per run, across your whole fleet.
Give each AI run a dollar ceiling in a request header. Every call in that run shares it, including parallel calls from different agents and machines, and a call that would push the run past it is refused before it reaches OpenAI or Anthropic. You bring your own provider key with each request; we never store it.
Experimental · 250 governed runs a month free · then $0.001 per run · no subscription
Price
A governed run: a distinct work id (X-Inferrail-Attribute-Work-Id) in a calendar month (UTC). Calls inside a run are not charged separately.
At least one call in the run is answered by your provider. A run whose calls all fail, or are all refused by its own budget, costs nothing.
250 governed runs per workspace per month.
Prepaid credits at $0.001 per run: $1 for 1,000 runs, paid in USDC on Base over x402, with no account. Card payment isn't available yet.
Credits are prepaid. No subscription, no auto top-up, no overage bill. When the allowance and credits run out, calls are refused before reaching your provider, with a link to buy more.
Billed by your provider on your own key. Inferrail doesn't resell model access or mark it up.
The open-source gateway is free and does everything on one machine: pip install inferrail. Hosted is for when many agents and machines must share one budget ledger and you'd rather not run it.
Start
POST https://inferrail-cost-gateway.onrender.com/hosted/v1/workspacesreturns a workspace key, once. No sign-up form.- Point the OpenAI SDK at
https://inferrail-cost-gateway.onrender.com/hosted/v1, or the Anthropic SDK athttps://inferrail-cost-gateway.onrender.com/hosted(it adds/v1itself). Use the workspace key as the API key, and send your own provider key inX-Provider-Api-Key. - Name the run and set its ceiling:
X-Inferrail-Attribute-Work-Id,X-Inferrail-Budget-Usd. GET /v1/work/<id>shows what the run cost. For agents,/llms.txtis the whole contract (headers, errors, retries, buying credits) andGET /pricingis the same as JSON. A runnable example shows several agents sharing one run budget.
Past your allowance with no credits left, a call gets HTTP 402 allowance_exhausted, with how to buy credits and when the free allowance resets. Nothing reaches your provider.
What we guarantee
- A run's budget is reserved before each provider call, so concurrent calls can't spend the same dollar. The method and raw results are public: per-run budget benchmark.
- Your provider key is read from each request and never written to disk, logged, or returned.
- Receipts hold costs and identifiers, not prompts or responses.
- Each payment adds credits at most once, and only after it settles on-chain.
Experimental. These prices are a first offer and may change; credits you've already bought keep their terms.