AI-CLI – Generate anything from your terminal
AI-CLI is a lightweight command-line tool that enables users to generate text, images, and video using simple commands. It supports piping input and output between commands, comparing multiple AI models side by side, and integrates with various AI providers through the Vercel AI Gateway. The tool is designed for seamless use in workflows, with no configuration required beyond setting an API key.
- ▪AI-CLI allows generating text, images, and video directly from the terminal with simple commands.
- ▪Users can compare outputs from multiple AI models in parallel and chain commands via standard input/output piping.
- ▪The tool supports inline preview of media in compatible terminals and works with providers like OpenAI, Google, and Black Forest Labs.
- ▪No configuration files are needed; users only need to set an API key environment variable to begin.
- ▪AI-CLI includes shell completions for zsh, bash, and fish, and outputs structured JSON for use in CI pipelines or agent toolchains.
Opening excerpt (first ~120 words) tap to expand
ai-cliDocsGenerate anything from your terminal.A tiny CLI for generating text, images, and video with dead-simple commands. Pipe content in and out. Compare models side by side. See results inline.$npm install -g ai-clicommand ai imageready$ ai image "a sunset" -m "openai/gpt-image-2,bfl/flux-2-pro" Saved to /Users/you/output-1.png (3.2s)Saved to /Users/you/output-2.png (4.1s)*imagevideotextMulti-model comparison.Run the same prompt across multiple models in parallel. Compare outputs side by side to find the best result.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at ai-cli.