imagegen

Generate and edit images via the OpenAI Image API with a Python CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Images are central to many projects but creating and editing visuals quickly often requires design time or expensive tools. This Skill automates image generation and editing via the OpenAI Image API, enabling teams to iterate faster on visuals without leaving the CLI workflow.

Core Features & Use Cases

  • Generate new images from prompts with deterministic outputs using the bundled CLI scripts/image_gen.py.
  • Edit existing images with optional masks, including inpainting and background changes, via the same CLI.
  • Batch-generation support for large prompts or multiple variants through the generate-batch workflow.

Quick Start

Run the bundled CLI scripts/image_gen.py 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 the command line using the OpenAI Image API?

You can generate images via the bundled Python CLI at scripts/image_gen.py, which automates OpenAI Image API calls for deterministic outputs with strict input validation and prompt augmentation. Set your OPENAI_API_KEY, then run the CLI with your prompt.

Can I batch process multiple image generation prompts in one workflow?

Yes, batch processing is supported through the generate-batch workflow, allowing you to handle large prompts or multiple variants. The CLI applies deterministic outputs and strict input validation to every image in the batch.

How do I edit existing images with masks using a Python CLI?

The CLI supports editing existing images with optional masks for inpainting and background changes. It applies strict input validation and accepts size, quality, background, and output format options for the edited image.

Do I need an OpenAI API key to use this image generation CLI?

Yes, a valid OPENAI_API_KEY environment variable is required. The CLI uses the OpenAI Image API for all generation and editing tasks, and dependencies include the openai and Pillow Python libraries.

What image generation options are supported for size, quality, and format?

The CLI supports size, quality, background, and output_format options for both generating and editing images. It uses a structured prompt augmentation workflow to produce deterministic outputs via the OpenAI Image API.