# Send OpenAI Image CLI to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openai-image-cli",
    "name": "OpenAI Image CLI",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/G9Pedro/openai-image-cli",
    "canonicalUrl": "https://clawhub.ai/G9Pedro/openai-image-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openai-image-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openai-image-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openai-image-cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T09:42:04.211Z",
      "expiresAt": "2026-05-13T09:42:04.211Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openai-image-cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openai-image-cli",
        "contentDisposition": "attachment; filename=\"openai-image-cli-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openai-image-cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openai-image-cli"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openai-image-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/openai-image-cli",
    "agentUrl": "https://openagent3.xyz/skills/openai-image-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openai-image-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openai-image-cli/agent.md"
  }
}
```
## Documentation

### 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

ModelDescriptionNotesgpt-image-1.5Latest GPT Image (default)Best quality, recommendedgpt-image-1GPT ImageGood balancegpt-image-1-miniGPT Image MiniCost-effectivedall-e-3DALL-E 3Deprecated May 2026dall-e-2DALL-E 2Deprecated May 2026, supports variations

### 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

### edit

Edit existing images with prompts.

openai-image edit <image> "instructions" [options]

Options:
  --mask <path>              Mask image for inpainting
  --images <paths...>        Additional reference images (up to 16)
  -s, --size <size>          Output size
  -q, --quality <quality>    Quality level
  -n, --count <n>            Number of variations
  -f, --format <format>      Output format
  -o, --output <path>        Output path

Examples:

# Simple edit
openai-image edit photo.png "Add sunglasses"

# Inpainting with mask
openai-image edit room.png "Add a plant" --mask mask.png

# Multi-image composite
openai-image edit base.png "Create gift basket" --images item1.png item2.png

### vary

Create variations of an image (DALL-E 2 only).

openai-image vary <image> [options]

Options:
  -n, --count <n>            Number of variations (1-10)
  -s, --size <size>          Size: 256x256, 512x512, 1024x1024
  -o, --output <path>        Output path/directory

### batch

Generate multiple images from a file or stdin.

openai-image batch [options]

Options:
  -i, --input <file>         Input file (text or JSONL)
  --stdin                    Read from stdin
  -m, --model <model>        Model for all generations
  -o, --output-dir <dir>     Output directory
  --parallel <n>             Concurrent requests (default: 3)
  --delay <ms>               Delay between requests (default: 100)

JSONL format:

{"prompt": "A red car", "size": "1024x1024", "quality": "high"}
{"prompt": "A blue boat", "size": "1536x1024"}

### config

Manage CLI configuration.

openai-image config set <key> <value>
openai-image config get <key>
openai-image config list
openai-image config reset
openai-image config path

Keys: api-key, default-model, default-size, default-quality, default-format, output-dir

### models

List available models.

openai-image models [--json]

### history

View local generation history.

openai-image history [-n <limit>] [--json] [--clear]

### Default (human-readable)

✓ Generated image saved to ./generated-1707500000.png
  Model: gpt-image-1.5
  Size: 1024x1024
  Quality: high
  Tokens: 150 (text: 10, image: 140)

### JSON (--json)

{
  "success": true,
  "file": "./generated-1707500000.png",
  "model": "gpt-image-1.5",
  "size": "1024x1024",
  "quality": "high",
  "usage": {
    "total_tokens": 150,
    "input_tokens": 50,
    "output_tokens": 100
  }
}

### Size Options

ModelSizesGPT Image1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), autoDALL-E 31024x1024, 1792x1024, 1024x1792DALL-E 2256x256, 512x512, 1024x1024

### Tips

Transparent backgrounds: Use -b transparent -f png for logos
Batch processing: Use JSONL for per-image options
Cost control: Use gpt-image-1-mini for drafts
History tracking: Enabled by default, view with openai-image history

### Links

npm: https://www.npmjs.com/package/@versatly/openai-image-cli
GitHub: https://github.com/Versatly/openai-image-cli
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: G9Pedro
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-06T09:42:04.211Z
- Expires at: 2026-05-13T09:42:04.211Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openai-image-cli)
- [Send to Agent page](https://openagent3.xyz/skills/openai-image-cli/agent)
- [JSON manifest](https://openagent3.xyz/skills/openai-image-cli/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openai-image-cli/agent.md)
- [Download page](https://openagent3.xyz/downloads/openai-image-cli)