openai-image-gen

by v1.0.0

This skill provides a convenient way to batch-generate images using the OpenAI Images API. It includes a random prompt sampler to create varied outputs and automatically generates an `index.html` gallery for easy viewing of the results. The script supports various OpenAI models like GPT image models, DALL-E 3, and DALL-E 2, offering fine-grained control over image generation parameters such as size, quality, and style. It simplifies the process of exploring different image generation capabilities and quickly reviewing the generated content, making it ideal for creative projects and content creation.

What It Does

The skill executes a Python script to interact with the OpenAI Images API. It can generate images based on either a user-provided prompt or a set of randomly structured prompts. It supports multiple OpenAI image models (GPT image models, DALL-E 2, DALL-E 3) and allows customization of parameters like image count, size, quality, background, and output format. The generated images and a `prompts.json` mapping are saved, along with an `index.html` gallery for easy browsing.

When To Use

Use this skill when you need to quickly generate multiple images for creative projects, content creation, design mockups, or testing different AI image generation prompts and models. It's ideal for exploring the capabilities of OpenAI's image APIs, generating variations of a concept, or creating visual assets in bulk for presentations, articles, or social media.

Inputs

Model type (dall-e-2, dall-e-3, gpt-image-1, gpt-image-1-mini, gpt-image-1.5), prompt (optional), image size, quality, count, output directory, background (GPT models), output format (GPT models), style (dall-e-3).

Outputs

Generated image files (PNG, JPEG, or WebP), prompts.json (prompt-to-file mapping), index.html (thumbnail gallery).

Limitations

DALL-E 3 is limited to generating only one image at a time. API key required. Streaming and moderation are available via API but not implemented in this script.

Installation

Add to Cline skills directory

View Cline documentation

Add to Copilot workspace settings

View GitHub Copilot documentation

Configure in .aider.conf.yml

View Aider documentation

Add to .cursor/skills/

View Cursor IDE documentation

Add to .vscode/skills/

View VS Code documentation

What people say, and where to get help

No ratings yet. If you have used this skill, yours would be the first.

No reviews yet

This skill has not been rated. If you have run it, a short note about what you used it for helps the next person more than any description can.

Related Skills You May Like

Discover more AI agent skills in the same category to enhance your workflow automation.

Have a Skill to Share?

Join the community and help AI agents learn new capabilities. Submit your skill and reach thousands of developers.