Loading...
Loading...
Bulk AI image generation via the BulkGen API. Use whenever users ask to generate one or many AI images — even simple requests like "generate an image", "edit this image", "make variations", or "create AI art" should trigger this skill. Handles single images, grids, batches, variations, reference-image editing, expiring result downloads, and HTML preview handoff pages. Works for English and Chinese requests like "生成图片", "批量生成", "图生图", "做一个 3x3 宫格", or "给我做九宫格变体".
npx skill4agent add oil-oil/bulkgen-skill bulkgenBULKGEN_API_KEYexport BULKGEN_API_KEY="sk_live_your_key_here"I need a BulkGen API key to generate images. Please open https://bulk-gen.com → user menu → API Keys → create a key, then either exportor paste the key here.BULKGEN_API_KEY
# Single image
node scripts/generate.js --prompts "a sunset over mountains" --mode solo
# 2x2 grid with different prompts
node scripts/generate.js --prompts "cat" "dog" "bird" "fish" --cols 2 --rows 2 --output-ratio 1:1
# 3x3 variations of one concept
node scripts/generate.js --prompts "cyberpunk city" --mode variation --cols 3 --rows 3 --output-ratio 4:5
# Edit image with reference
node scripts/generate.js --prompts "make it watercolor style" --input ./photo.jpg| Mode | Use case | Example |
|---|---|---|
| One prompt → one image | Single illustration |
| Multiple prompts → multiple images | 4 different product shots |
| One prompt → creative variants | 9 style variations of a concept |
| Option | Values | Default |
|---|---|---|
| solo, batch, variation | batch |
| Grid dimensions | auto |
| 1K, 2K, 4K | 1K |
| 1:1, 16:9, 9:16, etc. | auto best fit |
| Tile aspect ratio after split | 1:1 |
| Reference image path | none |
1x1, 2x1, 1x2, 3x1, 1x3, 2x2, 3x2, 2x3, 4x2, 2x4, 3x3, 4x3, 3x4, 4x4--source-ratio--input# Style transfer
node scripts/generate.js --prompts "turn into oil painting" --input ./photo.jpg
# Multiple references
node scripts/generate.js --prompts "combine these" --input ./a.jpg --input ./b.jpgnode scripts/download_images.js ./bulkgen-result.json ./downloadsmanifest.jsonnode scripts/build_preview.js ./bulkgen-result.json ./preview.html| Status | Meaning |
|---|---|
| 401 | Invalid API key |
| 402 | Insufficient credits (tell user to top up) |
| 400 | Invalid parameters or unsupported layout/ratio combo |
| 500/502 | Server error, suggest retry |
generate.jsdownload_images.jsbuild_preview.js