openai-image-gen

Generate images via the OpenAI Images API with customizable prompts and batch processing.

375|38|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/CraftOS-dev/CraftBot --skill openai-image-gen-craftos-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-image-gen
Source: https://github.com/CraftOS-dev/CraftBot/tree/main/skills/openai-image-gen
Command: npx skills add https://github.com/CraftOS-dev/CraftBot --skill openai-image-gen-craftos-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of multiple images based on provided or randomly generated prompts, streamlining visual content generation.

Core Features & Use Cases

  • Batch Image Generation: Create numerous images in a single run using the OpenAI Images API.
  • Customizable Prompts: Use specific prompts or leverage a built-in random prompt generator for variety.
  • Output Gallery: Generates a gallery (index.html) for easy viewing of created images and their corresponding prompts.
  • Use Case: A designer needs 16 variations of a product concept for a mood board. They can use this Skill to quickly generate these images with detailed prompts and review them in an organized gallery.

Quick Start

Run the gen.py script to generate a batch of images with 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 single batch?

To batch generate AI images from prompts, this Skill automates OpenAI Images API requests using customizable or randomly generated text inputs. It processes numerous image variations simultaneously and outputs local PNG files alongside an HTML gallery for organized viewing.

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

Yes, you need an OpenAI API key to authenticate image generation requests. The Skill optionally accepts a custom base URL for alternative endpoints, allowing you to direct API traffic through proxies or compatible custom server configurations.

Can I customize the model, size, and quality settings for AI image generation?

Yes, you can customize the model, size, and quality settings for AI image generation. The Skill passes these configurable parameters directly to the OpenAI Images API, ensuring specific visual outputs match your design requirements.

What is the best way to review a batch of generated AI images and their prompts?

The best way to review generated AI images is through the local HTML gallery. This output file displays created PNG images alongside their corresponding prompt mappings, providing an organized interface for visual content evaluation.

How does random prompt generation work for content creation?

Random prompt generation leverages a built-in generator to create diverse text inputs for content creation. This feature allows the OpenAI Images API to produce varied visual concepts automatically without manual prompt engineering for each image.