Generate from a prompt
img-cli image -m vibetoken:bytedance/seedream-5.0-flash "a red apple on a white table" --aspect 1:1 -o out/
Choose the shape and size:
img-cli image -m grsai:nano-banana-2.1 "a mountain lake at dawn" --aspect 16:9 --size 2K -o out/
--aspect takes W:H, such as 16:9, or auto. --size takes 1K, 2K, 4K, or WIDTHxHEIGHT, depending on the model.
Edit with reference images
Pass one or more images with --ref, as a URL or a local file, and describe the change:
img-cli image -m grsai:nano-banana-2.1 "make it watercolor" --ref photo.jpg -o out/
img-cli image -m vibetoken:bytedance/seedream-5.0-flash-edit \
"put the sofa from image 2 against the wall in image 1" --ref room.jpg --ref sofa.jpg -o out/
Some APIs accept only public URLs; for those models a local file is rejected with a message saying so.
Several images
img-cli image -m vibetoken:bytedance/seedream-5.0-flash "a logo for a coffee shop" -n 4 -o logos/
The files are saved as <task>-1.<ext>, <task>-2.<ext>, and so on.
Long prompts
Read the prompt from a file or another command with -:
cat prompt.txt | img-cli image -m vibetoken:bytedance/seedream-5.0-flash - -o out/
Flags
| Flag | Format |
|---|---|
--aspect |
W:H, such as 16:9, or auto |
--size |
1K, 2K, 4K, or WIDTHxHEIGHT |
-n, --n |
Number of images |
--ref |
Reference image, URL or file; repeat for more |
--seed |
Integer |
--negative |
What to leave out |
Each model supports some of these; img-cli models show <provider:model> lists which. The full list of image flags is in the command reference.
Tips
- Run with
--dry-runfirst to see the request without paying for it. - Gemini models return image data rather than a link; img-cli always saves those files, into
-oor the current directory.