Guides
Fees and pricing
What a request costs, who receives it, and how to fund a balance.
A request has two costs.
- Escrow. The amount locked in the payment channel. A cooperative settlement pays all of it out: to the miner, with the protocol's shares for validators and audit taken from it. Miners do not set prices. The chain sets a tariff floor per request, and the payer chooses the escrow above it.
- Router fee. A percentage of the escrow, in FLOP, charged only for sessions that settle as paid. Live
How the escrow is sized
The router sets the escrow per request as the largest of:
- the chain's tariff floor for the model and token count, plus a margin,
- the configured price per token times the prompt estimate plus
max_tokens, - a configured minimum,
- the minimum the miner's signed offer asks for.
A request whose escrow would pass the configured maximum is refused with escrow_limit. Lower max_tokens to lower the escrow. GET /v1/models shows each model's escrow per 1,000 tokens and the chain's tariff floor:
"pricing": { "escrow_per_1000_tokens": "0.05", "basis": "token_price", "tariff_floor_per_1000_tokens": "0.000000000000030001", "router_fee_percent": 5 }
On devnet the tariff floor is tiny, so the configured price or the minimum decides.
The router fee
The current percentage is in pricing.router_fee_percent of every model and in flop.router_fee of every response:
"router_fee": {"percent": 5, "amount": "0.0005", "charged": false, "status": "pending"}
status | Meaning |
|---|---|
pending | The session has not settled yet. The fee is taken if it settles as paid. |
charged | Taken from your balance. charged_amount says how much. |
not_charged | The session ended without a paid settlement: no fee. |
not_billed | The request had no wallet key, so there was no balance to bill. |
Your balance
Live
Fund it with a plain FLOP transfer (balances.transferKeepAlive) from your wallet to the router's deposit address. It is credited to the sending address when its block is finalized, usually within a minute. Send from the same wallet that owns your key.
curl https://api.floprouter.com/v1/balance -H "Authorization: Bearer $FLOPROUTER_API_KEY"
{"object": "balance", "address": "5...", "currency": "FLOP", "balance": "0", "held": "0", "available": "0", "deposit_address": "5...", "fee_percent": 5, "recent": []}held is reserved for sessions in progress; available is what new requests can use. In grant mode only the fee comes from the balance. In balance mode the escrow and the fee do. When the balance cannot cover a request the API answers 402 with code insufficient_balance.
Devnet and testnet FLOP have no monetary value. Get devnet FLOP from the FLOP faucet.