Start gateway
Start your AI Gateway
The Livepeer AI network is currently in Beta but is already integrated into the main go-livepeer software. You can run the Livepeer AI software using one of the following methods:
- Docker (Recommended): The simplest and preferred method.
- Pre-built Binaries: An alternative if you prefer not to use Docker.
Start the AI Gateway
Follow the steps below to start your Livepeer AI Gateway node:
Retrieve the Livepeer AI Docker Image
Fetch the latest Livepeer AI Docker image with the following command:
Launch an Off-chain AI Gateway
Run the Docker container for your AI Gateway node:
This command launches an off-chain AI Gateway node. The flags are similar to those used for a Mainnet Transcoding Network Gateway. See the go-livepeer CLI reference for details.
Confirm Successful Startup
Upon successful startup, you should see output similar to:
Check Port Availability
Ensure that port 8937
is open and accessible, and configure your router for port forwarding if necessary to make the Gateway accessible from the internet.
Confirm the AI Gateway is Operational
After launching your Livepeer AI Gateway node, verify its operation by sending an AI inference request. Ensure that the Gateway is connected to an active off-chain AI Orchestrator node. For instructions on setting up an AI Orchestrator, refer to the AI Orchestrator Setup Guide.
Launch an AI Orchestrator
Start an AI Orchestrator node on port 8936
by following the AI Orchestrator Setup Guide. Ensure that the Orchestrator has loaded the necessary model (e.g., “ByteDance/SDXL-Lightning”).
Link Gateway to AI Orchestrator
Specify the Orchestrator’s address when launching the Gateway. Replace <ORCH_LIST>
with the Orchestrator’s address:
Submit an Inference Request
To submit an AI inference request, refer to the AI API reference. For example, to generate an image from text, use the following curl
command:
Inspect the Response
If the request is successful, you should see a response like this:
Refer to the Text-to-image Pipeline Documentation for more information.
Was this page helpful?