Documentation Index
Fetch the complete documentation index at: https://na-36-handover-docs-v2-into-docs-v2-dev-20260518.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Running a gateway requires a go-livepeer process, an Ethereum keystore, and direct network access. Browser and mobile applications cannot do this. Two patterns exist for client-side Livepeer access.
Managed gateway with CORS key
The simplest pattern: use a gateway provider’s endpoint with a CORS-enabled API key. The key is safe to embed in client-side code because it is scoped to specific resource IDs.
// React Native or browser JavaScript
const response = await fetch('https://provider-gateway.example.com/text-to-image', {
method: 'POST',
headers: {
'Authorization': \`Bearer \${CORS_API_KEY}\`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
prompt: 'a mountain at dawn',
model_id: 'SG161222/RealVisXL_V4.0_Lightning',
}),
});
CORS-enabled keys restrict access to specific assets and streams. A leaked CORS key cannot access other resources in the account.
Backend proxy pattern
For applications that need full API access or cannot use CORS keys:
Browser / Mobile App
│
│ fetch('/api/livepeer/text-to-image', { body })
│
▼
Your Backend (Node, Python, Go)
│
│ livepeer SDK with backend API key
│
▼
Gateway Provider or Self-Hosted Gateway
The backend holds the API key and proxies requests. The client never sees the key. This pattern works for any client platform and gives the backend full control over rate limiting, authentication, and request filtering.
Video playback on mobile
For video playback, the @livepeer/react Player works in React Native via the react-native-video bridge. For non-React-Native mobile apps, use the native platform’s HLS player (AVPlayer on iOS, ExoPlayer on Android) with the standard Livepeer HLS URL:
https://livepeercdn.studio/hls/{playbackId}/index.m3u8
No SDK or special integration required. The URL is a standard HLS manifest.
The AI authentication guide covers CORS key types and backend key security. The community gateway covers the unauthenticated development endpoint.