1. Create an account and API key
- Go to Livepeer Studio and create an account.
- Open the Developers area and click Create API Key.
- Store the API key securely (e.g. in environment variables). Use it from your backend when calling the Livepeer Studio API.
Use separate accounts or projects for development and production to keep environments isolated.
2. Install the SDK
This example uses the JavaScript SDK and the Livepeer React library:3. Set up the client
Add your API key to environment variables, then create the Livepeer client (e.g. in a backend or server context):4. Get playback info
Use the client to fetch playback info for an asset (for example, one you uploaded in the dashboard). You need the asset’s playback ID:5. Play the asset
Use the Livepeer Player to play the video. Fetch the source on the server (e.g. in a React Server Component or API route), then pass it to the Player:Next steps
- Create a livestream — Create a stream and get a stream key and playback ID.
- Upload an asset — Upload video files and play them back.
- Listen to asset events — Use webhooks to react when assets are ready or fail.
- SDKs overview — TypeScript, Go, Python, and React.
- API overview — Authentication and API basics.