Skip to content
Back to skills

Openai Image Gen

ASecurity

Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.

  • 279 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add infometa/workbuddyskills --skill openai-image-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openai Image Gen?

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

Security grade badge for Openai Image Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/infometa-openai-image-gen-workbuddyskills/badge)](https://www.skillsdirectory.com/skills/infometa-openai-image-gen-workbuddyskills)

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: openai-image-gen
description: "Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery."
description_zh: "批量生成图片并创建图库"
description_en: "Batch image generation with gallery view"
version: 1.0.1
---

# OpenAI Image Gen

Generate a handful of "random but structured" prompts and render them via OpenAI Images API.

## Setup

- Needs env: `OPENAI_API_KEY`

## Run

```bash
python3 {baseDir}/scripts/gen.py
```

Useful flags:
```bash
python3 {baseDir}/scripts/gen.py --count 16 --model gpt-image-1.5
python3 {baseDir}/scripts/gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4
python3 {baseDir}/scripts/gen.py --size 1536x1024 --quality high --out-dir ./out/images
```

## Output

- `*.png` images
- `prompts.json` (prompt > file mapping)
- `index.html` (thumbnail gallery)

Files in this skill

  • SKILL.md863 B
  • scripts/gen.py7.5 KB

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.

Comments

Loading comments…