openai-image-gen
Batch-generate AI images using OpenAI's Images API with a random prompt sampler and a built-in HTML gallery viewer.
npx clawhub@latest install openai-image-genVoraussetzungen
OpenAI Image Gen is a batch image generation skill that leverages the OpenAI Images API to produce multiple images in a single run. It ships with a built-in random-but-structured prompt sampler, so you can generate diverse, creative imagery without writing a single prompt — or supply your own.Every run produces a set of image files alongside a prompts.json mapping and a self-contained index.html thumbnail gallery you can open directly in your browser. Supports three model families: GPT image models (gpt-image-1, gpt-image-1-mini, gpt-image-1.5), DALL-E 3, and DALL-E 2 — each with their own size, quality, and style options.
Funktionsweise
Once installed, the skill runs a Python script that handles the full generation pipeline:Optionally samples from a library of structured random prompts, or accepts a custom --prompt argument.Calls the OpenAI Images API with your chosen model, size, quality, and format settings.Saves output images (.png, .jpeg, or .webp) to a timestamped directory.Writes a prompts.json file mapping each prompt to its generated file.Builds an index.html thumbnail gallery you can open locally to browse all results.Note: Image generation can take up to several minutes per batch. When invoking via an exec tool, set a higher timeout (e.g., timeout=300) to avoid premature termination.
Hauptfunktionen
Multi-model support — Works with GPT image models (gpt-image-1, gpt-image-1-mini, gpt-image-1.5), DALL-E 3, and DALL-E 2, each with appropriate defaults.Batch generation — Generate up to 16 images in a single run with the --count flag (DALL-E 3 is automatically limited to 1 per API constraints).Random prompt sampler — Built-in structured prompt generator produces varied, creative results without manual prompt writing.Flexible output formats — Save images as png, jpeg, or webp (GPT image models); output directory is fully configurable.HTML gallery viewer — Every run produces a self-contained index.html thumbnail gallery for instant local browsing.Fine-grained quality & size controls — Choose resolution and quality tier per model family, including landscape/portrait orientations and transparent backgrounds (GPT image models).DALL-E 3 style parameter — Select vivid (hyper-real, dramatic) or natural rendering when using DALL-E 3.
Voraussetzungen
LLM / Image API Key — Required. Your OpenAI API key is used to authenticate all image generation requests. Supports: OpenAI (GPT image models, DALL-E 3, DALL-E 2). Set as the OPENAI_API_KEY environment variable.
Anwendungsfälle
Rapid concept visualization — Quickly generate a batch of concept images for a design project or mood board without manual prompt engineering.Prompt experimentation — Test how different models, sizes, and quality settings affect the same prompt side-by-side using the gallery view.Asset prototyping — Generate placeholder images in specific aspect ratios and formats (webp, transparent PNG) for UI mockups or web projects.Creative exploration — Use the random prompt sampler to discover unexpected visual ideas and iterate on the results that resonate.
Installation
npx clawhub@latest install openai-image-gennpx clawhub@latest install openai-image-genVoraussetzungen
FAQ
Bewertungen
0 BewertungenAnmelden, um eine Bewertung zu schreiben
Noch keine Bewertungen. Sei der Erste, der seine Erfahrungen teilt!