Skip to Content
Docs

Routing

Provider selection

Choose miners with the provider object, or let auto mode choose by score.

Routing preferences go in the provider object. A provider is a miner, named by its account address.

Auto mode

Send no provider object and the router chooses. It considers miners that

  • serve the requested model,
  • have a session endpoint the router has proven, and
  • report ready,

and tries them in order of score. In grant mode a miner also needs a live signed offer. What happens when a miner fails is on the fallbacks page.

The score runs from 0 to 100 and comes from on-chain facts: how a miner's paid sessions ended, how many and how recent, who paid for them, its stake, its slashing record and its calibration. The formula is not published. The inputs are, on every miner in GET /v1/miners and on the miners page.

The provider object

FieldTypeMeaning
orderstring[]Try these miners first, in this order.
onlystring[]Use these miners and no others.
ignorestring[]Never use these miners.
sortreliability or latencyreliability (default) orders by score. latency orders by the router's measured proof latency.
allow_fallbacksbooleanWith order: whether other miners may be tried after the listed ones. Default true.

More routing preferences Not live yet

More routing preferences:

FieldHere
order, only, ignoreMiner addresses, or the host of a miner's session endpoint.
sortA string or {by, partition}. reliability (the default): the miner's score. latency and throughput: router-measured time to the verified reply. price: every miner serving a model costs the same here, so the default order applies.
max_price{prompt, completion, request} in FLOP, per million tokens (request: per request). A model above it is skipped.
require_parameterstrue: refuse the request (503) when the model ignores a parameter you sent, instead of ignoring it.
quantizationsMatched against the model's precision in the chain registry, bf16 today.
data_collection: "deny", zdr: trueCannot be honoured, because miners keep signed session evidence for audit and settlement. The request gets 503.
preferred_min_throughput, preferred_max_latencyAccepted and ignored.

GET /v1/providers lists the miners with a proven endpoint, one entry per miner (slug is the miner address). The directory with every registered miner stays at GET /v1/miners.

Pin one miner, and fail instead of moving to another:

JSON
{
  "model": "qwen/qwen3-8b",
  "messages": [{"role": "user", "content": "Hello"}],
  "provider": {"only": ["5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92"], "allow_fallbacks": false}
}

Prefer two miners, then let the router choose:

JSON
"provider": {"order": ["5HKiGN...", "5CJxjZ..."], "allow_fallbacks": true}

Avoid a miner:

JSON
"provider": {"ignore": ["5HbvZY..."]}

Order by measured latency:

JSON
"provider": {"sort": "latency"}

Which miner served you

  • provider at the top level of the response is the miner's address.
  • flop.miner, flop.endpoint and flop.via say who served it and how the channel was opened: offer (against the miner's signed offer) or force (a force-open, when the miner has no live offer).
  • flop.attempts lists every try, failed ones included, with the stage it reached and the error.

Finding miners

Shell
# miners with a proven endpoint for one model, best first
curl "https://api.floprouter.com/v1/miners?reachable=true&view=full&model=qwen/qwen3-8b"

# every registered miner, by settle rate
curl "https://api.floprouter.com/v1/miners?sort=settle_rate&limit=1000"

Filters: reachable, ready, active, calibrated, model, min_score. Sort: score, settle_rate, sessions, stake, latency, capacity, with order, limit and offset. Without view=full, reachable=true returns the compact list of proven pairs.

Price

FLOP Network has no per-miner price, so the router does not route on price. It routes on reliability and reachability. See fees.