
Security News
TypeScript 6.0 Released: The Final JavaScript-Based Version
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.
@versatly/openai-image-cli
Advanced tools
Comprehensive CLI for OpenAI image generation API - supports GPT Image models and DALL-E
Comprehensive CLI for OpenAI image generation. Supports GPT Image models (gpt-image-1.5, gpt-image-1, gpt-image-1-mini) and legacy DALL‑E models.
npm install -g @versatly/openai-image-cli
# Via environment variable
export OPENAI_API_KEY=sk-...
# Or via config file
openai-image config set api-key sk-...
openai-image <command> [options]
generate — Create images from text promptsopenai-image generate "A futuristic city at sunset" [options]
Options:
-m, --model <model>: gpt-image-1.5 (default), gpt-image-1, gpt-image-1-mini, dall-e-3, dall-e-2-s, --size <size>: 1024x1024 (default), 1536x1024, 1024x1536, auto, or DALL‑E sizes-q, --quality <quality>: auto (default), high, medium, low (GPT); hd/standard (DALL‑E 3)-n, --count <n>: 1–10 (default: 1)-f, --format <format>: png (default), jpeg, webp-o, --output <path>: Output file/directory (default: ./generated-{timestamp}.png)-b, --background <bg>: auto (default), transparent, opaque--compression <0-100>: Compression for jpeg/webp (default: 100)--moderation <level>: auto (default), low--stream: Enable streaming with partial images--partial-images <0-3>: Partial images during streaming (default: 0)--json: Output JSON response--dry-run: Show request without executingExamples:
# Basic generation
openai-image generate "A cute robot reading a book"
# High quality landscape
openai-image generate "Mountain sunset panorama" -s 1536x1024 -q high
# Multiple images with transparency
openai-image generate "Logo design for coffee shop" -n 4 -b transparent -f png
# Streaming with partials
openai-image generate "Epic fantasy battle scene" --stream --partial-images 2
# Output to a specific file
openai-image generate "Product photo" -o ./product.png
edit — Edit existing imagesopenai-image edit <image> "Edit instructions" [options]
Arguments:
<image>: Input image path, URL, or file IDOptions:
-m, --model <model>: gpt-image-1.5 (default), gpt-image-1, dall-e-2--mask <path>: Mask image for inpainting (transparent areas get edited)--images <paths...>: Additional reference images (up to 16 total for GPT models)-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--stream: Enable streamingExamples:
# Simple edit
openai-image edit photo.png "Add sunglasses to the person"
# Inpainting with mask
openai-image edit room.png "Add a plant in the corner" --mask mask.png
# Multi-image reference
openai-image edit base.png "Combine these items into a gift basket" --images item1.png item2.png item3.png
vary — Create image variations (DALL‑E 2 only)openai-image vary <image> [options]
Arguments:
<image>: Input image (PNG, <4MB, square)Options:
-n, --count <n>: Number of variations (default: 1)-s, --size <size>: 256x256, 512x512, 1024x1024 (default)-o, --output <path>: Output path/directorybatch — Batch generation from file or stdinopenai-image batch [options]
Options:
-i, --input <file>: Input file with prompts (one per line, or JSON/JSONL)--stdin: Read prompts from stdin-m, --model <model>: Model for all generations-o, --output-dir <dir>: Output directory (default: ./batch-{timestamp}/)--parallel <n>: Concurrent requests (default: 3)--delay <ms>: Delay between requests (default: 100)Examples:
# From file
openai-image batch -i prompts.txt -o ./output/
# From stdin
cat prompts.txt | openai-image batch --stdin
# JSONL with per-prompt options
openai-image batch -i prompts.jsonl
prompts.jsonl format:
{"prompt": "A red car", "size": "1024x1024", "quality": "high"}
{"prompt": "A blue boat", "size": "1536x1024"}
config — Manage configurationopenai-image config <command>
Commands:
set <key> <value>: Set config valueget <key>: Get config valuelist: List all configreset: Reset to defaultspath: Show config file pathKeys:
api-key: OpenAI API keydefault-model: Default model (gpt-image-1.5)default-size: Default size (1024x1024)default-quality: Default quality (auto)default-format: Default output format (png)output-dir: Default output directory (./)save-history: Save history entries (true)models — List available modelsopenai-image models [options]
Options:
--json: Output as JSONhistory — View generation history (local)openai-image history [options]
Options:
-n, --limit <n>: Number of entries (default: 20)--json: Output as JSON--clear: Clear historyLocation: ~/.config/openai-image-cli/config.json
{
"apiKey": "sk-...",
"defaultModel": "gpt-image-1.5",
"defaultSize": "1024x1024",
"defaultQuality": "auto",
"defaultFormat": "png",
"outputDir": "./",
"saveHistory": true
}
Default output (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 output (generate only):
{
"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
},
"created": 1707500000
}
MIT
FAQs
Comprehensive CLI for OpenAI image generation API - supports GPT Image models and DALL-E
The npm package @versatly/openai-image-cli receives a total of 11 weekly downloads. As such, @versatly/openai-image-cli popularity was classified as not popular.
We found that @versatly/openai-image-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.

Security News
/Research
Newly published Trivy Docker images (0.69.4, 0.69.5, and 0.69.6) were found to contain infostealer IOCs and were pushed to Docker Hub without corresponding GitHub releases.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.