openai-image-cli

openai-image-cli is a skill for Claude Code, Codex from mupengi-bot/mupengism. It costs 24 tokens per session (1,651 once invoked), scanned A, original, MIT.

A command-line tool for creating images from text and editing existing images with OpenAI image models. It can also create image variations and supports options such as size, quality, quantity, and transparent backgrounds.

In plain words
What is it for?
Use it to generate illustrations or other images from prompts, edit image files, create several variations, request transparent results, and select an image model.
Why use it?
It lets developers perform common image-generation tasks from a terminal instead of building separate image workflows. It also provides commands for configuring an API key and choosing models.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to generate illustrations or other images from prompts, edit image files, create several variations, request transparent results, and select an image model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mupengi-bot/mupengism/openai-image-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mupengi-bot/mupengism --skill openai-image-cli
Clone the repo
git clone --depth 1 https://github.com/mupengi-bot/mupengism

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openai-image-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/mupengi-bot/mupengism/openai-image-cli/github.svg)](https://agentmods.dev/skills/mupengi-bot/mupengism/openai-image-cli)
Your own site
<a href="https://agentmods.dev/skills/mupengi-bot/mupengism/openai-image-cli"><img src="https://agentmods.dev/badge/skills/mupengi-bot/mupengism/openai-image-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openai-image-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/mupengi-bot/mupengism/openai-image-cli"><img src="https://agentmods.dev/badge/skills/mupengi-bot/mupengism/openai-image-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,651 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01651
Opus 5 $0.00012 $0.00826
Sonnet 5 $0.00005 $0.00330
Haiku 4.5 $0.00002 $0.00165

Measured 8d ago against content hash 0d0ae90ae6ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

openai-image-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openai-image-cli/SKILL.md · 229 lines

How it starts

The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenAI Image CLI 🐧

Generate, edit, and create variations of images using OpenAI's latest models.

Installation

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

Authentication

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

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

Quick Start

# Generate an image
openai-image generate "A futuristic city at sunset"

# High quality landscape
openai-image generate "Mountain panorama" -s 1536x1024 -q high

# Multiple images with transparency
openai-image generate "Logo design" -n 4 -b transparent

# Edit an existing image
openai-image edit photo.png "Add sunglasses to the person"

# Create variations (DALL-E 2)
openai-image vary original.png -n 3

Available Models

Model Description Notes
gpt-image-1.5 Latest GPT Image (default) Best quality, recommended
gpt-image-1 GPT Image Good balance
gpt-image-1-mini GPT Image Mini Cost-effective
dall-e-3 DALL-E 3 Deprecated May 2026
dall-e-2 DALL-E 2 Deprecated May 2026, supports variations

Commands

generate

Create images from text prompts.

openai-image generate "prompt" [options]

Options:
  -m, --model <model>        Model (default: gpt-image-1.5)
  -s, --size <size>          Size: 1024x1024, 1536x1024, 1024x1536, auto
  -q, --quality <quality>    Quality: auto, high, medium, low
  -n, --count <n>            Number of images (1-10)
  -f, --format <format>      Format: png, jpeg, webp
  -o, --output <path>        Output file/directory
  -b, --background <bg>      Background: auto, transparent, opaque
  --compression <0-100>      Compression level for jpeg/webp
  --moderation <level>       Content moderation: auto, low
  --stream                   Enable streaming with partial images
  --partial-images <0-3>     Partial images during streaming
  --json                     Output JSON response
  --dry-run                  Show request without executing

Read the full file on GitHub · 229 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 229 lines · 24 tokens per session scan A 0d0ae90ae6ff

Subscribe to this mod's changes

openai-image-cli is a skill published in the GitHub repository mupengi-bot/mupengism (10 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 1,651 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

hive.image-generation

Required before calling imagegenerate. Create and edit images from a prompt — generate an image, make a picture / logo / illustration / icon / banner / poster / thumbnail / hero image / mockup / product shot / social graphic, or edit / restyle / combine existing images from reference images. Uses OpenAI gpt-image-2…

aden-hive/hive · 149 tokens

image-posting

Skill for embedding images in chat replies: URL detection from tool results, Markdown image syntax, and assets paths. Use when: surfacing images from search or generation tools, pasting Markdown images, or showing attachments.

xuiltul/animaworks · 47 tokens

image-gen-tool

Image and 3D model generation tool using NovelAI, Flux, and Meshy for illustrations and 3D output. Use when: generating character art, bust or chibi images, avatars, or running image pipelines.

xuiltul/animaworks · 49 tokens

transcribe-tool

Audio transcription tool. Converts audio files to text with Whisper and optional LLM post-processing. Use when: transcribing meetings, podcasts, or extracting text from recorded audio files.

xuiltul/animaworks · 39 tokens

prompt-craft

Translate natural language image descriptions into detailed, structured DALL-E prompts with subject, style, composition, lighting, and mood specifications.

vladkesler/initrunner · 30 tokens

presentation-template-designer

Plan reusable presentation templates from a creative brief, optional brand assets, or an existing deck. Use when Codex needs to define a slide inventory, choose an editable presentation toolchain, author or validate a template manifest, adapt a visual system for PowerPoint or Google Slides, or prepare a reviewed…

Prompthon-IO/agent-systems-handbook · 70 tokens