openai-image-gen

Generate PNG images via the OpenAI Images API with customizable prompts and sizes.

5|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/marchatton/agent-skills --skill openai-image-gen-marchatton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-image-gen
Source: https://github.com/marchatton/agent-skills/tree/main/.agents/skills/00-utilities/openai-image-gen
Command: npx skills add https://github.com/marchatton/agent-skills --skill openai-image-gen-marchatton

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of multiple image variations based on textual prompts, streamlining the process of visual content generation.

Core Features & Use Cases

  • Batch Image Generation: Create multiple images from a single or set of prompts.
  • Prompt Variation: Generates diverse prompts for varied outputs.
  • Gallery Creation: Automatically generates an HTML gallery for easy viewing of generated images.
  • Use Case: A designer needs several visual concepts for a new product. They can use this Skill to generate 16 different interpretations of a core idea, saving significant time compared to manual iteration.

Quick Start

Run the gen.py script to generate a batch of images using default random prompts.

Frequently Asked Questions about openai-image-gen

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

FAQPage Schema
How do I generate multiple AI images from prompts in a batch?

Batch image generation works by sending multiple customizable prompts to the OpenAI Images API, which outputs PNG files and an HTML gallery for quick visual review.

Do I need an OpenAI API key to generate images with Python?

Yes, an OpenAI API key is required alongside a Python 3 environment to execute the generation script and produce PNG image files.

Can I customize the size and quality settings of generated AI images?

Yes, you can customize image sizes and quality settings via the OpenAI Images API parameters to tailor the generated PNG output to your visual content requirements.

How does prompt variation work for AI art generation?

Prompt variation uses random sampling to generate diverse textual inputs from a core idea, producing varied visual interpretations and distinct AI art outputs.

What is the best way to view a batch of generated AI images?

The best way to view generated images is through the automatically created HTML gallery, which maps each PNG file to its corresponding prompt for easy comparison and review.

Are there limitations to batch processing AI image generation?

Limitations include dependency on OpenAI API rate limits and the requirement of a local Python 3 environment to execute the script and manage the output PNG files.