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

# Publishing a Gateway

> Make a Livepeer Gateway discoverable - service URI configuration, DNS setup, capability advertising, community presence, and current discoverability options.

> [!TIP]
>
> AI Gateways can register on-chain via the [`AIServiceRegistry`](https://arbiscan.io/address/0x04C0b249740175999E5BF5c9ac1dA92431EF34C5) contract using the `-aiServiceRegistry` flag. Video/transcoding Gateways do not yet have an equivalent on-chain registry - discoverability for video is currently manual and community-driven.
>
> A Gateway Explorer Page is in Development: [Gateway Explorer Preview](https://explorer-arbitrum-one-git-feat-add-g-10dba1-livepeer-foundation.vercel.app/)[Github PR #410](https://github.com/livepeer/explorer/pull/410)

This guide covers how to make a Gateway reachable and findable, so that other developers and applications can discover and use it.

### Step 1

### Service URI

The first requirement is that the Gateway is reachable at a stable, public address.

```bash icon="terminal" -serviceAddr theme={null}
-serviceAddr gateway.example.com:8935
```

`-serviceAddr` tells the Gateway what address to advertise. For a public Gateway, this must be an externally resolvable DNS name and port, not `localhost` or an internal IP.

For the external hostname used in responses:

```bash icon="terminal" -gatewayHost theme={null}
-gatewayHost gateway.example.com
```

### Step 1

### DNS setup

Point a dedicated subdomain at the Gateway server's public IP. A dedicated subdomain (instead of an IP address) allows changing servers without updating customer integrations.

```txt icon="wrench" DNS Setup theme={null}
ai-gateway.yourdomain.com.   A   <server-ip>
```

For multi-region deployments, use GeoDNS or a load balancer DNS record that routes to the nearest region.

### Step 1

### HTTPS required

External clients must reach the Gateway over HTTPS. Set up TLS termination via a reverse proxy (Caddy, Nginx, or a cloud load balancer) before exposing the service. See [Gateway Middleware](/v2/gateways/guides/advanced-operations/gateway-middleware.md) for reverse proxy architecture patterns.

## Capability Advertising

Developers choosing a Gateway need to know what it supports. There is no standard machine-readable format for this yet, but publishing a clear capabilities document on the domain is current best practice.

> [accordion] Supported workloads
>
> State explicitly whether the Gateway handles:
>
> * AI inference (and which pipelines: text-to-image, image-to-video, LLM, etc.)
> * Video transcoding
> * Live AI (video-to-video)
> * BYOC pipelines
>
> For AI inference, list the models available via connected Orchestrators. Generate this dynamically from the Gateway's `/getNetworkCapabilities` endpoint:
>
> ```bash icon="terminal" theme={null}
> curl https://gateway.example.com/getNetworkCapabilities | \
>   jq '[.orchestrators[].capabilities_prices[].model_id] | unique'
> ```

> [accordion] Pricing
>
> Publish customer-facing pricing. The Gateway has two pricing layers:
>
> * What it pays Orchestrators (`-maxPricePerCapability`, `-maxPricePerUnit`) - the cost floor
> * What it charges customers - the business decision
>
> These do not need to match. Most public Gateways add a margin and present pricing in human-readable units (per image, per minute of video) instead of in wei per pixel.

> [accordion] Authentication
>
> Describe how developers authenticate: API key, OAuth, or open access. If registration is required, link to the signup page.

> [accordion] Rate limits and SLAs
>
> Document any rate limits and what SLA is offered. Even a best-effort statement ("target 99% uptime") sets expectations and builds trust.

## Discovery Methods

These are the mechanisms developers use today to find public Gateways.

> [tab] Community
>
> The most effective current method. Announce the Gateway in the [Livepeer Discord](https://discord.gg/livepeer) in the `#local-gateways` channel. Include:
>
> * Gateway endpoint URL
> * Supported pipelines and models
> * Pricing and any access requirements
> * Operating region(s)
>
> The Forum at [forum.livepeer.org](https://forum.livepeer.org) is appropriate for longer announcements with more detail, and threads are indexed by search engines.

> [tab] Livepeer Tools
>
> [tools.livepeer.cloud](https://tools.livepeer.cloud) is a community-maintained dashboard that tracks active network participants. Contact the maintainers to have the Gateway listed.

> [tab] Providers directory
>
> The Foundation maintains a list of known public Gateways in the Gateway Providers page. Contact the Foundation to have the Gateway added.
>
> SPE-funded Gateways (Livepeer Cloud, Daydream) are listed automatically as part of their SPE agreement.

> [tab] Direct integration
>
> For developers building applications, the most common path is direct integration: they find the Gateway through one of the channels above and hardcode the endpoint. Make it easy by providing:
>
> * A clear API reference (the Gateway endpoint + the standard [AI API reference](/v2/gateways/resources/reference/technical/api-reference/AI-API/ai.md))
> * A working quickstart curl command
> * A stable versioned endpoint URL

## Marketplace Context

The Livepeer Marketplace is a programmatic interface for Orchestrators to advertise compute and for Gateways to discover and route to that compute. It is not a discovery mechanism for applications to find Gateways.

As a Gateway operator, the relationship to the marketplace is as a **broker**: the Gateway queries it to find Orchestrators, not to list itself for applications to find. The marketplace is upstream of the Gateway, not downstream.

```icon="terminal" theme={null}
Applications -> [Gateway] -> Marketplace -> Orchestrators
```

There is currently no Gateway layer in the marketplace. On-chain Gateway registration (equivalent to how Orchestrators register via ServiceRegistry) is on the roadmap but not yet available.

## Video Gateways

&#x20;Video&#x20;

Video Gateways use `-serviceAddr` differently from AI Gateways. For a Video Gateway, `-serviceAddr` is the address that the Gateway advertises to Orchestrators so they can report results back. It must be reachable by Orchestrators on the network.

This means the Video Gateway's service address must be publicly reachable on the Gateway's HTTP port (default 8935). If behind NAT, configure port forwarding or use a server with a public IP.

RTMP ingest (port 1935) is separate from the service address and is what video sources connect to. These can be on different ports or even different network interfaces.

## On-chain Discovery

> [tab] AI Registry
>
> AIDual
>
> The `-aiServiceRegistry` flag enables on-chain discovery for AI Gateways. When set, the Gateway registers with the [`AIServiceRegistry`](https://arbiscan.io/address/0x04C0b249740175999E5BF5c9ac1dA92431EF34C5) contract on Arbitrum Mainnet, making it discoverable by AI Orchestrators on-chain.
>
> ### Usage
>
> Add `-aiServiceRegistry` to the Gateway startup command alongside the on-chain flags:
>
> ```bash icon="terminal" -aiServiceRegistry theme={null}
> livepeer \
> -gateway \
> -aiServiceRegistry \
> -network arbitrum-one-mainnet \
> -ethUrl https://arb1.arbitrum.io/rpc \
> -ethKeystorePath ~/.lpData/keystore \
> -httpAddr 0.0.0.0:8935 \
> -httpIngest \
> ...
> ```
>
> ### What it does
>
> * Registers the Gateway's AI capabilities with the on-chain `AIServiceRegistry` contract
> * Enables automatic Orchestrator discovery for AI workloads (no need for manual `-orchAddr` lists)
> * Requires on-chain operational mode (`-network=arbitrum-one-mainnet`, `-ethUrl`, funded ETH account)
>
> ### When to use it
>
> Use `-aiServiceRegistry` when the Gateway should discover AI Orchestrators from the open network instead of relying on a manually curated `-orchAddr` list. This is the on-chain equivalent of off-chain manual discovery.
>
> Without this flag, the Gateway operates off-chain and requires explicit Orchestrator addresses via `-orchAddr`.

> [tab] Video Registry
>
> PlannedVideo
>
> There is no equivalent of the Orchestrator `ServiceRegistry` for transcoding Gateways. Orchestrators register on-chain via `ServiceRegistry` and appear in the Livepeer Explorer automatically, but transcoding Gateways cannot register in the same way.
>
> On-chain Gateway registration for the transcoding network is on the roadmap but not yet available. Until it ships, Video and Dual Gateways rely on the community channels and manual listing methods described in the Discovery Methods section above.

## Related Pages

> [card] [Gateway Middleware](/v2/gateways/guides/advanced-operations/gateway-middleware.md)
>
> Auth and routing - prerequisites for a public-facing Gateway.

> [card] [Opportunities](/v2/gateways/guides/roadmap-and-funding/operator-support.md)
>
> Revenue models and Foundation support for Gateway operators.

> [card] [NaaP Multi-Tenancy](/v2/gateways/guides/roadmap-and-funding/naap-multi-tenancy.md)
>
> Network as a Platform architecture for multi-tenant operation.

> [card] [Technical Architecture](/v2/gateways/resources/reference/technical/technical-architecture.md)
>
> Network architecture context for how Gateways fit into the ecosystem.


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