Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Node.js GPT Image 2 Example

Run a GPT Image 2 task from a backend script with native fetch.

cp ../.env.example ../.env
# Set POYO_API_KEY in ../.env
npm start

The script submits a task, stores the returned task_id in memory for the demo, then polls until the task reaches finished or failed.