跳到正文
Skillpedia
动效与动画48k · #5650

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/runapi-cli/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 --async plus runapi 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_KEY or stdin token import instead of command-line secrets.
  • Do not run interactive runapi login by default from an agent.
  • Check the CLI exit code before assuming a task succeeded.

References

常见问题

如何安装这个工具?

在 macOS 上可以使用终端命令安装,例如 'brew install runapi-ai/tap/runapi';在其他系统上,可以下载安装脚本进行安装。

使用它需要账户吗?

需要。你需要一个 RunAPI 账户或 API 密钥,才能使用媒体生成服务。

使用 API 密钥安全吗?

不建议把 API 密钥直接写进命令中。请使用环境变量,或以安全的方式传递,以免密钥泄露。

详情

作者的原始描述

Generate AI images, videos, and music/audio from agents using the RunAPI CLI.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5650
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能