Start

Overview

What floprouter is, what it does for each request, and where to start.

View as Markdown

floprouter is an OpenAI-compatible API in front of FLOP Network. FLOP is a Substrate chain where GPU miners sell LLM inference and are paid through payment channels. The router lists every miner registered on chain, scores each one from its on-chain record, picks one for your request or uses the one you name, and runs the paid session for you.

It runs on FLOP devnet today. Devnet and testnet FLOP have no monetary value.

What happens on each request

  1. A miner is chosen. In auto mode the router takes the best ready miner for your model by score. You can also name miners with the provider object.
  2. A payment channel opens on chain. Escrow for this one request is locked, normally against the miner's signed offer.
  3. The miner answers. With streaming you see the text as it is decoded; the whole reply is then checked against the miner's signed receipt. On devnet a reply takes about 15 to 50 s.
  4. The miner settles. The settlement is final on chain 2 to 4 minutes later, in the background. You can watch it with GET /v1/sessions/{id} or in the playground.

Base URL

Text
https://api.floprouter.com/v1

Any OpenAI client works with that base URL and a floprouter key. See the quick start.

What is live

PartState
Miner directory, scores, modelsLive
Chat completions, auto and pinned routingLive
Session status and on-chain linksLive
Wallet sign-in and API keysLive
Your wallet as the on-chain payer (grant)Live
Prepaid balanceLive
Router fee chargedLive
Streaming (text forwarded as the miner sends it)Live
Tool callsNot supported

The website checks these against the API it talks to on every visit; the status page shows the result.

For agents