> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Python

> Learn how to create your first stream using the Livepeer Python SDK.

**1. Prerequisites**

To get the most out of this guide, you’ll need to:

* [Create an API key](https://livepeer.studio/dashboard/developers/api-keys)

**2. Install the SDK**

Get the Livepeer Python SDK.

```bash theme={null}
pip install git+https://github.com/livepeer/livepeer-python.git
```

**3. Initialize the SDK**

The first step is to initialize the SDK with your Livepeer Studio API key.

```python theme={null}
import livepeer
from livepeer.models import components

lpClient = livepeer.Livepeer(
    api_key="<YOUR_BEARER_TOKEN_HERE>",
)
```

**4. Use the SDK**

Now that you have the SDK installed and initialized, you can use it in your app.
Let's create a stream.

```python theme={null}
import livepeer
from livepeer.models import components

lpClient = livepeer.Livepeer(
    api_key="<YOUR_BEARER_TOKEN_HERE>",
)

req = components.NewStreamPayload(
    name='test_stream',
)

res = s.stream.create(req)

if res.stream is not None:
    # handle response
    pass
```

**5. Try it yourself**

> [card] [Python Example](https://github.com/livepeer/livepeer-python?tab=readme-ov-file#sdk-example-usage)
>
> See an example on GitHub.

## Next steps

Checkout Livepeer [API Reference](/api-reference) to learn more about the
Livepeer API and the Javascript SDK.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.