Learn how to run your first AI inference job using the Livepeer AI Python SDK.
Prerequisites
Install the SDK
pip install livepeer-ai
Initialize the SDK
from livepeer_ai import Livepeer s = Livepeer( http_bearer="<YOUR_BEARER_TOKEN_HERE>", )
Use the SDK
from livepeer_ai import Livepeer s = Livepeer( http_bearer="<YOUR_BEARER_TOKEN_HERE>", ) res = s.generate.text_to_image(request={ "prompt": "<value>", }) if res.image_response is not None: # handle response pass
Try it yourself
Was this page helpful?