imagegen

Generate and edit images using the OpenAI Image API.

4|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/heyzude/skills_for_codex --skill imagegen-heyzude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/heyzude/skills_for_codex/tree/main/skills_by_openai/imagegen
Command: npx skills add https://github.com/heyzude/skills_for_codex --skill imagegen-heyzude

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation and modification of images, streamlining visual content generation for various projects.

Core Features & Use Cases

  • Image Generation: Create new images from text prompts for concept art, product mockups, and more.
  • Image Editing: Modify existing images through inpainting, background replacement, and object manipulation.
  • Batch Processing: Generate or edit multiple images efficiently from a list of prompts.
  • Use Case: Generate a hero image for a website landing page, or edit a product photo to change its background.

Quick Start

Use the imagegen skill to generate an image of a cat wearing a hat.

Frequently Asked Questions about imagegen

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

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

Generate images by providing text prompts to the OpenAI Image API. This process automates visual content creation for use cases like concept art and product mockups, requiring an OPENAI_API_KEY to execute live API calls.

Can I edit existing images and replace backgrounds with the OpenAI API?

Edit existing images using the OpenAI API for inpainting, background replacement, and object manipulation. This Skill supports modifying photos to change backgrounds or manipulate specific objects directly.

Do I need an OPENAI_API_KEY to perform AI image generation?

An OPENAI_API_KEY is required for AI image generation. This Skill leverages a bundled CLI script for deterministic execution, but live API calls to the OpenAI Image API necessitate a valid key.

What is the best way to batch process image generation for visual assets?

Batch process image generation by providing a list of prompts to this Skill. It efficiently generates or edits multiple images, streamlining the creation of visual assets for various projects.

Does this image generation tool work with Pillow and Python scripts?

This image generation tool works with Python and utilizes the Pillow dependency for image processing. It uses a bundled CLI script to handle deterministic execution and interact with the OpenAI API.