Quickstart

From install to your first image in four commands. This page uses the VibeToken provider; every other provider works the same way.

1. Install

curl -fsSL https://img-cli.dev/install.sh | bash

On Windows, and for other options, see Installation.

2. Add a provider

img-cli itself knows no vendor. A provider plugin tells it how to call one. Install the official VibeToken plugin:

img-cli provider add vibetoken

Other official plugins are routerbase, grsai, and laozhang. You can also install a plugin from a file or URL; see Using providers.

3. Save the API key

img-cli provider login vibetoken

Paste the key at the hidden prompt. It goes into the system keychain, one entry per provider. In CI, set IMG_CLI_VIBETOKEN_KEY instead; see Authentication.

4. Generate

img-cli image -m vibetoken:bytedance/seedream-5.0-flash "a red apple on a white table" --aspect 1:1 -o out/

-m names the provider and the model, separated by a colon. img-cli submits the task, waits for it, and saves the image into out/:

submitted image task 272c496cf2cc (remote id 5d3d823c-…)
272c496cf2cc: succeeded after 13s
saved out/272c496cf2cc.jpg
task:       272c496cf2cc
provider:   vibetoken
model:      bytedance/seedream-5.0-flash
status:     succeeded
cost:       0.084 CNY
out/272c496cf2cc.jpg

Next

  • Find models and see which flags each one takes: img-cli models list, then img-cli models show <provider>:<model>. See Models and parameters.
  • Switch providers without changing anything else: -m grsai:nano-banana-2.1.
  • Make video and speech: Video, Speech.
  • Connect a vendor that has no plugin yet: Writing a provider.