imagegen

Generate and edit raster images using GPT Image models via built-in tool or CLI.

Updated Jul 31, 2026
One-click install
npx skills add https://github.com/AarnavBaddam/skills --skill imagegen-aarnavbaddam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/AarnavBaddam/skills/tree/main/.system/imagegen
Command: npx skills add https://github.com/AarnavBaddam/skills --skill imagegen-aarnavbaddam

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating bitmap assets like photos, illustrations, sprites, mockups, and transparent cutouts normally requires design tools or manual API scripting; this Skill generates and edits raster images directly in the project workflow. ## Core Features & Use Cases - Built-in image generation and editing: Create new images from prompts or edit existing images using the built-in image_gen tool, with no API key required. - Transparent-background cutouts: Generate subjects on a chroma-key background and remove it locally with the bundled remove_chroma_key.py helper to produce alpha PNG/WebP assets. - Fallback CLI mode: Use scripts/image_gen.py with generate, edit, and generate-batch subcommands for explicit control over model, quality, size, masks, and batch JSONL jobs. - Use Case: A developer building a landing page asks for a hero product shot; the Skill generates the image, validates it, and copies the final asset into the project workspace with a versioned filename. ## Quick Start Ask the assistant to generate a hero image of your product for the landing page and save it into the project assets folder.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate an image with a transparent background?

Generate the subject on a flat chroma-key background with the built-in image_gen tool, then run the bundled remove_chroma_key.py script to convert the key color to alpha. For complex subjects like hair or glass, true transparency requires the CLI fallback with gpt-image-1.5 and background=transparent.

How do I batch generate multiple images from prompts?

In the default path, issue one built-in image_gen call per asset. If the user explicitly chooses CLI mode, use the generate-batch subcommand of scripts/image_gen.py with a JSONL file containing one job per prompt and an output directory.

Does the image generation CLI require an API key?

The built-in image_gen tool does not require OPENAI_API_KEY. The fallback CLI scripts/image_gen.py makes live OpenAI Image API calls, so it requires OPENAI_API_KEY set as an environment variable plus network access.

What is the difference between gpt-image-2 and gpt-image-1.5?

gpt-image-2 is the default CLI model supporting flexible sizes up to 3840px and always uses high input fidelity, but it does not support background=transparent. gpt-image-1.5 supports true transparent backgrounds and input_fidelity settings, limited to fixed sizes.

When should I not use AI image generation for assets?

Avoid it when extending an existing SVG or vector icon system, creating simple shapes or diagrams better done in HTML/CSS/canvas, or editing assets that already exist in an editable native format. The Skill targets bitmap output, not code-native visuals.