Skip to main content
By the end of this guide, your Orchestrator will accept AI inference jobs alongside transcoding.

Prerequisites

Before you begin:
  • go-livepeer is installed and running as a transcoding Orchestrator on Arbitrum mainnet (see Install go-livepeer and Get Started)
  • Your Orchestrator is in the Top 100 Active Set on the Livepeer Network
  • Docker is installed with nvidia-container-toolkit enabled (GPU passthrough required for the AI Runner containers)
  • Your GPU has at least 4GB of VRAM available to run at least one AI pipeline (see the hardware check below)
  • Model weights pre-downloaded for the pipeline(s) you want to serve (see Download AI Models)
This guide adds AI inference to an existing transcoding node. If you are setting up from scratch, start with Install go-livepeer.

Check your hardware

AI inference runs in a separate Docker container alongside your transcoding process. If both share the same GPU, VRAM is split between them. Before configuring anything, confirm how much VRAM your GPU has available. Run this command to list your GPUs and their VRAM:
You should see output similar to:
Use the table below to see which pipelines you can run based on your available VRAM: For details on each pipeline, see Job Types.
If your GPU does not have enough free VRAM to run both transcoding and your chosen AI pipeline, AI Runner containers will fail to start. Either select a lower-VRAM pipeline, dedicate a second GPU exclusively to AI, or stop transcoding on that GPU before enabling AI.

Step 1 – Pull the AI Runner image

The AI subnet uses a separate Docker image (livepeer/ai-runner) to run inference. Pull it before starting your node:
If you plan to run the segment-anything-2 pipeline, also pull its pipeline-specific image:
Check the AI Pipelines documentation for any other pipeline-specific images.

Step 2 – Configure aiModels.json

The aiModels.json file tells your Orchestrator which AI pipelines and models to serve, what to charge, and whether to keep models warm in VRAM. Create the file at ~/.lpData/aiModels.json:
Add at least one pipeline entry. The example below configures a single text-to-image pipeline with a warm model – the minimal working configuration:

Field reference

During Beta, only one warm model per GPU is supported. Set "warm": true for the model you want pre-loaded; additional models will load on demand when requested.
For recommended pricing per pipeline, see Job Types. For a full multi-pipeline example, see AI Pipeline Configuration.

Step 3 – Update your startup command

Stop your current go-livepeer process, then restart it with the following additions. Three flags enable AI:
  • -aiWorker – enables the AI worker functionality
  • -aiModels – path to your aiModels.json file
  • -aiModelsDir – directory where model weights are stored on the host machine
Before (transcoding only):
After (transcoding + AI):
If you are running via Docker, mount the Docker socket so the Orchestrator can manage ai-runner containers:
The -aiModelsDir path must be the host machine path, not the path inside the Docker container. The Orchestrator uses Docker-out-of-Docker to start ai-runner containers, and passes this path directly to them.

Step 4 – Verify AI is active

Check the logs

Within a few seconds of startup, you should see a line like this for each model configured as warm:
If you see the standard RPC ping without the managed container line, check that:
  • aiModels.json is valid JSON and at the path specified in -aiModels
  • The model weights are present in -aiModelsDir
  • The Docker socket is mounted (Docker mode only)

Test the AI Runner directly

Once running, confirm the AI Runner responds by sending a test inference request. Navigate to http://localhost:8000/docs in your browser to access the Swagger UI for the ai-runner container. Alternatively, use curl:
A successful response returns a JSON object with an images array containing a base64-encoded PNG URL.

Confirm pipelines are advertised

Your AI pipelines will appear in the Livepeer Explorer on your Orchestrator’s profile once on-chain capability advertisement is configured. See Publish Offerings for that step.

Choose your AI path

Your AI Runner is active. The next step depends on which pipeline type you want to specialise in.

Set up batch AI inference

Configure image, audio, and video generation pipelines. Covers model downloads, pricing, and on-chain registration for batch inference.

Set up real-time AI (Cascade)

Configure ComfyStream for persistent video stream processing. Covers ComfyUI workflow deployment and GPU allocation.
  • Job Types – understand the difference between transcoding, batch AI, real-time AI, and LLM inference before choosing a path
  • AI Pipeline Configuration – advanced aiModels.json options, multi-GPU setup, external containers, and optimisation flags
Last modified on June 2, 2026