All skills
steipete avatar

openai-image-gen

steipete/agent-scripts

Scripts for agents, shared between my repositories.

2,439 244 Updated yesterday First seen 6 months agoactive
npx -y skilld add gh:steipete/agent-scripts -s openai-image-gen

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)

Source: SKILL.md on GitHub

No curators have added this skill yet. Be the first to include it in a collection.