openai-image-gen
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Install via CLI (Recommended)
clawhub install openclaw/openclaw/skills/openai-image-genWhat This Skill Does
The openai-image-gen skill is a powerful tool for batch-generating images using the OpenAI Images API. It simplifies the process by creating a selection of "random but structured" prompts and then rendering these prompts into images. The skill also includes a convenient index.html gallery for easily viewing the generated images. This makes it ideal for quickly creating visual assets for various projects, prototypes, or explorations.
When using this skill, it's important to be aware that image generation can be a time-consuming process. If you are invoking this skill via OpenClaw’s exec tool, it is highly recommended to set a higher timeout (e.g., exec timeout=300) to prevent premature termination or retries. The script intelligently handles different OpenAI image models, including GPT image models and DALL-E variants, automatically selecting appropriate defaults for parameters like size, quality, and output format.
Installation
To install the openai-image-gen skill, use the following command:
clawhub install openclaw/openclaw/skills/openai-image-gen
Use Cases
This skill is versatile and can be used in a variety of scenarios:
- Prototyping and Mockups: Quickly generate placeholder images or visual concepts for app designs, website layouts, or product mockups.
- Content Creation: Create unique images for blog posts, social media updates, or presentations.
- Artistic Exploration: Experiment with different prompts and models to discover new artistic styles and ideas.
- Asset Generation: Generate sets of icons, backgrounds, or textures for game development or other creative projects.
- Educational Purposes: Understand the capabilities of AI image generation models by seeing the results of various prompts.
Example Prompts
Here are some examples of user prompts to OpenClaw:
- "Generate 8 images of fantasy creatures in a forest, using the gpt-image-1.5 model."
- "Create 4 high-definition images of cyberpunk cityscapes with vibrant neon lights, using the dall-e-3 model."
- "Generate a single image of a cat wearing a tiny hat, in a natural style, and save it as a PNG."
Tips & Limitations
- Timeouts: Image generation can take time. Ensure your
exectimeout is set appropriately (e.g., 300 seconds). - Model Specifics: Different models (GPT image models, DALL-E 3, DALL-E 2) have unique parameter constraints regarding size, quality, and output formats. The script attempts to use sensible defaults, but refer to the documentation for advanced usage.
- DALL-E 3 Count: The DALL-E 3 model can only generate one image per request. The script enforces this limit automatically.
- Customization: While the script generates random prompts, you can provide your own using the
--promptflag for more specific results. - Output: The generated images, a
prompts.jsonmapping, and anindex.htmlgallery are saved to a temporary directory (or a specified output directory). - File Access: The script writes image files and HTML to disk. Ensure you have write permissions in the target directory.
- API Dependency: This skill relies on the OpenAI API. Ensure your OpenAI API key is correctly configured.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-openclaw-openai-image-gen": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, external-api, code-execution
Related Skills
apple-notes
Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.
sherpa-onnx-tts
Local text-to-speech via sherpa-onnx (offline, no cloud)
goplaces
Query Google Places for text search, place details, resolve, reviews, or scriptable JSON via goplaces.
skill-creator
Create, edit, improve, tidy, review, audit, or restructure AgentSkills and SKILL.md files.
video-frames
Extract frames or short clips from videos using ffmpeg.