Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.