Inline preview
Images and video frames render in terminals that support the Kitty graphics protocol, and speech plays back after it's saved.
Generate text, images, video, and audio, and ask models typed questions about your data. Commands read stdin, write files or JSON, and run any model on AI Gateway.
Pass comma-separated model IDs to run the same prompt on each model in parallel. Add -n to generate several outputs per model.
Send text, JSON, or images as shared state and ask several Boolean, choice, and score questions in one call. Answers come back as JSON with probabilities, ready for jq or a script.
Text on stdin becomes prompt context. Binary stdin feeds the image, video, and audio commands, so ai image can pipe straight into ai video.
Vercel AI Gateway serves text, image, video, speech, transcription, and evaluation models from OpenAI, Anthropic, Google, Black Forest Labs, ByteDance, and more with one API key.
Run the same commands in a terminal, a CI job, or an agent's tool loop.
Images and video frames render in terminals that support the Kitty graphics protocol, and speech plays back after it's saved.
Progress and file paths go to stderr. Stdout carries the text, the piped artifact, or JSON metadata, so scripts and agents can parse it.
The model list comes from AI Gateway at run time, so new models work without a CLI update. Use short names like flux-2-pro or full IDs like bfl/flux-2-pro.
Set AI_GATEWAY_API_KEY and run a command. Each type has a default model, and env vars such as AI_CLI_IMAGE_MODEL change it.