Skip to Content
QuickstartQuickstart for Python

Quickstart for Python

Get started with OpenPixels in Python:

1. Get an API key

Generate your API key here.

2. Install

pip install openpixels

3. Generate an image

We offer both async and sync clients:

main.py
from openpixels import AsyncOpenPixels client = AsyncOpenPixels( api_key="sk-op-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", ) out = await client.run({ "model": "flux-dev", "prompt": "a cat", })