Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 336 Bytes

File metadata and controls

12 lines (9 loc) · 336 Bytes

Python GPT Image 2 Example

Run a GPT Image 2 task from a backend script with requests.

cp ../.env.example ../.env
# Set POYO_API_KEY in ../.env
pip install -r requirements.txt
python main.py

The script checks for POYO_API_KEY before importing requests, so missing-key runs fail clearly without sending a request.