A universal CLI for image, video, and audio

Generate images, video, and audio through any AI provider. Use it via Claude Code, Codex, or Cursor, or directly in your terminal.

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

Provider plugins

  • vibetoken.toml
  • routerbase.toml
  • grsai.toml
  • laozhang.toml
  • your.toml
>_ img-cli
image -m grsai:nano-banana-2.1video -m laozhang:MiniMax-H3speech -m vibetoken:minimax/speech-2.8-hd

Results

  • A paper boat on a still lake at dawnImageboat.jpg
  • A neon-lit Tokyo alley in the rainVideoalley.mp4 · 6s
  • Audiohello.mp3

Everything you can make with img-cli

Images, video, and speech from any provider, with one set of commands and flags.

Text to image

  • Aspect ratio
  • Size
  • Batch
img-cli image -m vibetoken:bytedance/seedream-5.0-flash "a red apple" --aspect 16:9 -o out/View docs

Edit with reference images

  • References
  • Local files
  • URLs
img-cli image -m grsai:nano-banana-2.1 "make it watercolor" --ref photo.jpg -o out/View docs

Text to video

  • Duration
  • Resolution
  • Audio
img-cli video -m vibetoken:bytedance/seedance-2-t2v "a cat playing piano" --duration 5 --audioView docs

Frames to video

  • First frame
  • Last frame
img-cli video -m vibetoken:kuaishou/kling-v4-i2v "the flower blooms" --first-frame bud.png --last-frame flower.pngView docs

Speech

  • Voices
  • Speed
  • Format
img-cli speech -m vibetoken:minimax/speech-2.8-hd "Welcome back." --voice English_Graceful_Lady -o hi.mp3View docs

Model discovery

  • List
  • Show
  • Refresh
img-cli models show laozhang:MiniMax-H3View docs

Checked before it's paid

  • Validation
  • Dry run
img-cli video -m laozhang:MiniMax-H3 "a cat" --resolution 1080p --dry-runView docs

Long tasks that survive

  • No wait
  • Resume
  • History
img-cli task wait 8a1c2e44b0f1 -o out/View docs

Scripts, CI, and agents

  • JSON
  • Exit codes
  • CI
img-cli image -m grsai:nano-banana-2.1 "a fox" -o out/ --json -qView docs

Two ways to use it

Ask your AI assistant in plain language, or run the command yourself.

With an AI assistant

Attach reference images and describe the result. Your assistant checks the model options and runs img-cli.

Assistant
A living room with an empty white wallA grey boucle sofa with oak legs

Thinking about buying this sofa. How would it look against the empty wall in my living room?

img-cli models show vibetoken:bytedance/seedream-5.0-flash-edit
img-cli image -m vibetoken:bytedance/seedream-5.0-flash-edit --ref living-room.jpg --ref sofa.jpg "put the sofa from image 2 against the empty wall in image 1, same light and angle" -o out

Here it is against the empty wall. It fits between the plant and the corner, and the oak legs match the floor.

The same living room with the grey sofa against the wall

In the terminal

One command with consistent flags across providers. Output saves directly to disk.

~/shots — zsh
88f86396a1c4.jpg
A paper boat on a still lake at dawn

Providers are plugins

Each provider is one TOML file: where the API is, a template for the request, and where the answer is. No code to compile. Install an official one, or write one for the API you already use.

grsai.tomltoml
schema = 1
name = "grsai"
base_url = "https://grsaiapi.com"

[apis.generate]
submit = "POST /v1/api/generate"
poll = "GET /v1/api/result?id={{urlquery .RawID}}"
body = '''
{
  "model": {{json .Model}},
  "prompt": {{json .Prompt}},
  "aspectRatio": {{json .Aspect}},
  "imageSize": {{json .Size}},
}
'''

[apis.generate.result]
id = "id"
status = "status"
done = ["succeeded"]
failed = ["failed", "violation"]
outputs = "results[].url"

[[models]]
id = "nano-banana-2.1"
kind = "image"
api = "generate"
supports = { aspect = ["1:1", "16:9", "9:16"], size = ["1K", "2K", "4K"] }

Install img-cli

A single binary for macOS, Windows, and Linux. Or let your AI assistant install it for you.

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