imagegen

Generate and edit images via the OpenAI Image API with batch workflows.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/pchemguy/Dummy --skill imagegen-pchemguy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/pchemguy/Dummy/tree/main/docs/AgentSkills/openai/skills/skills/.curated/imagegen
Command: npx skills add https://github.com/pchemguy/Dummy --skill imagegen-pchemguy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

OpenAI image generation and editing tasks can be complex to setup and repeat, so this Skill provides a bundled CLI to generate or edit images deterministically, with API key handling and consistent prompts.

Core Features & Use Cases

  • Generate new images from prompts using the bundled CLI.
  • Edit existing images with masks/inpainting, including batch variants.
  • Batch generate multiple outputs with a JSONL workflow, including prompt augmentation and payload validation.

Quick Start

Run the bundled CLI to generate or edit images from prompts, for example python scripts/image_gen.py generate --prompt 'a sunset over mountains'.

Frequently Asked Questions about imagegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch generate images with the OpenAI Image API?

Batch generate images with the OpenAI Image API using a JSONL workflow that handles prompt augmentation, payload validation, and multiple output variants automatically. The bundled CLI script processes batch generation tasks deterministically.

Can I edit existing images and apply masks using OpenAI image generation?

Edit existing images using OpenAI image generation by applying masks for inpainting tasks. The CLI supports masked editing alongside batch variants, ensuring deterministic outputs through consistent prompts and payload construction.

Do I need an OPENAI_API_KEY to run OpenAI image generation workflows?

An OPENAI_API_KEY is required to execute live OpenAI image generation workflows. The bundled CLI requires this key to authenticate API calls for generating new images, editing existing ones, and processing batch variants.

What is the best way to automate deterministic image generation with OpenAI?

Automate deterministic image generation with OpenAI by using a bundled CLI that standardizes size, quality, and background options. This approach ensures consistent payload construction and prompt augmentation for repeatable outputs.

Does OpenAI image generation support downstream downscaling and size validation?

OpenAI image generation through this CLI supports downstream downscaling and input validation for size, quality, and background options. This ensures generated images meet exact specification requirements before final output.