# Selling inference

> Sell inference on Inferit at your own price in dollars per 1M tokens, from your own computer with the open-source seller app or from an https endpoint: licences, registration, health checks, availability and payouts to your own wallet in ITC.

Anyone can sell inference on Inferit: a seller serves a model from hardware it controls, at its own price in dollars per 1M tokens. A seller is paid per request, to the payout wallet it registers, whenever it is the cheapest healthy offer, in ITC.

Selling from your own computer?

Start with [Sell from your own PC in 10 minutes](https://inferit.cc/docs/sellers/quickstart.md): Ollama or LM Studio, one command with the open-source `inferit-seller` app, and a price in dollars. No public address, open port or domain. This page is the reference behind it.

Which offers are listed and healthy right now is on [the models page](https://inferit.app/models). Buyers who send model auto reach a model only when it is on the quality ranking ([automatic routing](https://inferit.cc/docs/routing.md#ranking)); unranked models get the requests that name them.

## What you can list

-   **Your own computer, with the seller app.** The open-source `inferit-seller` app (Apache-2.0, [github.com/InferitAI/inferit-seller](https://github.com/InferitAI/inferit-seller)) runs next to your model server, dials out to Inferit and takes requests over that connection ([connector mode](https://inferit.cc/docs/sellers.md#connector)): no tunnel, no open port, no certificate. [The seller quickstart](https://inferit.cc/docs/sellers/quickstart.md) walks through it.
-   **Your own endpoint.** Any OpenAI-compatible server you run, such as vLLM, Ollama or SGLang, behind HTTPS on a domain you control. You give a base URL and an optional bearer token; the token is stored AES-256-GCM encrypted. It must be a server you run: URLs on known hosted providers are rejected. Putting a hosted provider's API behind a proxy on your own domain is still key resale and is not allowed, even though the API cannot prove where an endpoint runs.

Every listing and the traffic it serves must follow the [acceptable use policy](https://inferit.cc/legal/acceptable-use), including its seller rules: no logging, retaining or training on buyer requests, and no inflated usage.

**On a rented GPU** (a marketplace machine you rent by the hour), the owner of that machine can read the prompts it serves, as well as you. Prefer verified hosts.

**Images and other media.** Inferit forwards media only as inline `data:` URLs or `https:` URLs on public host names; it refuses private, loopback and metadata addresses. A vision server that fetches media URLs itself (vLLM does) can still be pointed at any public URL, so limit what it may fetch (in vLLM, its allowed media domains, and no redirects), or accept inline media only.

## Licences

Every catalog model has a licence class. **Permissive** (Apache-2.0, MIT) lists freely. **Conditional** (for example the Llama community licence, Qwen licence, Gemma terms, modified MIT) requires you to acknowledge the conditions. **Not allowed** (non-commercial weights, closed models) is rejected. The summaries on this site are not legal advice; read the linked licence.

A model that is not in the catalog can be listed first, if its weights are open and its licence allows paid serving: the same licence classes apply, and Inferit reads the licence from the Hugging Face model card when you name the repo ([list any open-weight model](https://inferit.cc/docs/sellers/quickstart.md#not-in-catalog), or [POST /v1/seller/models](https://inferit.cc/docs/api-reference.md#post-v1-seller-models)). A model a seller listed has no list price, so it is priced per token.

## Steps

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.

1.  Get a little WBT, Whitechain's gas token, from the [Whitechain faucet](https://faucet.testnet.whitechain.io) (sign in with GitHub). Registration and withdrawals are transactions your wallet sends; payouts arrive in ITC.
2.  Register your payout wallet on the escrow: `registerSeller(payout)`, sent from your own wallet on Whitechain Sepolia. An offer cannot go live before this.
3.  Sign in with the same wallet (one sign-in serves both workspaces) and list an offer: the model, your endpoint URL and bearer token, your price in dollars per 1M input and output tokens, and an optional daily cap.
4.  The API checks the licence, resolves your host and rejects private and link-local addresses (SSRF guard), then sends a live 1-token probe. If it answers, the offer is active.

**App:** [Sell workspace](https://inferit.app/sell) · **Contract:** [`registerSeller(payout)`](https://inferit.cc/docs/payments/whitechain.md#calls) · **API:** [`POST /v1/seller/offers`](https://inferit.cc/docs/api-reference.md#post-v1-seller-offers)

_your endpoint_

```bash
# Any OpenAI-compatible server you run works: vLLM shown; Ollama or SGLang too.
# vLLM checks the bearer token itself (--api-key) and answers to the catalog id.
SELLER_TOKEN="$(openssl rand -hex 24)"
vllm serve meta-llama/Llama-3.1-8B-Instruct \
  --served-model-name meta-llama/llama-3.1-8b-instruct \
  --host 127.0.0.1 --port 8000 --api-key "$SELLER_TOKEN"

# Put it behind HTTPS on a domain you control (Caddy fetches the certificate).
caddy reverse-proxy --from gpu.example.com --to 127.0.0.1:8000

# Check it answers a chat completion, as the listing probe will.
curl -s https://gpu.example.com/v1/chat/completions \
  -H "Authorization: Bearer $SELLER_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"model":"meta-llama/llama-3.1-8b-instruct","max_tokens":1,
       "messages":[{"role":"user","content":"hi"}]}'

# Then list https://gpu.example.com/v1 with SELLER_TOKEN as its bearer token,
# in the Sell workspace or with "list an offer" below.
```

## API path (no browser)

The same steps without the app, for a script or an agent. The escrow address is on [Whitechain escrow](https://inferit.cc/docs/payments/whitechain.md#live); the request and response fields are in the [API reference](https://inferit.cc/docs/api-reference.md#post-v1-seller-offers).

_register (on chain)_

```bash
# 1. Register the payout wallet on MarketEscrow
#    (a transaction from the seller wallet: needs a little WBT).
#    Foundry's cast; any EVM client works (viem: writeContract).
cast send 0x705dD9eCffa888FbcF2849eAE2D3b136eb78B7e0 \
  "registerSeller(address)" 0xYourPayoutAddress \
  --rpc-url https://rpc.testnet.whitechain.io \
  --private-key "$SELLER_KEY"
```

_sign in_

```bash
# 2. Sign in with the same wallet: an off-chain EIP-4361 text signature, no gas.
curl -s -X POST https://api-production-c74b9.up.railway.app/v1/auth/evm/challenge \
  -H 'content-type: application/json' \
  -d '{"address":"0xYourSellerAddress"}'
# -> {"message": "...", "nonce": "...", "expiresAt": "..."}
# Sign "message" with the seller key (an EIP-191 signature), then:
curl -s -X POST https://api-production-c74b9.up.railway.app/v1/auth/evm/verify \
  -H 'content-type: application/json' \
  -d '{"message":"<message>","signature":"0x<signature>"}'
# -> a session token: export SESSION=...
```

_list an offer_

```bash
# 3. List an offer. Prices are integers in millionths of a dollar per 1M tokens
#    (string or number): "40000" = $0.04 per 1M tokens.
curl -s -X POST https://api-production-c74b9.up.railway.app/v1/seller/offers \
  -H "Authorization: Bearer $SESSION" \
  -H 'content-type: application/json' \
  -d '{
    "model": "meta-llama/llama-3.1-8b-instruct",
    "kind": "endpoint",
    "endpointUrl": "https://gpu.example.com/v1",
    "authToken": "<your SELLER_TOKEN>",
    "upstreamModel": null,
    "pricing": {
      "mode": "per_token",
      "inputPerM": "40000",
      "outputPerM": "60000"
    },
    "capDailyMicro": null,
    "licenseAck": true
  }'
# upstreamModel: the name your server knows the model by, when it is not
# the catalog id (Ollama: "llama3.1:8b"); null sends the catalog id.
# licenseAck: boolean; true acknowledges a conditional licence (false is
# enough for a permissive one). The API probes the endpoint before it
# activates the offer; 409 seller_not_registered until step 1 lands.
```

## Connector mode: no public URL

A computer behind NAT, a VPN or a home router can sell without a tunnel. The seller app, `inferit-seller` (open source, Apache-2.0), opens one authenticated WebSocket (wss) to the API and answers requests over it; it listens on 127.0.0.1 only. In its hello it reports its version and system and the models it found on your server, which the Sell workspace shows. The step-by-step version, with the Sell workspace's **Add a machine**, is [the seller quickstart](https://inferit.cc/docs/sellers/quickstart.md).

1.  Signed in with your wallet, mint a connection token: `POST /v1/seller/nodes`. The token (`icn_…`) is shown once and only opens that connection: it cannot list offers, read earnings or create keys. An account can hold five tokens at a time by default.
2.  Run the app with the token: `connect --token` saves it, `install-service` keeps the app running across logins and reboots (or set `CONNECT_URL` and `CONNECT_TOKEN` yourself). After a drop it reconnects by itself, waiting longer after each failed try, up to about a minute.
3.  List the offer with `endpointUrl` set to its `connector://…/v1` address and no `authToken`. The app must be connected and serving that model, or listing answers `409 node_offline`.

While the app is disconnected, its offers take no requests; after a 60-second grace they show as offline. `GET /v1/seller/nodes` lists your machines (online, last seen, the app's version, the models found and served), `PATCH /v1/seller/nodes/:id` renames one, and `DELETE /v1/seller/nodes/:id` revokes its token: its connection closes at once and its offers leave routing. The API has a switch for connector mode: if listing answers `503 connector_disabled`, it is off on that server, so list an https endpoint instead.

_connector mode_

```bash
# 1. Mint a connection token (the session from "sign in" above).
curl -s -X POST https://api-production-c74b9.up.railway.app/v1/seller/nodes \
  -H "Authorization: Bearer $SESSION" \
  -H 'content-type: application/json' \
  -d '{"name":"gpu-box-1"}'
# -> {"node": {"id": "node_…", "offerEndpointUrl": "connector://node_…/v1", …},
#     "token": "icn_…", "connectUrl": "wss://…/v1/seller/connect"}
# The token is shown once: keep it out of git and logs.

# 2. Run the seller app on the machine, in front of Ollama, LM Studio, vLLM or
#    the llama.cpp server. It finds the server and its models by itself.
npx -y inferit-seller connect --token "<token>"
npx -y inferit-seller install-service

#    Or configure it by environment instead (example values): MODEL_MAP maps
#    catalog ids to the names your server uses.
UPSTREAM_BASE_URL=http://127.0.0.1:11434/v1 \
MODEL_MAP='{"meta-llama/llama-3.1-8b-instruct":"llama3.1:8b"}' \
CONNECT_URL="<connectUrl>" CONNECT_TOKEN="<token>" NODE_NAME=gpu-box-1 \
npx -y inferit-seller start

# 3. List as in "list an offer", with
#    "endpointUrl": "connector://node_…/v1" and no "authToken".
```

## Pricing

Set a price in dollars per 1M input and output tokens, and optionally cache reads, or a percentage of the catalog list price. That is what you are paid: you keep your full price. Buyers pay your price plus a 5% marketplace commission; the contract caps it at 10%. A daily cap limits how much you take per day; the order book shows it summed with the other offers at your price level.

## Health and routing

Buyers are routed to the cheapest healthy offer that meets their filters. A failed request or probe marks your offer unhealthy and schedules the next probe on a backoff ladder of 1, 2, 5, 10, 30 and then 60 minutes; one success restores it. Failover happens only before the first byte, so a stream you start is never handed to someone else midway. Offers that sleep when idle or are online only part of the day follow the rules below.

## Availability and cold starts

Each offer says how it is available, in its `availability` field ([API reference](https://inferit.cc/docs/api-reference.md#post-v1-seller-offers)):

-   **`always_on`** (the default) declares an endpoint that should answer at any time; nothing guarantees it does. While healthy it gets a short probe every 5 minutes by default.
-   **`scale_to_zero`** is an https endpoint that sleeps when idle, such as a serverless GPU app that scales to zero. It needs `coldStartMs`, your measured p90 wake time (at most 140,000), and `healthUrl`, a URL on the same origin that answers without waking the model: `{"ok":true,"models":{"<model>":{"ready":true}}}`. Routine probes call `healthUrl`. A 1-token probe, sent with `x-inferit-probe: deep`, runs only after 24 hours with no successful request, or to bring an unhealthy offer back. A request that reaches a sleeping offer waits up to `coldStartMs` longer for its first byte, 140 seconds in all at most. The first failed wake does not count against health; a second within 10 minutes does.
-   **`intermittent`** is for connector mode on a machine that is online only some of the time, such as a home computer that sleeps. Its offers take requests only while the app is connected, being offline does not count against health, and it is probed every 15 minutes while connected.

If you serve less context than the catalog lists, for example a quantised build on a small GPU, set `maxContextTokens` (and `quantization`, if you like): requests too long for your window skip your offer. At equal price, an offer that answers with no cold start is tried first; it never beats a cheaper one.

## What buyers see

From the order book: price levels, offer counts and the combined daily caps per level. Per model, `GET /v1/models/:id/endpoints` lists each offer with your wallet address shortened (`0x45A9…7CDE`), its all-in price, context length, quantization, health, 24 h uptime and time to first token ([API reference](https://inferit.cc/docs/api-reference.md#get-v1-models-id-endpoints)). Never your endpoint URL, your machine's address or your individual volume. The `x-inferit-offer` header is an opaque hash.

Settlement is a separate matter: **on Whitechain, settlement is public.** Every `LineSettled` event names the buyer and your seller address with the amount, and `sellerState` shows your unwithdrawn earnings, so anyone can total your volume and a buyer can match its own requests to your address. If you prefer to keep marketplace payments separate from your other on-chain activity, use a dedicated business wallet for selling. See [On-chain visibility](https://inferit.cc/docs/security-trust.md#on-chain).

## Payouts

You are paid for every request you serve. Usage is settled on chain in batches within the hour (the live setting is `settlement.cadence` in `GET /metrics`). Your earnings build up in the escrow, and `withdrawEarnings()` sends them to your payout wallet whenever you choose, with no waiting period; only your wallet can change that address. It is one transaction from your wallet, using a little WBT for gas. Every settlement and withdrawal links to the explorer from the Sell workspace. Payouts are in ITC (Inferit Test Credit).

**App:** [Sell workspace](https://inferit.app/sell) · **Contract:** [`withdrawEarnings()`](https://inferit.cc/docs/payments/whitechain.md#calls) · **API:** [`GET /v1/seller/earnings`](https://inferit.cc/docs/api-reference.md#get-v1-seller-earnings)

---

Canonical page: https://inferit.cc/docs/sellers
All pages as markdown: https://inferit.cc/llms.txt
