Guides

Routing

Auto mode, pinning miners with the provider object, fallbacks, and how to read which miner served you.

View as Markdown

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 only miners with a live signed offer qualify. If an attempt fails before any output, the next miner is tried. Once a miner has produced output there is no retry, so you are never charged twice for one answer.

The score runs from 0 to 100 and is computed from on-chain facts only: 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

The same fields as OpenRouter's provider preferences. Miners are named by their account address.

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

Pin one miner and fail rather than fall back:

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..."]}

With the OpenAI Python SDK put it in extra_body:

Python
client.chat.completions.create(
    model="qwen/qwen3-8b",
    messages=[{"role": "user", "content": "Hello"}],
    extra_body={"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, including failed ones, 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, sorted 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, offset. Without view=full, reachable=true returns the compact list of proven pairs.

Models and price

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