> For the complete documentation index, see [llms.txt](https://docs.ownlayer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownlayer.com/python-sdk.md).

# Python SDK

**Python** [**Python SDK**](https://github.com/OwnLayer/ownlayer_py_sdk) is the easiest and most recommended way to integrate with Ownlayer

#### Install SDK

```
pip install ownlayer
```

Add add `OWNLAYER_API_KEY` to your `.env` file:

```
OWNLAYER_API_KEY=ey...xxx
```

Change OpenAI or Anthropic imports to use Ownlayer wrapper

```
- import openai
+ from ownlayer.openai import openai
```
