/install chatgpt-image-generation
ChatGPT Image Generation Skill
Use Playwright to automate ChatGPT web UI for image generation.
Prerequisites
npm install playwright
npx playwright install chromium
Usage
# Generate images from prompts file
node generate.js --prompts prompts.json --output ./images
# Resume from a specific index
node generate.js --prompts prompts.json --output ./images --start 5
# Run in headless mode
node generate.js --prompts prompts.json --output ./images --headless
Prompt File Format
["prompt 1", "prompt 2"]
or
{ "prompts": ["prompt 1", "prompt 2"] }
How It Works
- Opens ChatGPT in a Chrome browser
- Sends each prompt from the prompts file
- Waits for the response to be generated
- Finds the generated image in the page
- Saves the image to the output directory
- Repeats for all prompts
Output
- Numbered image files:
001.png,002.png, etc. results.jsonl— log of results per prompt
Login (One-Time)
If not logged into ChatGPT:
- Run the script (browser will open visible)
- Sign into ChatGPT
- Session is saved for future runs
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install chatgpt-image-generation - After installation, invoke the skill by name or use
/chatgpt-image-generation - Provide required inputs per the skill's parameter spec and get structured output
What is Chatgpt Image Generation?
Generate images from ChatGPT using Playwright browser automation. Opens ChatGPT, sends prompts, waits for generation, and saves the resulting images. It is an AI Agent Skill for Claude Code / OpenClaw, with 455 downloads so far.
How do I install Chatgpt Image Generation?
Run "/install chatgpt-image-generation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Chatgpt Image Generation free?
Yes, Chatgpt Image Generation is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Chatgpt Image Generation support?
Chatgpt Image Generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Chatgpt Image Generation?
It is built and maintained by Anum Mian (@amian); the current version is v1.0.3.