openai-image-gen

Generate images from text prompts via the OpenAI Images API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Batch generates AI-generated images from text prompts using the OpenAI Images API, enabling rapid visual content creation without manual drawing.

Core Features & Use Cases

  • Random prompt sampler to generate diverse, structured prompts for consistent visuals.
  • OpenAI Images API integration to produce high-quality images locally or in the cloud.
  • Local gallery output via index.html and prompts.json for quick review and sharing.
  • Suitable for marketing visuals, UI mockups, product concepts, and creative exploration.

Quick Start

Set OPENAI_API_KEY in your environment, then run the generator to produce a local image gallery you can view in index.html.

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 AI images from text prompts?

Batch-generate AI images from text prompts using the OpenAI Images API to automate visual content creation and output a browsable index.html gallery. A deterministic prompt sampler structures diverse prompts for consistent visuals.

Do I need an OpenAI API key to generate images locally?

Yes, generating AI images via the OpenAI Images API requires an OPENAI_API_KEY environment variable and Python. The script uses the API to produce high-quality images locally or in the cloud.

What is a prompt sampler for AI image generation?

A prompt sampler is a deterministic mechanism that generates diverse, structured text prompts for consistent visual outputs. It automates prompt variation to streamline batch image creation via the OpenAI Images API.

Can I create a local gallery to review batch-generated AI images?

Yes, batch image creation outputs an index.html gallery and a prompts.json file for quick review and sharing. The local gallery allows users to browse generated marketing visuals and concept art easily.

Does this batch image generation approach work for product design mockups?

Yes, batch image generation is suitable for marketing visuals, UI mockups, product concepts, and creative exploration. It automates visual content creation without manual drawing using the OpenAI Images API.