Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate AI images, videos, and music/audio from agents using the RunAPI CLI.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 218% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 24% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -11% | 0% |
The runapi CLI is the execution layer for RunAPI model tasks. Use it when an agent needs to generate AI images, videos, or music/audio, run a one-off model job, pass a JSON request body, wait for an async task, or script RunAPI from a terminal, server, or CI job.
Source repository: github.com/runapi-ai/cli-skill (Apache-2.0)
shellbrew install runapi-ai/tap/runapi
Download the installer, inspect it, then run it locally.
shellcurl -fsSL https://runapi.ai/cli/install.sh -o runapi-install.sh less runapi-install.sh sh runapi-install.sh
To pin a specific version:
shellsh runapi-install.sh --version v0.1.0
The installer detects OS and architecture, verifies the SHA-256 checksum from https://runapi.ai/cli/latest.json, and refuses to write the binary if verification fails.
Treat RunAPI authentication and generation as security-sensitive: commands can call remote services, consume credits, and expose account state. Review installer scripts before running them and keep API keys in environment variables or stdin, not shell history.
Check the current state first:
shellrunapi auth status
| Source | How | |---|---| | Environment | Read RUNAPI_API_KEY from the environment | | Saved config | printf '%s' "$RUNAPI_API_KEY" \| runapi auth import-token --token - | | Browser login | runapi login only when the user explicitly wants browser auth |
RUNAPI_BASE_URL overrides the default base URL.
Avoid passing secrets directly in command arguments. Prefer RUNAPI_API_KEY or stdin token import with --token -.
The CLI is JSON-first. Every service exposes typed commands, and each command documents its request fields through --help. Inspect command help before composing a request.
shellrunapi --help runapi suno --help runapi suno text-to-music --help
Pass the request body as JSON through --input-file, --input, or stdin. The default flow is synchronous and polls until the task completes.
shellrunapi suno text-to-music --input-file request.json runapi suno text-to-music --async --input-file request.json runapi wait <task-id> --service suno --action text-to-music runapi get <task-id> --service suno --action text-to-music
JSON responses go to stdout; progress lines go to stderr. Pipe to jq for downstream parsing.
shellrunapi account info runapi account balance
shellrunapi agent install-skill --target claude runapi agent install-skill --target codex runapi agent install-skill --target gemini runapi agent install-skill --target openclaw runapi agent list-targets runapi agent install-skill --target-dir <path>
--async plus runapi wait.RUNAPI_API_KEY or stdin token import instead of command-line secrets.runapi login by default from an agent.Other measured skills in the registry, with their headline benchmark lift.