PiAPI CLI

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 More

Install with npm:

$npm install -g piapi-cli

One AI CLI Tool for Multimodal Models

flux-devnano-banana-progpt-image-2qwen-imageseedream-5-litemidjourneyz-imageremove-bgupscalefaceswap

Run piapi model list to browse all models

$piapi run flux-dev prompt="a corgi astronaut"

CLI Commands

$piapi run flux-dev prompt="a corgi" aspect_ratio=16:9

Generate image

$piapi run gpt-4o prompt="hello" --stream

Chat with streaming

$piapi run sora2-pro prompt="waves" --async

Generate video (async)

$piapi run remove-bg image=@./photo.png --download

Upload & download

Frequently Asked Questions