openai-image-gen
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
$ Instalar
git clone https://github.com/steipete/clawdis /tmp/clawdis && cp -r /tmp/clawdis/skills/openai-image-gen ~/.claude/skills/clawdis// tip: Run this command in your terminal to install the skill
SKILL.md
name: openai-image-gen
description: Batch-generate images via OpenAI Images API. Random prompt sampler + index.html gallery.
homepage: https://platform.openai.com/docs/api-reference/images
metadata: {"clawdbot":{"emoji":"🖼️","requires":{"bins":["python3"],"env":["OPENAI_API_KEY"]},"primaryEnv":"OPENAI_API_KEY","install":[{"id":"python-brew","kind":"brew","formula":"python","bins":["python3"],"label":"Install Python (brew)"}]}}
OpenAI Image Gen
Generate a handful of “random but structured” prompts and render them via the OpenAI Images API.
Run
python3 {baseDir}/scripts/gen.py
open ~/Projects/tmp/openai-image-gen-*/index.html # if ~/Projects/tmp exists; else ./tmp/...
Useful flags:
python3 {baseDir}/scripts/gen.py --count 16 --model gpt-image-1
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
*.pngimagesprompts.json(prompt → file mapping)index.html(thumbnail gallery)
Repository

steipete
Author
steipete/clawdis/skills/openai-image-gen
430
Stars
44
Forks
Updated5d ago
Added6d ago