OpenAI Image Gen

SkillMedia

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

Then ask your AI: use the OpenAI Image Gen skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.

What this skill tells your AI

The instructions your AI receives, as published by leoyeai/openclaw-master-skills 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
2k
Forks
324
Last commit
Jul 2026

Ahel review

  • S4info
    community integration, published by leoyeai, not openai

Automated review, not a security audit. Ruleset v1.

Ahel recommends instead

Advanced
Item type
skill
Key
openai-image-gen-leoyeai
Source
github.com/leoyeai/openclaw-master-skills