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

# Gateway Business Model

> How gateways earn money, what they pay, the payment flow between applications, gateways, and orchestrators, and the four operator models.

> [!TIP]
>
> Gateways are application service routers that earn at the business layer. You control customer pricing while the protocol sets the network-side cost of routed work.

Payment Flow

## Payments Flow

Gateways are **consumers** of compute services. They pay orchestrators to do work on behalf of their application customers.

```mermaid theme={null}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#1a1a1a', 'primaryTextColor': '#fff', 'primaryBorderColor': '#2d9a67', 'lineColor': '#2d9a67', 'secondaryColor': '#0d0d0d', 'tertiaryColor': '#1a1a1a', 'background': '#0d0d0d', 'fontFamily': 'system-ui' }}}%%
flowchart LR
    A["End users /<br/>Applications"] -->|"Pay gateway's rate<br/>(business layer)"| B["Gateway"]
    B -->|"Pay network rate<br/>(ETH payment tickets)"| C["Orchestrator"]
    C -->|"Pay workers"| D["Transcoder /<br/>AI Runner"]
    C -->|"Redeem tickets"| E["Arbitrum<br/>(on-chain)"]

    B -.->|"Keep margin"| F["Gateway revenue"]

    classDef default fill:#1a1a1a,color:#fff,stroke:#2d9a67,stroke-width:2px
```

The payment chain:

1. **End users pay the gateway** at the operator's application-layer rate
2. **The gateway pays orchestrators** via probabilistic micropayment tickets (ETH on Arbitrum)
3. **Orchestrators pay their workers** (transcoders, AI runners) and redeem winning tickets on-chain
4. **The gateway keeps the difference** between what customers pay and what orchestrators charge

Who Earns What

## Gateway Earnings

Gateway earnings come from business-layer margins. Gateways buy network services instead of earning protocol rewards.

<table>
  <thead>
    <tr>
      Participant

      Earns at protocol level?

      How
    </tr>
  </thead>

  <tbody>
    <tr>
      **Orchestrator**

      Yes

      LPT rewards (staking) + ETH fees (payment tickets from gateways)
    </tr>

    <tr>
      **Transcoder / AI Worker**

      Yes

      Paid by orchestrators for GPU compute work
    </tr>

    <tr>
      **Redeemer**

      Yes

      Fees for redeeming winning payment tickets on-chain
    </tr>

    <tr>
      **Gateway**

      **No**

      Pays for services (earns at business layer only)
    </tr>
  </tbody>
</table>

Gateway Costs

## Gateway Costs

Gateway costs are determined by the work you route and the orchestrator prices on the network.

<table>
  <thead>
    <tr>
      Cost type

      Pricing unit

      Description
    </tr>
  </thead>

  <tbody>
    <tr>
      **Video transcoding**

      Wei per pixel per segment

      Width x height x frames of output video
    </tr>

    <tr>
      **AI inference**

      Wei per pixel or per millisecond

      Varies by pipeline (image = per pixel, audio = per ms)
    </tr>

    <tr>
      **Real-time AI**

      Interval-based

      Payments during the duration of a live stream
    </tr>
  </tbody>
</table>

### Currency

Gateways pay orchestrators in **ETH** on Arbitrum. LPT remains the staking, governance, and reward token for orchestrators and delegators.

<table>
  <thead>
    <tr>
      Currency

      Purpose

      Used by
    </tr>
  </thead>

  <tbody>
    <tr>
      **ETH / Wei**

      Service payments (transcoding, AI)

      Gateways pay orchestrators
    </tr>

    <tr>
      **LPT**

      Staking, governance, rewards

      Orchestrators, delegators
    </tr>
  </tbody>
</table>

ETH handles service payments while LPT handles protocol governance and staking. This keeps service costs denominated in a stable currency while LPT serves its governance function.

Why Run a Gateway

## Gateway Operator Models

Four operator models show how gateways earn at the **business layer**:

> [accordion] Self-hosted gateway (cost savings)
>
> Running your own gateway removes a third-party routing fee. If you are already building an application on Livepeer, self-hosting keeps that margin inside your stack.
>
> **Who:** App developers scaling past hosted APIs (Daydream, Livepeer.Cloud)
>
> **Revenue model:** Cost reduction. You keep the margin that a third-party gateway would otherwise charge.

> [accordion] Service provider (arbitrage)
>
> Charge end users more than you pay orchestrators. The difference is your margin. This is the classic gateway business model.
>
> **Who:** Livepeer.Cloud SPE, LLM SPE, Streamplace
>
> **Revenue model:** Per-request, per-minute, or subscription pricing to customers. Pay orchestrators at network rates.

> [accordion] Platform builder (NaaP)
>
> Build a full platform on top of the gateway layer - API key management, multi-tenancy, billing, SLA monitoring, orchestrator tiering.
>
> **Who:** NaaP (Network as a Platform), enterprise integrators
>
> **Revenue model:** SaaS pricing with usage-based billing. The gateway is the infrastructure layer of a larger product.

> [accordion] Content provider (SLA control)
>
> Run a gateway to ensure SLA guarantees on your orchestrators. Control orchestrator selection, failover, and pricing for your specific content.
>
> **Who:** Streaming platforms, media companies, live event producers
>
> **Revenue model:** The gateway supports the core business through stronger SLA control and workload routing.

Fee Structure

## Pricing and Fees

As a gateway operator, you set pricing at two levels:

### Protocol-level costs (what you pay)

You control your maximum cost per job using CLI flags:

```bash icon="terminal" title="gateway cost limits" theme={null}
# Maximum you'll pay per pixel for transcoding
-maxPricePerUnit=1000

# Maximum you'll pay per AI capability/model
-maxPricePerCapability='{"capabilities_prices": [{"pipeline": "text-to-image", "model_id": "stabilityai/sd-turbo", "price_per_unit": 1000}]}'
```

These flags set an upper bound. The gateway will only route to orchestrators whose prices are at or below your maximum. Lower maximums mean fewer available orchestrators; higher maximums mean more options but higher costs.

### Business Layer Pricing

Your fees to end users are set entirely at the application layer, outside the Livepeer protocol. Common approaches:

1. **Per-request pricing** - charge per API call to your gateway
2. **Usage-based pricing** - charge per minute of video or per AI generation
3. **Subscription models** - monthly fees for access to your gateway services

```go icon="terminal" title="application pricing example" theme={null}
// Your application code (not in Livepeer protocol)
func calculateUserPrice(requestType string, pixels int64) float64 {
    basePrice := getYourBusinessPrice(requestType)
    yourCost := getOrchestratorCost(pixels)
    profitMargin := 0.20 // 20% margin

    return basePrice + yourCost*profitMargin
}
```

### Price Discovery

Use the CLI to discover current orchestrator market rates:

```bash icon="terminal" title="livepeer_cli price discovery" theme={null}
livepeer_cli
# Select "Set broadcast config" to see current market rates
# Then set your max prices accordingly
```

Your margin = what customers pay you - what you pay orchestrators.

Case Studies

## Production Gateways

**[Streamplace](/v2/solutions/streamplace/overview.md)** operates a gateway providing video processing services to content creators. Creators pay Streamplace; Streamplace pays orchestrators. The margin is Streamplace's revenue.

**[Daydream](/v2/solutions/daydream/overview.md)** operates a gateway providing AI video processing. Builders and creators pay Daydream; Daydream pays orchestrators. The margin is Daydream's revenue.

Both demonstrate the arbitrage model: the gateway sits between application demand and network supply, adding value through routing quality, developer experience, and service reliability.

## Related Pages

> [card] [Gateway Role](/v2/gateways/concepts/role.md)
>
> What gateways are and how the role has evolved.

> [card] [Gateway Capabilities](/v2/gateways/concepts/capabilities.md)
>
> Workload types, orchestrator selection, and session management.

> [card] [Payment System](/v2/gateways/guides/payments-and-pricing/payment-guide.md)
>
> How probabilistic micropayments work.

> [card] [Orchestrator Incentives](/v2/orchestrators/concepts/incentive-model.md)
>
> How the supply side (orchestrators) earns - for comparison.


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