OpenAI Image CLI for Openclaw

A powerful command-line interface for generating, editing, and managing images using OpenAI's state-of-the-art GPT Image and DALL-E models.

g9pedro
v1.0.0
Feb 10, 2026
0
3.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openai-image-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openai-image-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenAI Image CLI?

This Openclaw Skills integration brings the full creative power of OpenAI directly to your terminal. It enables developers and creators to automate image workflows, from simple text-to-image generation to complex inpainting and multi-image compositions. By leveraging the latest models like gpt-image-1.5, users can produce high-quality landscape, portrait, or square assets with fine-grained control over parameters like quality, format, and transparency.

Designed for speed and flexibility, the tool supports everything from rapid prototyping to high-volume production. Whether you are building marketing materials or integrating visual assets into a development pipeline, this skill provides the necessary bridge between OpenAI's advanced generative models and your local environment.

OpenAI Image CLI Use Cases

  • Automated asset generation for web and mobile applications using Openclaw Skills.
  • Batch processing large sets of image prompts via JSONL files for massive content creation.
  • Rapid prototyping of UI elements and logos with transparent backgrounds for designers.
  • Programmatic image editing and inpainting for maintaining existing media libraries.

How OpenAI Image CLI Works

  1. Authenticate using an OpenAI API key via environment variables or the built-in config command.
  2. Execute the generate command with a descriptive text prompt to create new visual content instantly.
  3. Use the edit or vary commands to modify existing images, apply masks for inpainting, or generate similar iterations.
  4. Review local generation history or output JSON data for integration into larger automated DevOps pipelines.

OpenAI Image CLI Setup

Install the package globally using npm:

npm install -g @versatly/openai-image-cli

Set your OpenAI API key as an environment variable or via the config tool:

# Via environment variable
export OPENAI_API_KEY=sk-...

# Or via internal configuration
openai-image config set api-key sk-...

OpenAI Image CLI Data Schema & Taxonomy

The skill organizes its output and metadata as follows:

Component Details
Image Files Saved locally in PNG, JPEG, or WebP formats based on user preference.
Configuration Local storage for api-key, default-model, default-size, and output-dir.
History Log Local database of generation events accessible via the history command.
JSON Output Structured metadata including file paths, model usage, and input/output token counts.

OpenAI Image CLI Advanced Features

  • Multi-image composite editing supporting up to 16 reference images for complex scene building.
  • Real-time streaming with partial image previews for faster visual feedback during generation.
  • Parallel batch processing with configurable concurrency and request delays to manage rate limits.
  • Advanced content moderation levels and compression controls for optimized output within Openclaw Skills workflow.
  • Support for DALL-E 2 variations and legacy model access for specific stylistic requirements.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*