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

# Python-SDK installieren

> So installierst und konfigurierst du das Phaseo-Python-SDK.

Das SDK ist als [`phaseo`](https://pypi.org/project/phaseo/) auf PyPI veröffentlicht.

## Installation

Installiere das SDK mit deinem bevorzugten Python-Paketmanager:

<CodeGroup>
  ```bash title="pip" theme={null}
  pip install phaseo
  ```

  ```bash title="uv" theme={null}
  uv add phaseo
  ```
</CodeGroup>

## Voraussetzungen

* Python 3.10+

## Einrichtung

### API-Schlüssel

Erstelle einen API-Schlüssel im [Phaseo-Dashboard](https://phaseo.app/gateway/keys).

### Umgebungsvariable

```bash theme={null}
export PHASEO_API_KEY="phaseo_v1_sk_<kid>_<secret>"
```

### Grundlegende Verwendung

```python theme={null}
from phaseo import Phaseo
import os

client = Phaseo(api_key=os.environ["PHASEO_API_KEY"])

response = client.generate_text(
    {
        "model": "openai/gpt-5-nano",
        "messages": [{"role": "user", "content": "Hello!"}],
    }
)

print(response["choices"][0]["message"]["content"])
```

### Optionale Client-Konfiguration

```python theme={null}
from phaseo import Phaseo

client = Phaseo(
    api_key="your-api-key",
    base_url="https://api.phaseo.app/v1",
    timeout=30.0,
)
```

## Nächste Schritte

* Lies den [Nutzungsleitfaden](./usage.mdx)
* Sieh dir die [API-Referenz](../../api-reference/introduction.mdx) an


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