Quick start
img-cli music -m elevenlabs:music_v2_5 "lofi piano, rainy night" --duration 30 --instrumental -o lofi.mp3
Usage
img-cli music [prompt...] -m <provider:model> [flags]
Pass the prompt as arguments, with --prompt, or as - to read stdin.
Flags
| Flag | Meaning |
|---|---|
-m, --model |
provider:model, or a model of the default provider (required) |
-p, --prompt |
Prompt, or - for stdin |
--duration |
Length in whole seconds |
--lyrics |
Lyrics to sing, or @file to read them from a file |
--instrumental |
No vocals |
--seed |
Random seed |
--format |
Audio format, such as mp3 or wav |
-o, --out |
Save the result to this file or directory |
--no-wait |
Return right after submitting, for providers that run music as a task |
--timeout |
How long to wait for the result (default 20m) |
--poll-interval |
Time between status checks (default: the provider's, or 5s) |
Plus the global flags. img-cli models show <provider:model> lists what a model takes.