OpenAI Image Gen

SkillMedia

Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the OpenAI Image Gen skill

What this skill tells your AI

The instructions your AI receives, as published by craftos-dev/craftbot in skills/openai-image-gen/SKILL.md and read by ahel’s review.

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)

Signals

GitHub stars
382
Forks
45
Last commit
Sep 2026

ahel review

  • S4info
    community integration — published by craftos-dev, not openai

Automated review, not a security audit. Ruleset v1.

Advanced
Catalog kind
skill
Gateway key
openai-image-gen-craftos-dev
Source
github.com/craftos-dev/craftbot