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

# Video on Livepeer

> What Livepeer provides for video developers: livestreaming, VOD transcoding, playback, and access control via the Studio API and SDKs.

> [!TIP]
>
> The Studio API and SDKs give you full lifecycle management for livestreams and video assets with four lines of code -- no infrastructure to operate.

***

Livepeer's video infrastructure handles transcoding, packaging, and delivery for both live and recorded video. The Studio API exposes this as a REST interface with official SDKs in TypeScript, Python, Go, and React. You call the API; the network provides the compute.

Video workloads on Livepeer use LPT stake-weighted routing and round-based rewards -- this is the original Livepeer use case and the most mature part of the network.

What You Can Build

## Capabilities

The Studio API covers four workload types:

**Livestreams** -- Create a stream, get an RTMP ingest URL, and Livepeer handles transcoding to adaptive bitrate HLS for delivery. Sub-second WebRTC playback is available for latency-sensitive applications.

**VOD assets** -- Upload a video file, Livepeer transcodes it to multiple renditions. The asset is playable immediately via HLS or MP4.

**Webhooks** -- Subscribe to events (stream started, stream ended, asset ready, asset failed) via HTTP callbacks. Event-driven architectures do not need to poll the API.

**Access control** -- Gate content behind JWTs or webhook-based authorisation. JWT playback policy signs a token server-side; the player verifies it at playback.

API Surface

## API surface

All video operations go through the Studio REST API at `https://livepeer.studio/api`. Authentication uses a Bearer token from the Studio dashboard.

<table>
  <thead>
    <tr>
      Resource

      Key operations

      Notes
    </tr>
  </thead>

  <tbody>
    <tr>
      **Streams**

      create, get, update, delete, list

      Returns RTMP ingest URL and playback ID
    </tr>

    <tr>
      **Assets**

      create (upload), get, update, delete, list

      Supports direct upload and URL-based import
    </tr>

    <tr>
      **Webhooks**

      create, list, delete, test

      `stream.started`, `stream.idle`, `asset.ready`, `asset.failed`
    </tr>

    <tr>
      **Signing keys**

      create, list, delete

      Used to sign JWTs for access-controlled content
    </tr>

    <tr>
      **Multistream targets**

      create, list, delete

      Simultaneously push to YouTube, Twitch, custom RTMP
    </tr>
  </tbody>
</table>

SDKs

## SDKs

Four officially supported SDKs cover the full Studio API surface including video resources and AI inference:

```bash theme={null}
# TypeScript / JavaScript (npm v3.5.0)
npm install livepeer

# Python
pip install livepeer

# Go
go get github.com/livepeer/livepeer-go

# React UI components (Player, Broadcast)
npm install @livepeer/react
```

All SDKs share the same resource structure. Initialise with your API key:

> [tab] TypeScript
>
> ```typescript theme={null}
> import { Livepeer } from 'livepeer';
>
> const client = new Livepeer({ apiKey: process.env.LIVEPEER_API_KEY });
>
> const stream = await client.stream.create({
>   name: 'my-stream',
> });
>
> console.log(stream.rtmpIngestUrl); // push here from OBS / ffmpeg
> console.log(stream.playbackId);    // use in Player component
> ```

> [tab] Python
>
> ```python theme={null}
> from livepeer import Livepeer
> import os
>
> client = Livepeer(api_key=os.environ['LIVEPEER_API_KEY'])
>
> stream = client.stream.create(request={'name': 'my-stream'})
> print(stream.stream.rtmp_ingest_url)
> print(stream.stream.playback_id)
> ```

> [tab] Go
>
> ```go theme={null}
> import (
>   "context"
>   "github.com/livepeer/livepeer-go"
>   "github.com/livepeer/livepeer-go/models/components"
> )
>
> client := livepeer.New(livepeer.WithSecurity(os.Getenv("LIVEPEER_API_KEY")))
>
> stream, err := client.Stream.Create(context.Background(), components.NewStreamPayload{
>   Name: "my-stream",
> })
> ```

Playback

## Playback protocols

Livepeer delivers content over two protocols:

**HLS** -- Standard adaptive bitrate streaming. Works with any HLS player: `@livepeer/react` Player, HLS.js, Video.js, or native iOS/Android players. Latency is typically 3-8 seconds.

**WebRTC** -- Sub-second latency for live interactive applications. Supported via the `@livepeer/react` Player and Broadcast components. Requires no additional configuration -- the player selects WebRTC automatically when available.

The `@livepeer/react` Player handles both protocols, fallback logic, and access-controlled playback via the `jwt` prop:

```tsx theme={null}
import * as Player from '@livepeer/react/player';

export const VideoPlayer = ({ playbackId }: { playbackId: string }) => (
  <Player.Root src={`https://livepeercdn.studio/hls/${playbackId}/index.m3u8`}>
    <Player.Container>
      <Player.Video />
      <Player.Controls />
    </Player.Container>
  </Player.Root>
);
```

Pricing

## Pricing

<table>
  <thead>
    <tr>
      Tier

      Monthly

      Transcoding

      Concurrent viewers
    </tr>
  </thead>

  <tbody>
    <tr>
      **Free**

      \$0

      1,000 min/month

      30
    </tr>

    <tr>
      **Growth**

      $100 minimum</TableCell>       <TableCell>$0.33 per 60 min

      50,000
    </tr>

    <tr>
      **Enterprise**

      \$2,500 annual commit

      Custom

      Custom
    </tr>
  </tbody>
</table>

## Related pages

> [card] [Transcoding Quickstart](/v2/developers/get-started/transcoding-quickstart.md)
>
> Create your first stream and test end-to-end in 15 minutes.

> [card] [Developer Stack](/v2/developers/concepts/developer-stack.md)
>
> Understand all three access layers and when to use Studio vs a self-hosted gateway.

> [card] [Access Control](/v2/developers/guides/video/access-control.md)
>
> Gate content with JWTs or webhook-based authorisation.

> [card] [Webhooks](/v2/developers/guides/video/webhooks.md)
>
> Subscribe to stream and asset events for event-driven applications.


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