LaunchKit · 2026
Back to Skills

openai-image-cli

Generate, edit, and manage images via OpenAI's GPT Image and DALL-E models.

0
1.0k downloads
by @g9pedro

Setup & Installation

openclaw skills install @g9pedro/openai-image-cli

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install openai-image-cli

What This Skill Does

Command-line tool for generating, editing, and creating variations of images using OpenAI's GPT Image and DALL-E models. Supports batch processing, inpainting with masks, transparent backgrounds, and local history tracking. Configurable defaults for model, size, quality, and output format.

Wraps OpenAI's image API into a single CLI with batch support, history tracking, and per-request options that would otherwise require custom scripting against the raw API.

When to use it

  • Generating product mockup images from text descriptions
  • Batch-creating social media visuals from a JSONL prompt list
  • Editing photos with text instructions like removing or adding objects
  • Creating logo variations with transparent PNG backgrounds
  • Automating image generation in shell scripts with JSON output

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: generate 4 logo variations with transparent backgrounds and save them to ./logos

AGENT
  1. 1Run `openai-image generate "Logo design" -n 4 -b transparent -f png -o ./logos`
  2. 2CLI sends requests to OpenAI GPT Image model with specified parameters
  3. 3Images are downloaded and saved as PNG files in the ./logos directory
  4. 4Generation metadata is recorded in local history
OUTPUT

4 PNG files saved to ./logos with transparent backgrounds, each listed with model, size, and token usage

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

OPENAI_API_KEY environment variableOpenAI account with API access