runapi-cli
它能做什么
这个工具可以让你用人工智能创建图像、视频和音乐。你可以直接在自己的电脑或服务器上运行 AI 任务。
适用场景
- ✓当你想根据描述创建一张图片时。
- ✓当你需要用 AI 生成一段短视频时。
- ✓当你想根据指令生成音频或音乐时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/runapi-cli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一张火星上宇航猫的图片。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要在电脑上安装名为 'runapi' 的程序。然后在终端中使用简单的命令,指定你想要的媒体类型(图像、视频、音频)以及它应该呈现的样子。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
RunAPI CLI
Overview
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)
When to Use This Skill
- Use when the user asks to run a RunAPI model from an agent.
- Use when the user needs to inspect RunAPI CLI auth or account status.
- Use when the user wants to pass JSON request bodies to RunAPI services.
- Use when the user wants to submit async RunAPI tasks and wait for completion.
- Use when the user wants to install the RunAPI CLI on a local machine, server, or CI runner.
Install
macOS / Linux
brew install runapi-ai/tap/runapi
Server / CI
Download the installer, inspect it, then run it locally.
curl -fsSL https://runapi.ai/cli/install.sh -o runapi-install.sh
less runapi-install.sh
sh runapi-install.sh
To pin a specific version:
sh 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.
Authentication
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:
runapi 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 -.
Discover Services, Commands, and Fields
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.
runapi --help
runapi suno --help
runapi suno text-to-music --help
Run a Model
Pass the request body as JSON through --input-file, --input, or stdin. The default flow is synchronous and polls until the task completes.
runapi 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.
Account
runapi account info
runapi account balance
Install the Skill Into Another Agent Runtime
runapi 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>
Limitations
- RunAPI model calls require a valid RunAPI account or API key.
- Some model tasks are long-running and should use
--asyncplusrunapi wait. - Browser login is interactive and should not be the default path for agents.
- This skill does not replace model-specific parameter validation; inspect command help before building request JSON.
Security & Safety Notes
- Never paste API keys into example commands or PR text.
- Prefer
RUNAPI_API_KEYor stdin token import instead of command-line secrets. - Do not run interactive
runapi loginby default from an agent. - Check the CLI exit code before assuming a task succeeded.
References
- RunAPI CLI skill: https://github.com/runapi-ai/cli-skill
- RunAPI CLI repository: https://github.com/runapi-ai/cli
- RunAPI model catalog: https://runapi.ai/models.md
常见问题
如何安装这个工具?
在 macOS 上可以使用终端命令安装,例如 'brew install runapi-ai/tap/runapi';在其他系统上,可以下载安装脚本进行安装。
使用它需要账户吗?
需要。你需要一个 RunAPI 账户或 API 密钥,才能使用媒体生成服务。
使用 API 密钥安全吗?
不建议把 API 密钥直接写进命令中。请使用环境变量,或以安全的方式传递,以免密钥泄露。
详情
作者的原始描述
Generate AI images, videos, and music/audio from agents using the RunAPI CLI.
热度
- GitHub 星标
- 48k
- 排名
- #5650
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。