Openai Image Gen
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Peter Steinberger
@steipete
What This Skill Does
Batch-generates images from structured or random prompts using the OpenAI Images API, then outputs PNG files, a prompt-to-file mapping, and an interactive HTML thumbnail gallery.
Replaces manually submitting each prompt to the OpenAI API and assembling a gallery by automating the entire batch generation and presentation workflow.
When to Use It
- Generate a set of concept art variations from a base prompt
- Create multiple product mockup images for A/B testing
- Produce a gallery of themed illustrations for a presentation
- Rapidly prototype visual ideas with random prompt sampling
- Build a local image library for a creative project or mood board
Install
$ openclaw skills install @steipete/openai-image-genOpenAI 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)
Top skills in this category
Nano Banana Pro
@steipeteGenerate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
AdMapix
@fly0pantsAdMapix raw data layer for ad creatives, apps, rankings, downloads/revenue, and market metadata. Returns structured JSON from the AdMapix API; the calling ag...
API Gateway
@byungkyuConnect to external services through Maton-managed API routes. Use this skill only after the user names the target app, account, and task. Start with read/list calls when possible and follow the app-specific reference before any change.
YouTube Watcher
@michaelgatharaFetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
SuperDesign
@mpociotExpert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface.