> ## 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.

# Installation du SDK Python

> Comment installer et configurer le SDK Python de Phaseo.

Le SDK est publié sous le nom [`phaseo`](https://pypi.org/project/phaseo/) sur PyPI.

## Installation

Installez le SDK avec le gestionnaire de paquets Python de votre choix :

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

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

## Prérequis

* Python 3.10+

## Configuration

### Clé API

Créez une clé API dans le [tableau de bord Phaseo](https://phaseo.app/gateway/keys).

### Variable d’environnement

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

### Utilisation de base

```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"])
```

### Configuration facultative du client

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

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

## Étapes suivantes

* Consultez le [guide d’utilisation](./usage.mdx)
* Parcourez la [référence API](../../api-reference/introduction.mdx)


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