Skip to main content

How Payments Work

Livepeer uses probabilistic micropayments (PM) to settle fees between gateways and orchestrators. Understanding this system is essential to operating a gateway responsibly — it determines your ETH obligations, your signing key security requirements, and whether you run fully on-chain or off-chain.

Why Probabilistic Micropayments?

Paying for every individual AI inference job or transcoded segment on-chain would be prohibitively expensive in gas fees. Instead, Livepeer uses a lottery-style mechanism:
  • Gateways send orchestrators cryptographically signed tickets with each job.
  • Each ticket has a small probability of being a “winning ticket” worth a larger face value.
  • Orchestrators redeem winning tickets on-chain via the TicketBroker contract on Arbitrum.
Over time, the expected value of tickets matches what would have been paid directly — but most individual exchanges happen entirely off-chain, with only winning tickets touching the blockchain.
PM significantly reduces gas costs compared to per-transaction settlement. A gateway processing thousands of jobs per hour may only trigger a handful of on-chain redemptions.

Gateway Payment Responsibilities

As a gateway operator, you are responsible for the payment side of every job routed through your node. This means:

1. ETH Deposit Balance

Your gateway must maintain a funded deposit in the TicketBroker contract. This deposit is drawn from when orchestrators redeem winning tickets.
  • Minimum recommended deposit: enough to cover several hours of expected workload.
  • If your deposit falls too low, orchestrators will reject your tickets and jobs will fail.
  • Monitor your balance via livepeer_cli or the Livepeer Explorer at explorer.livepeer.org.

2. Payment Signing Key

Each ticket must be signed with your gateway’s Ethereum private key. By default this key lives inside the same go-livepeer process handling untrusted media — a security risk if a malicious input were to exploit a vulnerability.
Security concern: A compromised gateway process could expose your signing key and drain your ETH deposit. For production deployments, consider using a Remote Signer to isolate signing from media handling.

3. Ticket Parameters and Session State

For Live AI workloads, the gateway tracks session state (nonce counters, cumulative fees, etc.) across a stream. This state is used to generate valid tickets at regular intervals. Sending stale or duplicated state produces invalid tickets that orchestrators reject.

4. Reserve Balance

In addition to a deposit, gateways maintain a reserve balance as a penalty backstop. The reserve protects orchestrators in cases of gateway non-payment and is required for participating in the network with stake-based routing.

On-Chain vs Off-Chain Operation

ModeDescriptionUse case
On-chainFull Ethereum integration — gateway manages key, signs tickets, calls rewardProduction transcoding, established gateways
Off-chain (Live AI)Remote Signer handles all Ethereum operations; gateway contains no private keyLive AI workloads, embedded gateways, clearinghouse architecture
For Live AI specifically, go-livepeer can operate entirely in off-chain mode for media handling, delegating all signing to a separately run Remote Signer service. No orchestrator changes are required.

Ticket Generation Flow

When your gateway starts a Live AI session with an orchestrator:
  1. The orchestrator returns ticketParams — parameters defining valid ticket shape and pricing.
  2. Your gateway (or Remote Signer) generates and signs tickets at regular intervals.
  3. Orchestrators accumulate tickets and redeem winning ones on Arbitrum.
  4. Updated ticketParams are returned after each payment round, refreshing the session.

Fee Calculation for Live AI

Live AI fees are calculated based on time elapsed at a fixed cost per hour, with payments generated at regular intervals (typically every 60 seconds). This differs from transcoding, where fees are calculated per pixel. The Remote Signer handles this bookkeeping automatically when used.

Next Steps

Last modified on March 4, 2026