Introduction
Generate text, images, video, and audio from the terminal.
ai-cli is a tiny, agent-native CLI for generating text, images, video, and audio 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.
Audio generation
Generate speech or transcribe audio files and streams.
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, video frames, and speech playback 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.
audio
Generate speech or transcribe audio.
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.