Waiting
By default image, video, and speech wait until the task finishes, printing progress to stderr:
submitted image task 272c496cf2cc (remote id 5d3d823c-…)
272c496cf2cc: succeeded after 13s
--timeout limits the wait (default 20 minutes) and --poll-interval sets how often to check (default: the provider's, or 3 seconds for images and 5 for video).
Submit now, collect later
--no-wait returns right after submitting, with the task id:
img-cli video -m vibetoken:bytedance/seedance-2-t2v "a cat playing piano" --no-wait
img-cli task wait 8a1c2e44b0f1 -o out/
Ctrl-C, a closed terminal, or a timeout only stop the waiting. The task keeps running at the provider; img-cli task wait <task> picks it up again.
Saving results
Without -o, img-cli prints the result URLs. With -o:
-o out/saves every result intoout/as<task>.<ext>, or<task>-1.<ext>,<task>-2.<ext>for several.-o cat.pngsaves a single result to that file.
Results that come back as data instead of a URL, such as Gemini images and speech, are always saved: into -o, or the current directory.
Result links usually expire after a few days, so save what you want to keep.
Task records
Each task is recorded locally under a short id, with its provider, model, status, results, and cost:
img-cli task list # 20 most recent; --limit 0 for all
img-cli task get 8a1c2e44b0f1 # one task; asks the provider if it isn't finished
img-cli task get 8a1c2e44b0f1 -o out/
A task remembers the host it was sent to, so changing a provider's host doesn't lose earlier tasks.
Statuses
| Status | Meaning |
|---|---|
running |
Submitted and not finished |
succeeded |
Finished; results are in outputs |
failed |
The provider rejected or failed it; the reason is in error |
Costs
When the provider reports a cost, it is part of the task, in the provider's currency:
cost: 0.084 CNY
img-cli balance shows the account balance of every provider whose plugin can read it.