Skip to content
Docs

Selling tokens

Lifeboat Router is free for non-commercial use. Selling access to tokens — charging anyone for inference — is commercial use. There are two ways to do it.

Buyers sign up on your router, buy credit packs through your Stripe account, create API keys and are charged per token at the prices you set.

  1. On the Sell page, activate a commercial license key (issued by Iterate.ai from the hub).
  2. In Settings → Payments, add your Stripe keys. You keep sandbox (test) and live keys side by side and switch with one control; a key entered in the wrong slot is rejected.
  3. Set prices per model on the Sell page.

Without a valid commercial license the gateway refuses paid traffic and the UI shows the router as free for non-commercial use.

The marketplace hub operated by Iterate.ai bills buyers and credits you, minus a platform fee. No local license or Stripe setup is needed.

  1. On Sell → Sell on Lifeboat Cloud, sign in to the hub and name your node.
  2. Your node dials out to the hub over a WebSocket (or an HTTPS long-poll when a proxy blocks WebSocket upgrades) — no inbound port to open.
  3. Your models appear in the hub’s catalog; buyers pay the hub; your Earnings page tracks each sale.

On the Sell page, set input and output price per 1M tokens for each model, or take a model off sale. Settings sets the default for new models. A new price applies to the next request. Buyers see prices on the Models page and in /v1/models.

Credits land either by the checkout.session.completed webhook (register https://<your-host>/api/stripe/webhook) or, when Stripe cannot reach your router, when the buyer returns from checkout. Both paths credit a payment exactly once. Sandbox and live payments are tracked separately, so a payment started in sandbox is always confirmed with the sandbox key.