Livepeer provides two SDK families. The Studio SDK (
livepeer) wraps the full Studio API: livestreams, video assets, webhooks, access control, and AI inference. The AI SDK (@livepeer/ai) wraps AI inference endpoints only. Both authenticate with a Bearer token from the Studio dashboard.
Installation and initialisation
- TypeScript
- Python
- Go
- AI SDK (TypeScript)
AI inference calls
All nine batch pipelines share the same pattern: call the generate namespace, pass a request body, receive a typed response.- TypeScript
- Python
- Go
Video API calls (Studio SDK)
- TypeScript
- Python
Error handling
All SDKs surface three error types. Handle them explicitly.- TypeScript
- Python
Retry configuration
Both SDKs support configurable retry policies with exponential backoff. Cold model load times range from 30 seconds to several minutes — configure retries accordingly.- TypeScript
- Python
API key types
Two API key types exist in Studio. Use the correct type for your deployment context.SDK vs direct REST
Use the SDK unless you have a specific reason not to. The SDK adds typed responses, automatic retry logic, request serialisation, and error classification over raw HTTP. Direct REST is appropriate when you are working in a language without an official SDK, integrating with a platform that already manages HTTP (e.g., curl in a shell pipeline), or need fine-grained control over request headers and serialisation.Related pages
AI Quickstart
First AI API call in 10 minutes.
SDKs Reference
All SDK versions, packages, and links to full API reference.
AI Authentication
API key types, rotation strategy, and CORS configuration.
AI Troubleshooting
Error patterns and fixes for common AI inference failures.