The short answer
A paid tool call that fails before any output reaches the caller should cost nothing, because nothing of value was delivered. One that fails after output started arriving should be charged, because the work was done and part of it was received. On Nexus402 the first case is refunded automatically, and the second is charged at the tool's price.
Who should pay when a tool call fails?
Per-call pricing makes this question unavoidable. With a monthly plan, a failed request is lost in the average. With a price on every call, every failure has an owner: either the developer pays for nothing, or the creator works for nothing.
Both answers are wrong some of the time. A developer should not pay for a timeout. A creator should not lose the price of a long, expensive call because the caller hung up halfway. The rule has to tell those cases apart, every time, without a person reviewing them.
Why the line is the first byte
Before the first byte of the answer reaches the caller, nothing has been delivered. Refunding then costs nobody anything they received. After the first byte, the creator has done the work and the caller holds some of it. Refunding then would make every long-running tool uneconomic to offer, because any caller could take most of an answer and walk away free.
So the first byte is the boundary. It is also something both sides can observe, which matters: a billing rule nobody can check is a billing rule nobody trusts.
Every outcome, and who pays
| What happened | Charged? |
|---|---|
| The tool answered | Yes, the listed price |
| The tool failed before any byte reached you | No, refunded automatically |
| The tool timed out before its first byte | No, refunded |
| The tool failed after the first byte reached you | Yes, part of the work was delivered |
| You cancelled mid-stream | Yes, the work was done and partly delivered |
| Your wallet or the key's cap could not cover it | No, a 402 and nothing taken |
Any refusal before the call is made (a 400, 401, 402, 422, 429 or 503) is never charged. A refund on Nexus402 is a new entry in an append-only ledger, not an erased one, so the history of every call stays complete.
A broken answer is a failure too
"Failed" should not only mean an error status. On Nexus402, a creator's server signs its answer with a proof the gateway checks before relaying anything. A response that comes back without a valid proof is treated as a failure before the first byte: the caller gets nothing from it and is not charged. That closes a quieter gap, where a misconfigured or impersonated server returns something that looks like an answer and is billed as one.
What it means for creators
A refunded call owes the creator nothing, which sounds harsh until you see the other side: every call that answers is owed, at once, at the published price less our margin. The incentive is simply to answer quickly and reliably. Endpoints must send a first byte within 5 seconds and finish within 120, and a version whose endpoint is at fault on 20 consecutive calls is taken out of the catalogue until it is republished, so a broken tool stops costing anyone time.
That is the bargain that makes paying per call safe to say yes to, on both sides. Publishing a tool takes minutes; calling one takes less.