img-cli

Using providers

A provider is a plugin that connects img-cli to one vendor. This page covers installing providers, saving their keys, and choosing between them. To write your own, see Writing a provider.

Official providers

Name Vendor Notes
vibetoken VibeToken Image, video, and speech. Models and their parameters come from the API. Prices in CNY.
routerbase RouterBase VibeToken's international service. Same models, separate accounts, prices in USD. Needs vibetoken installed too.
grsai Grsai Nano Banana image models. Has a mainland China host.
laozhang LaoZhang API Gemini, GPT Image, Muse video, and MiniMax H3.
aihubmix AIHubMix Image and video models from many labs. Models and their parameters come from the API. Prices in USD. Turn on async tasks in the console first.
elevenlabs ElevenLabs Text to speech and music. img-cli voices elevenlabs lists the voices of your account; without --voice the voice is George. --format takes ElevenLabs formats such as mp3_44100_128 or wav_44100.
openai OpenAI GPT Image 2.6/2.5 generation and editing (up to 16 reference images) and text to speech. OpenAI shut down its Sora video API in September 2026.
google Google Gemini API Google's own API: Nano Banana images, Gemini Omni Flash video, Gemini 3.8 TTS. Key from GEMINI_API_KEY.
xai xAI Grok Imagine images (up to 5 refs) and video up to 1080p and 15 s, with first and last frames and reference images.
recraft Recraft Recraft V4.1, V4, V3, and V2: raster up to 2K and SVG output. --ref images become a style reference.
together Together AI FLUX.2, Kontext, Nano Banana, Seedream, and Qwen images; Veo 3.1, Seedance, and Wan 2.7 video; Kokoro, Orpheus, Qwen3 TTS, and Cartesia speech. Image inputs must be public URLs. Prices in USD.
deepinfra DeepInfra FLUX.2, FLUX.1, Nano Banana, Seedream 5.5, Qwen Image, and SD 3.5 images; Kokoro, Qwen3 TTS, Orpheus, and Chatterbox speech. Prices in USD.
replicate Replicate Official models from many labs: FLUX, Nano Banana, Seedream, Ideogram, Recraft; Veo, Kling, Seedance, Wan, Hailuo; MiniMax, ElevenLabs, and Gemini speech; Lyria, MiniMax, and Stable Audio music. Key from REPLICATE_API_TOKEN.
luma Luma AI Ray 2 video (text, first and last frame) and Photon images. Input files must be public URLs.
openrouter OpenRouter Gemini, GPT Image, Seedream, FLUX and more images; Veo, Seedance, Wan video; ElevenLabs, Gemini and other speech. Prices in USD.
fal fal.ai 53 curated models on fal's queue: Nano Banana, FLUX, Seedream, Qwen Image, Ideogram, Recraft; Veo 3.1, Kling, Seedance, Wan, MiniMax H3, PixVerse; ElevenLabs, MiniMax, and Gemini speech; MiniMax, Lyria, Stable Audio, and ElevenLabs music. Model ids are fal endpoint ids, such as fal:fal-ai/veo3.1.
bfl Black Forest Labs FLUX 3.1, FLUX 3, FLUX.2, Kontext, FLUX1.1 pro/ultra, and Fill images; FLUX 3 video with audio. Regional hosts eu and us. Costs in credits.
runway Runway Gen-4.5 and Gen-4 video and images, plus Veo, Kling, Seedance, GPT Image, Gemini and more hosted by Runway; ElevenLabs speech, sound effects (as music), and music. Ratios are pixel sizes, such as --aspect 1280:720. Costs in credits.
cartesia Cartesia Sonic text to speech in 44 languages. --voice takes any voice id from the Voice Library.
azure Azure OpenAI GPT Image, text to speech, and Sora 2 on your own resource. Set its endpoint with img-cli provider host azure https://<resource>.openai.azure.com/openai. Model ids are deployment names.
stability Stability AI Stable Image Ultra and Core, Stable Diffusion 3.5 with image to image, and Stable Audio 3.0 and 2.5. --ref takes local files only.
ideogram Ideogram Ideogram 4.6, 4.5, 4.0, 3.0, and auto. Quality and speed levels are separate models. Style, character, and edit references; --ref takes local files only.
minimax MiniMax MiniMax H3 and Hailuo video, H3-Image and image-01 images (up to 16 reference images), speech-2.8 text to speech, and Music 3.0. Mainland China accounts use img-cli provider host minimax cn. img-cli voices minimax lists system voices and your cloned and designed ones; without --voice the voice is English_Graceful_Lady. Key from MINIMAX_API_KEY.
volcengine Volcengine Ark Doubao Seedream 5.5, 5.0, 4.5, and 4.0 images (up to 14 reference images), Seedance 2.5 and 2.0 video up to 4K and 30 s, and Seed-Audio 1.5 speech. --size is a tier such as 2K or WIDTHxHEIGHT; there is no --aspect for images. --voice takes a Doubao speaker id. Key from ARK_API_KEY. Prices in CNY.
bailian Alibaba Cloud Bailian Qwen-Image 3.0, 2.1, and 2.0 and Wan 2.7 images with editing (up to 10 reference images), Wan 3.0 video up to 30 s, HappyHorse 1.1 and Wan 2.7 video, and Qwen-Audio and Qwen3 text to speech. --size is WIDTH*HEIGHT, such as 2048*2048; there is no --aspect for images. Beijing by default; Singapore, US, and Hong Kong accounts use img-cli provider host bailian intl (or us, hk), and a workspace host such as https://<WorkspaceId>.cn-beijing.maas.aliyuncs.com also works. Key from DASHSCOPE_API_KEY. Prices in CNY.

They ship inside the binary but are not active until you add them.

Install

img-cli provider add vibetoken                          # an official provider
img-cli provider add someone/img-cli-acme               # img-cli.toml in a GitHub repository
img-cli provider add ./acme.toml                        # a file on disk
img-cli provider add https://example.com/acme.toml      # a URL

add checks the file and copies it into the providers directory. For a file from GitHub or a URL, it first shows where your API key will be sent and asks to continue. img-cli provider update fetches installed providers again from where they came from.

A provider can extend another, as routerbase extends vibetoken. Install the parent too; add reminds you.

The first provider you add becomes the default.

Save a key

img-cli provider login grsai

Each provider has its own key. Where keys are stored, and the order img-cli looks for them in, is in Authentication.

See what is installed

$ img-cli provider list
NAME         TITLE         BASE URL                 KEY
grsai        Grsai         https://grsaiapi.com     file
laozhang     LaoZhang API  https://api.laozhang.ai  env
vibetoken *  VibeToken     https://vibetoken.cn     file

* marks the default provider. KEY says where the key comes from, or none.

Choose a provider

Every model reference names its provider: -m grsai:nano-banana-2.1. Set a default to leave it out:

img-cli provider default vibetoken
img-cli image -m bytedance/seedream-5.0-flash "a fox"

Regional hosts

Some vendors run more than one endpoint. A plugin lists them under [hosts]; pick one per provider:

$ img-cli provider host grsai
* default  https://grsaiapi.com
  cn       https://grsai.dakka.com.cn
$ img-cli provider host grsai cn

img-cli provider host grsai default goes back. Tasks remember the host they were sent to.

Model lists

Some plugins list their models in the file; others read them from the vendor's API and cache them for a day. img-cli models refresh picks up new models sooner; see Models and parameters.

Try a provider without installing it

--provider-file loads a file for one command, in place of any installed provider with the same name. Combined with --dry-run, it shows exactly what a plugin would send:

img-cli --provider-file ./acme.toml image -m acme:pic-1 "a fox" --dry-run

Remove

img-cli provider remove grsai

This deletes the plugin file, its saved key, and its cached model list. Task records stay.

Where files live

What Where
Installed providers <config>/img-cli/providers/<name>.toml
Config (default provider, hosts, file keys) <config>/img-cli/config.json
Task records <config>/img-cli/tasks/
Model list cache <cache>/img-cli/<name>/

<config> is ~/Library/Application Support on macOS, ~/.config on Linux, and %AppData% on Windows; <cache> is the matching cache directory. IMG_CLI_CONFIG_DIR moves everything into one directory.