openai-image-gen

Generate batch images via the OpenAI Images API and output an HTML gallery.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/DharambirAgrawal/Personal-Assistant --skill openai-image-gen-dharambiragrawal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-image-gen
Source: https://github.com/DharambirAgrawal/Personal-Assistant/tree/main/skills/openai-image-gen
Command: npx skills add https://github.com/DharambirAgrawal/Personal-Assistant --skill openai-image-gen-dharambiragrawal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates batch image generation via the OpenAI Images API using structured prompts and creates browsable outputs.

Core Features & Use Cases

  • Generate a handful of prompts and render them via the OpenAI Images API.
  • Supports GPT image models and DALL·E variants, producing an index.html gallery and a prompts.json mapping.
  • Use case: quickly create a small, browsable gallery of concept images for ideas or marketing visuals.

Quick Start

Run the generator to produce a gallery of images by executing python3 {baseDir}/scripts/gen.py

Frequently Asked Questions about openai-image-gen

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

FAQPage Schema
How do I batch generate images using the OpenAI Images API?

Batch image generation via the OpenAI Images API is automated using structured prompts to render multiple images at once. The process applies model-specific defaults for size, quality, background, and style, then downloads the generated images directly to your local environment.

What is the best way to create a browsable gallery of AI-generated concept images?

Creating a browsable gallery of AI-generated concept images is achieved by rendering batch prompts via the OpenAI Images API, which outputs an index.html file and a prompts.json mapping. This automatically structures your generated visuals and their associated text prompts for easy review.

Does this batch image generation tool support both GPT image models and DALLE variants?

Yes, batch image generation supports both GPT image models and DALLE variants. The generator enforces model-specific defaults for each variant, ensuring correct parameter handling for size, quality, background, and style during the automated rendering process.

How do I map generated images back to their original prompts for marketing visuals?

Mapping generated images back to their original prompts is handled automatically by producing a prompts.json file alongside the downloaded images. This file explicitly links each rendered visual to its exact structured prompt text for accurate tracking and documentation.

Can I run the batch image generation locally with a Python script?

Yes, you can run batch image generation locally by executing the Python script. Running the generator script automates the entire process, from sending structured prompts to the OpenAI Images API to downloading the resulting images and building the gallery.