openai-image-cli
Generate, edit, and manage images via OpenAI's GPT Image and DALL-E models.
Why use this skill?
Use the openai-image-cli to generate, edit, and create image variations directly from your terminal. Seamlessly integrate OpenAI's models into your workflow.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/g9pedro/openai-image-cliWhat This Skill Does
The openai-image-cli skill provides a powerful command-line interface for interacting with OpenAI's image generation models. It enables users to generate high-fidelity images from natural language prompts, perform advanced in-painting and editing on existing image files, and create aesthetic variations of source imagery. The skill supports multiple model tiers, ranging from the high-quality gpt-image-1.5 to cost-effective mini versions, and offers granular control over output dimensions, file formats, and moderation settings directly through the terminal.
Installation
To integrate this skill into your OpenClaw environment, execute the following installation command in your terminal:
clawhub install openclaw/skills/skills/g9pedro/openai-image-cli
Ensure you have configured your OpenAI API credentials via the environment variable OPENAI_API_KEY or by running openai-image config set api-key <your-key> before attempting to run generation commands.
Use Cases
This skill is perfect for developers, designers, and creative professionals who need to streamline their image creation workflow. Use it for generating rapid prototypes of UI assets, creating custom social media graphics, editing photos through natural language, or batch-processing image variations for A/B testing campaigns. Its ability to handle masking for inpainting makes it particularly useful for removing objects from photos or inserting new elements into existing scenes.
Example Prompts
- "OpenAI Image CLI, generate a photorealistic image of a vintage coffee shop interior in London with soft morning light, sized for a landscape header."
- "Use the edit command on profile.png to remove the background and replace it with a clean solid navy blue, then save the result as a PNG."
- "Take the logo.png file and generate 4 variations that explore different color palettes while maintaining the original geometry."
Tips & Limitations
- Model Deprecation: Note that both DALL-E 2 and DALL-E 3 are scheduled for deprecation in May 2026. Prioritize using
gpt-image-1.5for all future-proof projects. - Quality vs. Cost: Use
gpt-image-1-minifor draft work to conserve your API credit balance, reserving the higher-quality models for final assets. - File Formats: While the tool supports various formats, ensure you specify the correct compression levels when using JPEG or WEBP to balance file size against visual clarity.
- Masking: When using the
--maskoption for editing, ensure the mask image is the exact same resolution as the base image for the best alignment results.
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-g9pedro-openai-image-cli": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, external-api
Related Skills
Clawvault
Skill by g9pedro
loom-workflow
AI-native workflow analyzer for Loom recordings. Breaks down recorded business processes into structured, automatable workflows. Use when: - Analyzing Loom videos to understand workflows - Extracting steps, tools, and decision points from screen recordings - Generating Lobster workflow files from video walkthroughs - Identifying ambiguities and human intervention points in processes
agent-autonomy-primitives
Build long-running autonomous agent loops using ClawVault primitives (tasks, projects, memory types, templates, heartbeats). Use when setting up agent autonomy, creating task-driven execution loops, customizing primitive schemas, wiring heartbeat-based work queues, or teaching an agent to manage its own backlog. Also use when adapting primitives to an existing agent setup or designing multi-agent collaboration through shared vaults.
pdauth
Dynamic OAuth for AI agents via Pipedream. Generate OAuth links for 2500+ APIs, let users authorize, then call MCP tools on their behalf.
linkedin-pipedream
Post to LinkedIn, comment, like, search organizations, and manage profiles via Pipedream OAuth integration.