steipete avatar

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-code

Installs 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

  • *.png images
  • prompts.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

More from steipete/agent-scripts

All 9
1shuliuzhenhua-sys avatargoogle-serper-searchshuliuzhenhua-sys/google-serper-searchSearch the web, news, and images through the Serper API. Use when the user asks to search the web, find current information online, verify recent facts, search 243skills.sh installs
2wix avatarwix-stores-versioningwix/skillsHandle Wix Stores Catalog V1 and V3 SDK compatibility. Use when building any integration that interacts with Wix Stores products, inventory, orders, or collecti243skills.sh installs
3ccheney avatarfeature-slicingccheney/robust-skillsProactively apply when creating new features/components/pages or setting up frontend project structure. Triggers on FSD, feature slicing, Feature-Sliced Design,242skills.sh installs
4davila7 avataradaptyvdavila7/claude-code-templatesCloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays242skills.sh installs
5andrelandgraf avatarshiki-code-blocksandrelandgraf/fullstackrecipesSyntax highlight code blocks with Shiki. Supports server-side rendering in RSC and automatic light/dark theme switching.241skills.sh installs
6ancoleman avataradministering-linuxancoleman/ai-design-componentsManage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying applica240skills.sh installs