Search

PythonReactSEOPDF
OpenClaw

chatgpt-image-generation

Generate images from ChatGPT using Playwright browser automation. Opens ChatGPT, sends prompts, waits for generation, and saves the resulting images.

amian0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install amian/chatgpt-image-generation

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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

  1. Opens ChatGPT in a Chrome browser
  2. Sends each prompt from the prompts file
  3. Waits for the response to be generated
  4. Finds the generated image in the page
  5. Saves the image to the output directory
  6. 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:

  1. Run the script (browser will open visible)
  2. Sign into ChatGPT
  3. Session is saved for future runs

Source information

Source
github
Repository
openclaw/skills
Path
skills/amian/chatgpt-image-generation
Version
—
Commit
a080dd57141bd44c195a2723614492b716d9fbce
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# ChatGPT Image Generation Skill

Use Playwright to automate ChatGPT web UI for image generation.

## Prerequisites

```bash
npm install playwright
npx playwright install chromium
```

## Usage

```bash
# 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

```json
["prompt 1", "prompt 2"]
```

or

```json
{ "prompts": ["prompt 1", "prompt 2"] }
```

## How It Works

1. Opens ChatGPT in a Chrome browser
2. Sends each prompt from the prompts file
3. Waits for the response to be generated
4. Finds the generated image in the page
5. Saves the image to the output directory
6. 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:
1. Run the script (browser will open visible)
2. Sign into ChatGPT 
3. Session is saved for future runs

Related skills

OpenClaw

openbotx

openbotx

An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...

OpenClaw

zsxq-digest

sealiu1997

OpenClaw skill for 知识星球 / ZSXQ digests with token-first auth and browser recovery.

OpenClaw

browser-use-skill

abczsl520

🌐 OpenClaw skill for Browser-Use — AI-powered browser automation for complex multi-step workflows (login, form filling, scraping, posting)