· 7 min read· deep-dive · x402 · whitechain
The first public x402 v2 facilitator for Whitechain
whitechain-x402-facilitator is open source, live on Whitechain Sepolia. How it settles, how to use it, what comes next.
One integration · Pay per request
One integration to access models and pay per inference request. Developers who run open-weight models connect them and earn from the requests they serve.
One request, routed
A balance, with a key for you, a key for your team and a key for an agent, sends a request with model auto. Inferit compares three models: Model A at $0.000168, Model B at $0.0006 and Model C at $0.0024 for the request, and picks Model B, the best value. Three sellers offer Model B, each at its own price: one is offline at $0.00056; Inferit picks the cheapest healthy one, at $0.0006.
A key on your balance sends a request with model auto; Inferit picks Model B, the best value of three models, and the cheapest healthy seller of it.
Sellers can list any model, such as Qwen, Llama or gpt-oss, each at their own price. Live models and prices: models.
01 — Why a market
Every lab hands your agents its own key. On Inferit, anyone can sell inference; agents buy it per request.
A key per lab, or one market
The old way: you, a teammate and an agent each connect to several separate AI labs, each with its own credits and its own API key, and the keys pile up. With Inferit: each of the three has one key of its own with a dollar limit, all spending one balance on one market, which reaches every model with a live seller.
The old way: credits and an API key from every lab, a pile of API keys pasted into every agent. With Inferit: one market, and a key with its own limit for each teammate and agent.
You set the limits. Inferit does the shopping.
02 — Automatic model routing
One field in the request. Inferit picks the model, then its cheapest healthy seller, and names it.
How model auto picks
A 1,000-token prompt, a 500-token answer
How model auto picks, for a 1,000-token prompt and a 500-token answer that sends tools. Fit: Models A, B and C fit; Model D does not, it has no tool support. Score: Model A scores 40 at $0.000168, Model B 52 at $0.0006 and Model C 58 at $0.0024; auto picks Model B, the best value, auto:cheap picks Model A and auto:best picks Model C. Fail over: the request goes to Model B’s cheapest healthy seller, then its next seller, then Model A. The x-inferit-model header names the model that answered.
How model auto picks: it keeps the ranked models with a live seller that fit the request; weighs each one's quality score against its price for this request (auto picks the best value, auto:cheap the lowest price, auto:best the highest ranked); and if the chosen seller fails before answering, tries the next seller, then the next model. The response header x-inferit-model names the model.
It reads the request's size and features, never what it says.
03 — For you
Change the base URL and the key. LangChain, the Vercel AI SDK, LiteLLM, CrewAI and the OpenAI SDK all work.
Start in three steps
Three steps: top up your balance in the app with free API credits, create an API key with a spending limit (a new key has spent nothing), and send your first request from your client; the answer names the model.
Three steps: top up in the app with free API credits, create a key with a limit, and send your first request.
Any OpenAI-compatible client
curl
curl https://api-production-c74b9.up.railway.app/v1/chat/completions \
-H "Authorization: Bearer $INFERIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen-2.5-14b-instruct",
"stream": true,
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'OpenAI-compatible is the request format, not the model. Your requests go to open-weight models that sellers list, such as Qwen and Llama.
Guides: LangChain · Vercel AI SDK · LiteLLM · CrewAI
04 — For teams
Each teammate and agent gets its own key, with an optional limit. Revoke one; the rest keep working.
One balance · three keys
One balance with a $10 ceiling and three API keys. design-team, for teammates, has spent $1.20 of its $4.00 limit; support-agent, for an agent, $2.10 of $3.00; nightly-evals, for a CI job, is revoked, and the other two keep working. One usage history covers the balance, with a CSV export.
One balance with a $10 ceiling and three keys, each with its own limit; one key is revoked and the others keep working.
05 — For agents
No account. The agent sends the request, gets a quote, pays with x402 and gets the answer.
One keyless request
Minimum payment, $0.01
One keyless request: the agent posts to /v1/chat/completions with model auto and no key; Inferit answers 402 Payment Required with a quote of at least $0.01; the agent resends the same body with a PAYMENT-SIGNATURE header; Inferit answers 200 OK, names the model in x-inferit-model, and the rest of the payment stays in the agent's balance.
One keyless request: the agent posts with model auto and no key; Inferit answers 402 with a quote of at least $0.01; the agent resends the same body with a PAYMENT-SIGNATURE; Inferit answers 200 and names the model. Each keyless call prepays at least $0.01 and is charged its exact price.
06 — For sellers
List any open-weight model you run, at your price. When yours is the cheapest healthy offer, the request is yours.
One request, from your hardware
A 1,000-token prompt, a 500-token answer
How a seller is paid: you serve a model on your own hardware with Ollama, LM Studio, vLLM, llama.cpp or any OpenAI-compatible server; you list it at $0.08 per 1M input tokens beside sellers asking $0.09 and $0.10; a request goes to yours because it is the cheapest healthy offer; it is settled and its price, $0.00016, is paid to your wallet in ITC.
How a seller is paid: serve any model with Ollama, LM Studio, vLLM, llama.cpp or any OpenAI-compatible server; list it at your price per 1M tokens; when yours is the cheapest healthy offer the request is routed to you; its price is paid to your wallet in ITC.
Savings: the page reads live prices and shows each live model's price against its list price (OpenRouter snapshot, 2026-10-02). How it is computed: savings against list price. Current prices: models.
We provide API credits and integration support.
07 — Trust
Your limits
Your ceiling is enforced by a smart contract; each key's limit is enforced by Inferit's API.
Your prompts
Inferit keeps token counts and prices, never prompts. The seller that serves a request sees it.
Your receipts
Payments to sellers are on chain, per seller. The record is public: it links your wallet to them.
08 — Open source
The seller app, the x402 facilitator, examples and the model catalog are public. The market API and router are private.
The seller app: one command connects Ollama, LM Studio, vLLM or llama.cpp.
Apache-2.0 · npm · Docker
An x402 v2 facilitator for Whitechain merchants, live on Whitechain Sepolia.
Apache-2.0
Runnable examples: LangChain, Vercel AI SDK, LiteLLM, CrewAI and OpenCode.
Apache-2.0
A minimal TypeScript agent that pays per request with x402.
Apache-2.0
The curated model catalog as open data, with licence classes.
CC-BY-4.0
Docs, guides, repositories and live endpoints for Inferit, in one list.
CC0-1.0
Curated x402 resources for Whitechain: spec, SDKs, facilitators and examples.
CC0-1.0
The brand kit: logo files, colour tokens, type and usage rules.
Logo terms in the repo
What Inferit has built, and what comes next.
Apache-2.0
09 — Blog
Build notes from the team: what shipped and how it works.
· 7 min read· deep-dive · x402 · whitechain
whitechain-x402-facilitator is open source, live on Whitechain Sepolia. How it settles, how to use it, what comes next.
Works with LangChain, the Vercel AI SDK, LiteLLM, CrewAI and any OpenAI-compatible client.