Skip to main content
Livepeer Studio is a developer-friendly hosted gateway for the Livepeer network. It provides a REST API, SDKs, and a dashboard to add live streaming and video-on-demand to your application - without running your own gateway node.
Livepeer Studio has its own full product documentation. This page covers Studio as a gateway provider in the context of the Livepeer network. For complete product guides, visit the Livepeer Studio product section or livepeer.studio.

Start here in 5 minutes


What Studio Gives You

  • Livestreaming - Create streams, ingest via RTMP or WebRTC WHIP, play back via low-latency WebRTC or HLS, record sessions, and multistream to other platforms
  • Video on demand - Upload video assets (TUS resumable or URL), transcode, play back with the Livepeer Player or any HLS/MP4 player
  • AI inference - Access the Livepeer AI network via Studio’s /api/beta/generate endpoints (text-to-image, image-to-image, image-to-video, and more). As of 02-March-2026, this remains the managed Studio AI base path.
  • Access control - Gate playback with webhooks or JWTs for subscriptions and token-gating
  • Analytics - Viewership and engagement metrics via the viewership API
  • Webhooks - Event-driven notifications for stream and asset lifecycle events

Getting Started

1. Create an account and API key

  1. Go to livepeer.studio and create an account
  2. Open Developers → API Keys and create a new key
  3. Store your API key in environment variables - never expose it in client-side code
API keys grant full account access. Always make API requests from your backend. CORS-enabled keys are deprecated and not recommended for new integrations.

2. Install the SDK

npm install livepeer @livepeer/react
import Livepeer from "livepeer";

const livepeer = new Livepeer({
  apiKey: process.env.LIVEPEER_STUDIO_API_KEY,
});

Common Tasks

Create a livestream

const { data } = await livepeer.stream.create({ name: "my-stream" });
console.log("Stream key:", data.streamKey);       // Give to broadcaster
console.log("Playback ID:", data.playbackId);     // Use in your app
Broadcast via RTMP to rtmp://rtmp.livepeer.com/live using the stream key. Play back via HLS at https://livepeercdn.studio/hls/{playbackId}/index.m3u8 or with the Livepeer React Player. As of 02-March-2026, livepeercdn.studio is the documented Studio HLS playback host.

Upload a video asset

// Upload via URL
const { asset } = await livepeer.asset.createViaUrl({
  name: "my-video",
  url: "https://example.com/video.mp4",
});
console.log("Playback ID:", asset.playbackId);

Run an AI inference job

Studio exposes Livepeer’s AI network via the /api/beta/generate endpoint family:
// Text-to-image (example using the AI SDK)
import { Livepeer } from "@livepeer/ai";

const livepeer = new Livepeer({
  httpBearer: process.env.LIVEPEER_STUDIO_API_KEY,
});

const result = await livepeer.generate.textToImage({
  prompt: "A futuristic cityscape at night",
  modelId: "SG161222/RealVisXL_V4.0_Lightning",
});
As of 02-March-2026, use https://livepeer.studio/api/beta/generate with Authorization: Bearer <LIVEPEER_STUDIO_API_KEY> for Studio-managed AI inference.

SDK and API Summary


Studio vs. Running Your Own Gateway

Studio is the right choice for most developers. Run your own gateway only when you need custom routing, compliance requirements, or are building a product that itself provides gateway services.
Last modified on March 9, 2026