Documentation Index
Fetch the complete documentation index at: https://docs.livepeer.org/llms.txt
Use this file to discover all available pages before exploring further.
Two official SDKs wrap the Livepeer AI gateway REST API:
@livepeer/ai for JavaScript and TypeScript, and livepeer-ai for Python. Both are generated programmatically from the ai-runner OpenAPI specification and cover the same set of pipeline endpoints.
@livepeer/ai is in alpha. Pin your dependency to a specific version to avoid unintended breaking changes on update.@livepeer/ai
The JavaScript SDK supports Node.js, Bun, and browser runtimes. It requireszod as a peer dependency.
Installation:
dream-gateway.livepeer.cloud, no bearer token is required. Pass an empty string or omit the field for unauthenticated access.
Text-to-image example:
SDKValidationError indicates the response did not match the expected schema. HTTPError covers gateway-level HTTP errors.
Livepeer AI
The Python SDK supports Python 3.8 and later. Installation:Pipeline Method Reference
Both SDKs expose agenerate namespace containing one method per pipeline type. The method names use camelCase in JavaScript and snake_case in Python.
Repositories and Versioning
Both SDKs are generated from theai-runner OpenAPI spec and published independently:
- JavaScript:
github.com/livepeer/livepeer-ai-js: published to npm as@livepeer/ai - Python:
github.com/livepeer/livepeer-ai-python: published to PyPI aslivepeer-ai
livepeer/livepeer-ai-sdks repository contains older auto-generated SDKs and is no longer maintained.
Related Pages
The AI SDKs wrap the gateway inference endpoints. For the full endpoint reference with request schemas and curl examples, see AI pipelines.AI Pipelines
Endpoint shapes and curl examples for all nine pipeline types.
AI Jobs Quickstart
First API call in under ten minutes using curl or the SDK.
AI API Reference
Full OpenAPI-derived schema reference for all pipeline endpoints.
Overview
Pipeline categories and access model overview.