openai-image-gen

Batch generate images via the OpenAI Images API with an index.html gallery.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/zhangyanbo2007/openclaw --skill openai-image-gen-zhangyanbo2007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-image-gen
Source: https://github.com/zhangyanbo2007/openclaw/tree/main/workspace/skills/openai-image-gen
Command: npx skills add https://github.com/zhangyanbo2007/openclaw --skill openai-image-gen-zhangyanbo2007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Batch generation of multiple image concepts by leveraging the OpenAI Images API, producing a browsable gallery and a mapping of prompts to generated files.

Core Features & Use Cases

  • Random prompt sampler to generate diverse concepts.
  • Outputs include PNG images, prompts.json, and an index.html gallery for easy viewing.
  • Suitable for rapid concept ideation, design previews, and portfolio mockups.

Quick Start

Run the gen.py script to batch-generate images and open the generated index.html gallery.

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 generate images using the OpenAI Images API by supplying your own prompts or using a random prompt sampler to quickly produce multiple visual concepts at once.

Do I need an OpenAI API key to batch generate images and create a gallery?

Yes, an OpenAI API key is required to batch generate images. The script uses this key to access the OpenAI Images API and saves the generated PNG files to a local tmp directory.

Can I automatically generate an HTML gallery from batch generated images?

Yes, you can automatically generate an HTML gallery from batch generated images. The process outputs an auto-generated index.html gallery alongside a prompts.json file for quick review.

What is the best way to create rapid visual mockups from random prompts?

The best way to create rapid visual mockups from random prompts is using an automated batch generation script that calls the OpenAI Images API and compiles outputs into a browsable gallery.

Where are the generated PNG images and prompts metadata saved on my machine?

Generated PNG images and prompts metadata are saved locally in a tmp directory (or ./tmp). This ensures your batch generated images and prompts.json mapping are stored together for quick review.