Skip to content

01 — Start

Markdown

Inferit documentation

Inferit is the inference layer for AI agents: 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. Buyers reach every model with a live seller through one OpenAI-compatible API: name a model and Inferit picks its cheapest healthy seller, or send model auto and it picks the model too. Agents can also pay per request with x402.

01QuickstartFrom zero to a paid request: ITC from the faucet, a deposit, a key, and your first call with model auto.02Wallet and keysWhy a market, a key per teammate or agent with its own limit, the ceiling, usage and revoking a key.03Automatic routingHow model auto chooses: the policies, the hints, the quality ranking and its sources, the headers and the errors.04API referenceEvery endpoint, both ways to pay (API key or x402), errors and headers.05Agents: x402Pay per request with standard x402 v2: no account, no API key.06agents.mdThe agents' guide as one markdown file: endpoints, model auto, x402, limits, errors and the free ITC faucet.07Coding toolsOpenCode and Cursor, set up step by step.08FrameworksLangChain, the Vercel AI SDK, LiteLLM and CrewAI: base URL, key, model auto, and x402 where the framework takes a custom fetch.09Whitechain escrowCeilings, x402 as a prepaid meter, roles, the circuit breaker, finality and the live parameters.10Pay on Stellarx402 on Stellar: ITC and its contract, free XLM and a trustline, the faucet, the client code and the limits.11Sell from your PCOllama or LM Studio, one command with the open-source seller app, a price in dollars: no open port or domain.12Selling inferenceHow selling works: licences, prices, health, availability and payouts to your wallet in ITC.13Security & trustWhat the contract bounds, what is policy, and what is public on chain.14Models and pricesEvery model on the market, with its list price and the lowest live all-in price.

How a request works

Fig. 1 — One request, three steps
Example prices · 1,000 in + 500 out tokens
  1. Seller A · $0.000168Seller B · $0.000147
    Quote
    Each healthy seller of the model is priced for this request, all-in: the seller's price plus the platform fee. With model auto, the model is chosen first (automatic routing).
  2. Seller A · $0.000168Seller B · $0.000147 · cheapest healthy
    Pick
    Best quote wins. The router sends the request to the cheapest healthy seller on Inferit.
  3. Paid
    The metered cost is charged to the buyer's balance and settled in a batch on Whitechain.
Example prices: $0.000168 at seller A, $0.000147 at seller B. Today's quotes are on the models page. 1 µ is a millionth of an ITC.

Core concepts

  • Automatic model routing. Send "model": "auto" and Inferit picks the model: among the models with a healthy seller that fit the request, the best value on a published quality ranking for this request's price, at that model's cheapest healthy seller. It chooses from the request's size and features, never from what the prompt says. The policies, hints and ranking are in Automatic routing.
  • Units. Prices are in dollars per 1M tokens, charged per inference request. API amounts are integers in millionths of a dollar, sent as strings: "10000" = $0.01, paid as 0.01 ITC. Prices are per 1M tokens: 84000 = $0.084 per 1M tokens. Every dollar of price is paid as one ITC.
  • Money. You pay with ITC, free from Inferit's faucet. WBT is Whitechain's gas token, needed only for transactions you send yourself (deposits, seller registration, withdrawals); x402 agents need none. Settlement to sellers is batched on Whitechain through the MarketEscrow contract. The platform fee is 5% on top of the seller's price; the contract caps it at 10%.
  • Two tokens. ITC (Inferit Test Credit) is the credit you pay for inference with. Inferit's ITC faucet gives 1,000 ITC per address per 24 h, free; it is sponsored, so the claim needs no gas. WBT is Whitechain's native gas token.
  • What a request costs. At the serving seller's own price (before the fee): sellerCost = ceil((uncachedIn × inputPerM + cachedIn × cacheReadPerM + out × outputPerM) / 1,000,000), then fee = ceil(sellerCost × feeBps / 10,000), and the buyer pays sellerCost + fee. Example: a seller asking $0.08 / $0.16 per 1M tokens before the fee: 1,000 input and 500 output tokens cost $0.00016 + $0.000008 = $0.000168. The response header x-inferit-buyer-cost-micro is the authoritative figure for each request.
  • Savings against list price. The home page compares what you pay, all included, for its reference request with the same request at the list price (OpenRouter snapshot, 2026-10-02): list = list input × input tokens + list output × output tokens, the same at the best healthy price, and the saving is floored to a whole percent. A model without a healthy seller, without a list price, or not under list is left out, and so is a model whose list price is not from the snapshot: the snapshot has no Qwen2.5 14B, so its catalog row uses Qwen2.5 7B's list price as a proxy, and the app labels that comparison.
  • All-in prices. Every price on the site and in the API is what the buyer pays: the seller's price plus the platform fee (5% by default, capped at 10% by the contract). Sellers are paid exactly their own price.
  • Two ways to pay. With an API key, each request is charged to your prepaid balance, under your ceiling. Without a key, the API answers 402 with a quote, and an agent pays for that one request with x402: no account.
  • x402 is a prepaid meter. x402 can express $0.000001, but every x402 payment is an on-chain transaction that costs gas. So an agent's payment, at least $0.01 (0.01 ITC), is credited to its own balance, and each request is charged its exact µ cost against it. See Agents.
  • Settlement. Usage settles in batches on Whitechain, in the MarketEscrow contract, in ITC: one transaction pays every seller in the batch. An off-chain credit ledger exists only for local development and tests.
  • Keys. Buyer keys start with ik_. They are stored as peppered SHA-256 hashes and shown once. Each key can carry a spend limit and a minimum discount.
  • Routing. With model auto, the model is chosen first (see Automatic routing). Then the model's offers are filtered (healthy, daily cap, your minimum discount and maximum price) and sorted by estimated cost. If an offer fails before the first byte, the next one is tried; nothing is retried after content has started streaming.

Markdown for agents

Every page on inferit.cc has a markdown twin: add .md to its URL (this page is /docs.md), or ask for text/markdown. /llms.txt lists them all, and /llms-full.txt is every page in one file.

Security and trust

What the escrow contract is designed to enforce, what is policy and what is public on chain: Security & trust.