Introduction
Generate text, images, and video from the terminal.
ai-cli is a tiny, agent-native CLI for generating text, images, and video with dead-simple commands. It uses the Vercel AI SDK and AI Gateway for unified access to hundreds of models.
What it does
Image generation
Create images from text or existing images.
Video generation
Generate video from text or images.
Text generation
Generate text from prompts with any language model.
Multi-model comparison
Run the same prompt across multiple models in parallel.
Stdin piping
Pipe any content in and out for composable workflows.
Inline preview
See generated images and video frames directly in your terminal.
Quick start
Install globally
Set your API key
Generate something
Commands
image
Generate images from a prompt.
video
Generate video from a prompt or image.
text
Generate text from a prompt.
models
List available models from the gateway.
ai-cli is designed to be used by both humans and agents. Predictable output behavior, JSON metadata mode, and stdin/stdout piping make it easy to integrate into any workflow.