Compose a track
img-cli music -m elevenlabs:music_v2_5 "lofi piano, rainy night, slow" --duration 30 --instrumental -o lofi.mp3
The prompt describes the style, mood, and instruments. --duration is the length in whole seconds; without it the model picks one.
Lyrics
Pass lyrics as text, or as @file to read them from a file:
img-cli music -m elevenlabs:music_v2_5 "upbeat synth pop, female vocals" --lyrics @lyrics.txt --duration 60 -o song.mp3
--instrumental asks for no vocals at all.
Format
img-cli music -m elevenlabs:music_v2_5 "ambient drone" --format opus_48000_128 -o drone.ogg
The formats a model takes are listed by img-cli models show <provider:model>.
Flags
| Flag | Format |
|---|---|
--duration |
Whole seconds |
--lyrics |
Text, or @file |
--instrumental |
No vocals |
--seed |
Integer |
--format |
Depends on the model |
Results that come back as data are always saved: to -o, or the current directory. The full list is in the command reference.