curl -fsSL https://runapi.ai/cli/install.sh | sh
Detects OS/arch and verifies SHA-256.
One binary calls 250+ AI models â Suno, Veo, Kling, Flux, Claude, GPT, and the rest â with JSON-first output that maps cleanly to scripts, CI pipelines, and agent runtimes.
$ curl -fsSL https://runapi.ai/cli/install.sh | sh
RunAPI CLI v0.14.1
Usage: runapi <command> [options]
Commands:
login Authenticate in a browser
auth Manage authentication
account Read account information
files Manage file resources
pricing Read schedules and quotes
Run runapi <command> --help for details
curl -fsSL https://runapi.ai/cli/install.sh | sh
Detects OS/arch and verifies SHA-256.
brew install runapi-ai/tap/runapi
Official Homebrew tap. Upgrade with brew.
go install github.com/runapi-ai/cli/cmd/runapi@latest
Build from source with Go 1.22+.
# Browser-based login (laptop)
runapi login
# Or import a token (CI / headless)
printf '%s' "$RUNAPI_API_KEY" | runapi auth import-token --token -
# Verify
runapi auth status
runapi nano-banana text-to-image --input '{"prompt":"a hummingbird drinking espresso","aspect_ratio":"1:1"}'
# { "id": "task_id", "status": "completed", "output": { ... } }
# Fire-and-forget for long jobs
TASK_ID=$(runapi suno text-to-music --async --input '{"model":"suno-v5","vocal_mode":"instrumental","style":"minimal piano","title":"Short Piano Theme"}' | jq -r '.id')
# Poll until completion
runapi wait "$TASK_ID" --service suno --action text-to-music
Every command returns structured JSON. Pipe results to jq, save to files, or feed into scripts.
Video, image, music, audio, and LLM â one CLI for everything. Switch models with --model flag.
Long tasks return immediately with a task ID. Poll with runapi task or use --wait to block.
Tab completion for commands, model names, and flags. Supports bash, zsh, and fish.
Generate assets as part of your build process. JSON output pipes cleanly into scripts and automation tools.
Process hundreds of images or videos with a shell loop. Async task management means no blocking.
Test a new model in seconds from your terminal. No code, no setup â just runapi generate.
Stop switching between provider CLIs. One command for video, image, music, audio, and LLM.
JSON output, exit codes, and stdin support. Drops into any CI/CD or shell script.
See per-request costs in real time. Set spending limits per project.
Use the curl installer for macOS or Linux, Homebrew on macOS, or build from source with Go 1.22+.
Yes. Set RUNAPI_API_KEY in the environment and use JSON output in scripts.
RunAPI exposes 250+ models across 26 providers through the same CLI.
Run runapi login, or import RUNAPI_API_KEY for CI and other headless environments.
Yes. RunAPI CLI supports Windows, macOS, and Linux on amd64 and arm64 where available.
Yes. JSON output pipes directly to jq, files, scripts, and automation tools.
We're here to help with enterprise setup, integrations, and technical questions.