> ## Documentation Index
> Fetch the complete documentation index at: https://docs.floprouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fees and pricing

> What a request costs, who receives it, and how to fund a balance.

A request has two costs.

1. **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.
2. **Router fee.** A percentage of the escrow, in FLOP, charged when a session settles as paid, and not otherwise. 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:

```json theme={null}
"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 minimum per request is 0.01 FLOP on this server, so short requests all cost 0.01 FLOP plus the 5% fee, 0.0105 FLOP.

## The router fee

The current percentage is in `pricing.router_fee_percent` of every model and in `flop.router_fee` of every response:

```json theme={null}
"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. |

## Paying the fee

The fee comes from your prepaid [balance](https://docs.floprouter.com/balance.md) in both payer modes. When the balance cannot cover it, the request is refused before any channel opens, with `402 insufficient_balance`.

Devnet and testnet FLOP have no monetary value.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.