CLI to generate AI images with Bing DALL-E 3
npm install @involvex/image-wizard-cli

> Generate AI images from text prompts in your terminal using Bing's DALL-E 3 service
- Interactive setup wizard for authentication
- Generate multiple images at once
- Custom output directories
- Beautiful CLI interface powered by @clack/prompts
- Works on Windows, macOS, and Linux
- Bundled Python backend - no manual Python setup required
- Node.js 18+ or Bun
- Python 3.7+ (for the image generation backend)
> Python dependencies are installed automatically when you install this package.
``bash`
npm install -g @involvex/image-wizard-cli
Run the interactive setup to configure your Bing authentication:
`bash`
image-wizard setup
This will open bing.com in your browser and guide you through extracting your authentication cookies.
Manual Cookie Extraction (if needed):
Open bing.com in your browser, open DevTools (F12), and run in the console:
`javascript_U:\n${document.cookie.match(/(?:^|;\s)_U=(.?)(?:;|$)/)[1]}\n\nSRCHHPGUSR:\n${document.cookie.match(/(?:^|;\s)SRCHHPGUSR=(.?)(?:;|$)/)[1]}
console.log(
,`
);
`bashBasic usage
image-wizard "A photo of an astronaut riding a horse on Mars"
Options
| Option | Short | Default | Description |
| ---------------- | ----- | ---------- | ---------------------------- |
|
--number | -n | 4 | Number of images to generate |
| --output | -o | ./output | Output directory for images |Commands
$3
Configure authentication cookies for Bing Image Creator.
$3
Generate images from a text prompt.
Configuration
Config file locations by platform:
- Windows:
%APPDATA%\image-wizard-cli-nodejs\Config\config.json
- macOS: ~/Library/Application Support/image-wizard-cli-nodejs/config.json
- Linux: ~/.config/image-wizard-cli-nodejs/config.jsonExample config:
`json
{
"auth_cookie_u": "your-u-cookie-here",
"auth_cookie_srchhpgusr": "your-srchhpgusr-cookie-here",
"output_dir": "./output",
"num_images": 4
}
`Development
`bash
Clone the repo
git clone https://github.com/involvex/image-wizard-cli.gitInstall dependencies
bun installRun in development mode
bun run dev "A test prompt"Build for production
bun run buildRun tests
bun test
``- Runtime: Node.js / Bun
- Language: TypeScript
- CLI Framework: Commander.js
- UI Library: @clack/prompts
- Python Integration: execa
- Backend: bing-create (bundled)
MIT © involvex