imagegen

Generate and edit raster images via the OpenAI Image API.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Estom/aiflex --skill imagegen-estom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/Estom/aiflex/tree/main/skills-repo/openai-skills/imagegen
Command: npx skills add https://github.com/Estom/aiflex --skill imagegen-estom

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines generating and editing raster images for product assets, marketing creatives, UI mockups, and batch content needs, removing manual iteration and ad-hoc tooling around image API calls.

Core Features & Use Cases

  • Deterministic CLI-driven generation and masked edits using the OpenAI Image API, with sensible defaults for model, size, and quality.
  • Edit workflows including inpainting, background replacement, transparent background extraction, and identity-preserving or precise object edits, plus batch JSONL jobs for bulk runs.
  • Production guardrails: input validation, size and format checks, downscaling, retries, concurrency control, and explicit requirement of an API key for live calls.

Quick Start

Run the imagegen skill to generate a high-quality 1024x1024 product mockup and save final artifacts to output/imagegen/.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I batch generate product mockups using the OpenAI Image API?

Batch generate product mockups by running CLI-driven JSONL jobs through the OpenAI Image API, enforcing deterministic runs with configurable size, quality, and output format settings. You can process bulk image generation requests while applying input validation, retries, and concurrency control.

Can I perform masked inpainting and background removal with the OpenAI Python SDK?

Yes, masked inpainting and background removal are supported via the openai Python SDK. You can apply precise object edits, transparent background extraction, and identity-preserving modifications using masked inputs and the API's edit workflows.

Do I need an OPENAI_API_KEY to run OpenAI image generation and editing scripts?

Yes, an OPENAI_API_KEY is explicitly required for all live OpenAI Image API calls. The Skill enforces API key presence before executing any generation, editing, or batch JSONL processing tasks.

What is the best way to ensure reproducible image generation runs in a production environment?

The best way to ensure reproducible image generation is using CLI-driven commands with sensible defaults for model, size, and quality. The Skill enforces input validation, size checks, downscaling, and format constraints to maintain production guardrails.

Does this image generation workflow support downscaling and output format configuration?

Yes, the workflow supports downscaling and output format configuration alongside size, quality, and input_fidelity options. These parameters are applied during generation and editing to ensure final artifacts meet specific asset requirements.

Why does my batch JSONL image generation fail during concurrent processing?

Batch JSONL image generation may fail if production guardrails like input validation, concurrency control, or retries are not properly configured. The Skill enforces size, format checks, and OPENAI_API_KEY presence to prevent processing failures.