
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@lpenguin/openai-image-cli
Advanced tools
CLI tool for generating images using OpenAI's DALL-E models
A command-line interface tool for generating images using OpenAI's DALL-E models (dall-e-3, dall-e-2, gpt-image, and gpt-image-mini).
Run directly without installation:
npx openai-image-cli "A sunset over mountains"
npm install -g openai-image-cli
git clone https://github.com/lpenguin/openai-image-cli.git
cd openai-image-cli
npm install
npm run build
export OPENAI_API_KEY=your-api-key-here
npx openai-image-cli "A sunset over mountains"
# or if installed globally
openai-image "A sunset over mountains"
# or if running locally
node dist/index.js "A sunset over mountains"
npx openai-image-cli --prompt "A cat playing piano" --size 1024x1024 --n 1
# DALL-E 2 with multiple images
npx openai-image-cli "Abstract art" --model dall-e-2 --size 512x512 --n 2
# GPT-Image
npx openai-image-cli "Modern design" --model gpt-image --size 1024x1024
# GPT-Image Mini
npx openai-image-cli "Quick sketch" --model gpt-image-mini
--prompt <text> - Image generation prompt (required if not using positional argument or --prompt-file)--prompt-file <path> - Path to file containing the prompt (alternative to --prompt)--size <size> - Image size (default: 1024x1024)
--n <number> - Number of images to generate (default: 1)
--model <model> - Model to use: dall-e-3, dall-e-2, gpt-image, or gpt-image-mini (default: dall-e-3)--help, -h - Show help messageOPENAI_API_KEY (required) - Your OpenAI API keyGenerate a single image with DALL-E 3:
export OPENAI_API_KEY=sk-...
npx openai-image-cli "A futuristic city at night"
Generate an image using a prompt from a file:
npx openai-image-cli --prompt-file my-prompt.txt --model dall-e-3
Generate multiple images with DALL-E 2:
npx openai-image-cli "A cute robot" --model dall-e-2 --size 512x512 --n 3
Generate a wide image with GPT-Image:
npx openai-image-cli "A panoramic landscape" --model gpt-image --size 1792x1024
Use GPT-Image Mini for faster generation:
npx openai-image-cli "A simple sketch" --model gpt-image-mini
Generated images are automatically downloaded and saved to the current directory with filenames like:
generated_image_<timestamp>_1.pnggenerated_image_<timestamp>_2.pngBuild the project:
npm run build
The TypeScript source is in src/ and compiles to dist/.
ISC
FAQs
CLI tool for generating images using OpenAI's DALL-E models
We found that @lpenguin/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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.