Skip to main content

openai-image-gen

OpenAI Images API: batches, prompt sampler, gallery.

Source facts

Repository
steipete/agent-scripts
Last source activity
May 23, 2026 at 08:13
Detected SKILL.md language
English
Stars
7,411
Forks
646

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
2 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
openai-image-gen
description
OpenAI Images API: batches, prompt sampler, gallery.
# 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 From any directory (outputs to `~/Projects/tmp/...` when present; else `./tmp/...`): ```bash python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py open ~/Projects/tmp/openai-image-gen-*/index.html ``` Useful flags: ```bash python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py --count 16 --model gpt-image-1.5 python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4 python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py --size 1536x1024 --quality high --out-dir ./out/images ``` ## Output - `*.png` images - `prompts.json` (prompt ↔ file mapping) - `index.html` (thumbnail gallery)
View on GitHub