Back to skills
SKILL.md
Openai Image Gen
ASecurityBatch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
- 279 stars
- 0 votes
- 0 copies
- 2 views
- Added September 8, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add infometa/workbuddyskills --skill openai-image-gen --agent claude-codeAre you the author of Openai Image Gen?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/infometa-openai-image-gen-workbuddyskills)---
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.md
- scripts/gen.py
Attribution
Comments
Loading comments…