Skip to content
Back to skills

Chatgpt Image Generation

ASecurity

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

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolsbashnode

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill chatgpt-image-generation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chatgpt Image Generation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chatgpt Image Generation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-chatgpt-image-generation/badge)](https://www.skillsdirectory.com/skills/lord1egypt-chatgpt-image-generation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: chatgpt-image-generation
description: Generate images from ChatGPT using Playwright browser automation. Opens ChatGPT, sends prompts, waits for generation, and saves the resulting images.
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.