The Studio API manages the full livestream lifecycle: creation, ingest, transcoding, and delivery. You push video via RTMP; Livepeer handles transcoding to adaptive bitrate HLS.
Prerequisites
- API key from Livepeer Studio under Settings > API Keys
- SDK installed:
npm install livepeer/pip install livepeer/go get github.com/livepeer/livepeer-go - An RTMP encoder: OBS Studio, ffmpeg, or a custom stream producer
Step 1 — Create a stream
- TypeScript
- Python
- Go
rtmpIngestUrl— push your stream herestreamKey— the key portion of the RTMP URL, for encoders that take URL and key separatelyplaybackId— use this to construct the HLS playback URL
Step 2 — Push your stream
OBS Studio:- Open Settings > Stream
- Set Service to Custom
- Set Server to
rtmp://rtmp.livepeer.com/live(or the fullrtmpIngestUrlfrom step 1) - Set Stream Key to the
streamKeyvalue - Click Start Streaming
Step 3 — Play back the stream
Construct the HLS URL using yourplaybackId:
@livepeer/react Player component for the simplest integration:
Checking stream status
A stream has two relevant states:idle (no active ingest) and active (receiving video).
Related pages
Access Control
Gate your stream with JWTs or webhook-based authorisation.
Webhooks
Receive notifications for stream.started, stream.idle, and asset events.
Playback
HLS and WebRTC playback options and player integration.
Monitor Stream Health
Check ingest health, bitrate, and segment delivery.