
PiAPI CLIMay 15, 2026
PiAPI CLI Quick Start: Generate AI Images and Videos from Your Terminal
Install PiAPI CLI, authenticate your API key, and run your first image or video generation command from the terminal.
94 Multimodal AI Models from Your Terminal
Generate AI images, videos, audio, 3D assets, and chat with LLMs from one command line interface. PiAPI CLI is built for developers, AI agents, and automation workflows.
Learn MoreInstall with npm:
npm install -g piapi-cliRun piapi model list to browse all models
piapi run flux-dev prompt="a corgi astronaut"piapi run flux-dev prompt="a corgi" aspect_ratio=16:9Generate image
piapi run gpt-4o prompt="hello" --streamChat with streaming
piapi run sora2-pro prompt="waves" --asyncGenerate video (async)
piapi run remove-bg image=@./photo.png --downloadUpload & download

Install PiAPI CLI, authenticate your API key, and run your first image or video generation command from the terminal.

Use PiAPI CLI as a command line AI tool to generate images from terminal prompts, save outputs locally, and automate repeatable image workflows.