bl image commands
Auto-generated from packages/cli/src/commands.ts. Do not edit by hand.
Regenerate: pnpm --filter bailian-cli run generate:reference.
Index: index.md
Commands in this group
| Command |
Authentication |
Description |
bl image edit |
API Key |
Edit an existing image with text instructions (Qwen-Image / Wan 2.7) |
bl image generate |
API Key |
Generate images (Qwen-Image / wan2.x) |
Command details
bl image edit
| Field |
Value |
| Name |
image edit |
| Description |
Edit an existing image with text instructions (Qwen-Image / Wan 2.7) |
| Authentication |
API Key |
| Usage |
bl image edit --image <url> --prompt <text> [flags] |
Flags
| Flag |
Type |
Required |
Description |
--image <url> |
array |
yes |
Source image URL or local file path (repeatable for multi-image merge) |
--prompt <text> |
string |
yes |
Edit instruction text |
--model <model> |
string |
no |
Model ID (default: qwen-image-3.0) |
--size <W*H> |
string |
no |
Output image size: ratio (3:4, 16:9) or pixels (2048*2048) |
--n <count> |
number |
no |
Number of images (default: 1, max: 6) |
--seed <n> |
number |
no |
Random seed for reproducible results |
--negative-prompt <text> |
string |
no |
Negative prompt to exclude unwanted content |
--function <name> |
string |
no |
wanx*-imageedit function (default: description_edit). Examples: stylization_all, description_edit |
--prompt-extend <bool> |
boolean |
no |
Enable prompt extend (true/false). Omit flag to use CLI default (true). |
--watermark <bool> |
boolean |
no |
Enable watermark (true/false). Omit flag to use CLI default (true). |
--out-dir <dir> |
string |
no |
Download images to directory |
--out-prefix <prefix> |
string |
no |
Filename prefix (default: edited) |
--async |
switch |
no |
Return async task id without waiting |
--concurrent <n> |
number |
no |
Run N parallel requests (default: 1) |
--poll-interval <seconds> |
number |
no |
Polling interval when waiting (default: 3) |
--api-key <key> |
string |
no |
API key |
--base-url <url> |
string |
no |
API base URL |
Examples
bl image generate
| Field |
Value |
| Name |
image generate |
| Description |
Generate images (Qwen-Image / wan2.x) |
| Authentication |
API Key |
| Usage |
bl image generate --prompt <text> [flags] |
Flags
| Flag |
Type |
Required |
Description |
--prompt <text> |
string |
yes |
Image description |
--model <model> |
string |
no |
Model ID (default: qwen-image-3.0) |
--size <W*H> |
string |
no |
Image size: ratio (3:4, 16:9, 1:1) or pixels (2048*2048) |
--n <count> |
number |
no |
Number of images per request (default: 1, max: 6) |
--seed <n> |
number |
no |
Random seed for reproducible generation |
--negative-prompt <text> |
string |
no |
Negative prompt to exclude unwanted content |
--prompt-extend <bool> |
boolean |
no |
Enable prompt extend (true/false). Omit flag: true for qwen-image sync; parameter omitted on async models (API default). |
--watermark <bool> |
boolean |
no |
Enable watermark (true/false). Omit flag to use CLI default (true). |
--async |
switch |
no |
Return async task id without waiting |
--concurrent <n> |
number |
no |
Run N parallel requests (default: 1) |
--out-dir <dir> |
string |
no |
Download images to directory |
--out-prefix <prefix> |
string |
no |
Filename prefix (default: image) |
--poll-interval <seconds> |
number |
no |
Polling interval when waiting (default: 3) |
--api-key <key> |
string |
no |
API key |
--base-url <url> |
string |
no |
API base URL |
Examples