
Openai Image Gen
Spins up batches of AI-generated images with a built-in prompt sampler so you don't have to sit there thinking of variations. Point it at your OpenAI key, run the script, and it'll generate a set of images with random but structured prompts, then drop them in a folder with a local HTML gallery for quick review. Handy when you need to explore a visual concept space fast or just want to see what the model does with different angles on an idea. The flags let you lock in a base prompt, crank the count up to 16, or tweak size and quality. Outputs to a timestamped folder with the images, a JSON manifest, and a thumbnail page you can open right away.
- skills.sh installs
- 248
- GitHub stars
- 7.5K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add steipete/agent-scripts --skill openai-image-gen --agent claude-codeInstalls into .claude/skills of the current project.
Files
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/...):
python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py
open ~/Projects/tmp/openai-image-gen-*/index.html
Useful flags:
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
*.pngimagesprompts.json(prompt ↔ file mapping)index.html(thumbnail gallery)
Sponsors
Details
- Repository
- github.com/steipete/agent-scripts
- Categories
- Backend & APIs, AI & Agent Building, Generative Media
- First seen
- Jun 3, 2026