imagegen

Generate or edit images via the OpenAI Image API with batch JSONL processing.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/devkeni/Skills --skill imagegen-devkeni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/devkeni/Skills/tree/main/media-creative/imagegen
Command: npx skills add https://github.com/devkeni/Skills --skill imagegen-devkeni

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Image Generation Skill provides a structured workflow to generate or edit images via the OpenAI Image API, including a bundled CLI and safe defaults to streamline visual content creation.

Core Features & Use Cases

  • Generate new images from prompts (including batch runs) and perform edits (inpainting/mask-based changes) using a single, consistent workflow.
  • Support batch processing via a JSONL file with concurrency controls and per-job output paths, including optional downscale outputs.
  • Manage inputs and outputs through the bundled CLI (scripts/image_gen.py), enforce API key presence, and validate inputs (size, quality, background) for deterministic results.

Quick Start

Run the bundled CLI with your prompt and an OPENAI_API_KEY to generate or edit images.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate and edit images using the OpenAI Image API?

To generate and edit images using the OpenAI Image API, you use a guided workflow that supports single-image generation, prompt augmentation, and mask-based inpainting. It validates input formats and requires an OPENAI_API_KEY for live execution.

Can I automate batch image generation from a JSONL file?

Yes, you can automate batch image generation by processing a JSONL file. The workflow includes concurrency controls and per-job output paths, allowing you to generate multiple images efficiently while managing optional downscaling outputs.

Do I need an OPENAI_API_KEY to perform mask-based image edits?

Yes, an OPENAI_API_KEY is required to perform mask-based image edits. The workflow enforces API key presence before making live calls to the OpenAI Image API to ensure secure and authorized image generation or modification.

What is the best way to validate image sizes and inputs for OpenAI image generation?

The best way to validate image sizes and inputs for OpenAI image generation is through the bundled CLI. It validates inputs like size, quality, and background formats to ensure deterministic results and prevent errors during the API request.

Does the image generation workflow support downscaling downstream outputs?

Yes, the image generation workflow supports optional downscaling for downstream outputs. This allows you to generate high-resolution images via the OpenAI Image API and automatically create smaller, optimized versions for various applications.

Why does prompt augmentation matter for OpenAI Image API generation?

Prompt augmentation matters for OpenAI Image API generation because it enhances your initial text inputs through a guided workflow. This structured approach helps produce more accurate and higher quality visual content from your prompts.