imagegen

Generate and edit images via the OpenAI Image API CLI.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/KYRIE66nb/codex-omx-public-config --skill imagegen-kyrie66nb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/KYRIE66nb/codex-omx-public-config/tree/main/home/.codex/skills/imagegen
Command: npx skills add https://github.com/KYRIE66nb/codex-omx-public-config --skill imagegen-kyrie66nb

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generating and editing visuals for projects (web assets, product imagery, UI mockups) can be time-consuming and error-prone when done manually. This Skill automates image generation and editing via the OpenAI Image API, reducing manual toil and enabling rapid visual iterations.

Core Features & Use Cases

  • Generate new images from prompts using the bundled CLI (scripts/image_gen.py) with sensible defaults.
  • Edit existing images (inpainting, masking, background changes) using the OpenAI Image API.
  • Support batch workflows (generate-batch) for multiple prompts or inputs.
  • OpenAI API key requirement: live calls require OPENAI_API_KEY.

Quick Start

Run the bundled CLI to generate or edit images after setting OPENAI_API_KEY.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate images from text prompts using the OpenAI Image API?

Generate images from text prompts by running the bundled CLI script `scripts/image_gen.py`, which sends prompt inputs to the OpenAI Image API and returns automated visual content outputs using sensible defaults.

What's the best way to batch generate images with OpenAI?

Batch generate images with OpenAI by utilizing the generate-batch workflow in the bundled CLI, which processes multiple prompt inputs simultaneously to produce multiple image variants efficiently.

Can I edit existing images and do inpainting with the OpenAI Image API?

Edit existing images and perform inpainting with the OpenAI Image API by applying deterministic edits, masking, and background changes to source images to automate visual modifications.

Do I need an OpenAI API key to generate images locally?

An OpenAI API key is required to generate images locally because the skill makes live calls to the OpenAI Image API using the OPENAI_API_KEY environment variable for authentication.

Does the OpenAI image generation CLI work with Python and Pillow?

The OpenAI image generation CLI works with Python and requires the Pillow library, alongside the openai dependency, to process image data and handle visual content workflows.

Why use OpenAI Image API for automated visual content workflows?

Use OpenAI Image API for automated visual content workflows to reduce manual toil in generating web assets, product imagery, and UI mockups, enabling rapid visual iterations across multiple inputs.