Thanks to visit codestin.com
Credit goes to runapi.ai

CLI

RunAPI CLI.
AI Models in Your Terminal.

One binary calls 130+ 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.

macOS, Linux — amd64 and arm64
Quickstart
runapi
# Install
curl -fsSL https://runapi.ai/cli/install.sh | sh

# Authenticate
runapi login

# Generate an image
runapi nano-banana generate \
  --input '{"prompt":"a hummingbird drinking espresso"}'

# Generate music (fire-and-forget, then poll)
TASK_ID=$(runapi suno generate --async \
  --input '{"prompt":"indie rock about coding"}' | jq -r .id)
runapi wait "$TASK_ID" --service suno --action generate
runapi <service> <action> --input '{...}' JSON
One binary, 130+ models. JSON-first output for scripts and pipelines.
OVERVIEW

What Is RunAPI CLI?

RunAPI CLI is a single Go binary that calls 130+ AI models from 18 providers through one unified API. Instead of installing separate SDKs for Suno, Kling, Flux, Claude, and GPT, you run one command — runapi <service> <action> — and get structured JSON back. It handles authentication, async polling, and output formatting so your shell scripts, CI pipelines, and agent runtimes stay clean. Every request is billed per-call with no monthly minimum, and the CLI stores your API key locally so you authenticate once and run commands from any directory.

INSTALL

Three Ways to Install

curl (Linux / macOS)

Auto-detects OS and architecture, verifies SHA-256 checksum, writes to /usr/local/bin.

curl -fsSL https://runapi.ai/cli/install.sh | sh

Homebrew

Official Homebrew tap. Auto-updates with brew upgrade.

brew install runapi-ai/tap/runapi

Go Source Build

Build from source with Go 1.22+.

go install github.com/runapi-ai/cli/cmd/runapi@latest
QUICKSTART

Start Building in Minutes

Authenticate, then generate.

# 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 generate \
  --input '{"prompt":"a hummingbird drinking espresso","aspect_ratio":"1:1"}'

# { "id": "task_abc123", "status": "completed", "output": { ... } }
# Fire-and-forget for long jobs
TASK_ID=$(runapi suno generate --async \
  --input '{"prompt":"upbeat indie rock about coding"}' | jq -r .id)

# Poll until completion
runapi wait "$TASK_ID" --service suno --action generate
runapi <service> <action> --input '{...}' JSON
FEATURES

Built for Developers

JSON-First Output

Every command returns structured JSON — pipe to jq, feed to scripts, parse in any language.

Async + Polling

Fire-and-forget with --async, then poll with runapi wait. Built for long-running generation tasks.

Agent Runtime

Install CLI skills into Claude Code, Codex, Gemini CLI, and other agent runtimes with one command.

SUPPORTED SERVICES

What Can You Generate?

Image Generation

Flux, Nano Banana, Recraft, Ideogram, Seedream, GPT Image, Imagen 4 — generate and edit images from text prompts.

Browse models →

Video Generation

Kling, Veo, Runway, Luma, Hailuo, Wan, Seedance — text-to-video generation with async polling built in.

Browse models →

Music & Audio

Suno for music, ElevenLabs for text-to-speech and voice cloning, InfiniteTalk for talking avatars.

Browse models →

LLM Chat & Completion

Claude, GPT, Gemini, DeepSeek, Grok, Qwen — streaming chat completions via the OpenAI-compatible endpoint.

Browse models →
FAQ

Frequently Asked Questions

RELATED

Explore More

Ready to run AI models from your terminal?

Install the CLI and start generating in minutes.