imagegen

Installation
Summary

Generate or edit images via OpenAI's API with a bundled CLI for deterministic, reproducible runs.

  • Supports three workflows: generate new images, edit existing images (inpainting, masking, background replacement, object removal), and batch runs across multiple prompts or variants
  • Defaults to gpt-image-1.5 and requires OPENAI_API_KEY for live API calls; uses the bundled scripts/image_gen.py CLI for all operations
  • Includes a structured decision tree and prompt augmentation template to classify requests (e.g., product mockup, UI mockup, logo design, photorealistic scenes) and map them to sensible defaults
  • Handles multi-image edits with explicit invariants, temporary JSONL batching under tmp/imagegen/, and output organization under output/imagegen/
SKILL.md

Image Generation Skill

Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics).

Top-level modes and rules

This skill has exactly two top-level modes:

  • Default built-in tool mode (preferred): built-in image_gen tool for normal image generation and editing. Does not require OPENAI_API_KEY.
  • Fallback CLI mode (explicit-only): scripts/image_gen.py CLI. Use only when the user explicitly asks for the CLI path. Requires OPENAI_API_KEY.

Within the explicit CLI fallback only, the CLI exposes three subcommands:

  • generate
  • edit
  • generate-batch

Rules:

  • Use the built-in image_gen tool by default for all normal image generation and editing requests.
Related skills

More from openai/skills

Installs
1.6K
Repository
openai/skills
GitHub Stars
18.9K
First Seen
Jan 28, 2026