Token导航 LogoToken导航

Agent Skill · 开发

api-reference(API reference 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

api-reference 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 12,300。

总安装 1,346周安装 55GitHub Stars 30下载 431核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:api-reference(API reference 文档)
来源仓库:https://github.com/runwayml/skills
仓库路径:skills/api-reference
安装命令:
npx skills add https://github.com/runwayml/skills --skill api-reference
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/runwayml/skills --skill api-reference

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

提供 RunwayML 公共 API 的完整参考文档,涵盖视频生成模型和端点详情。适用于集成 gen4、veo3 等模型到应用中,支持图像转视频和文本转视频功能。所有请求需携带 Authorization: Bearer <RUNWAYML_API_SECRET> 和 X-Runway-Version 头。

按使用时长计费,不同模型每秒消耗不同信用点数,需提前充值账户余额。推荐先在沙箱环境测试,确认参数正确后再部署到生产流程中。

来源仓库内路径:skills/api-reference

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/runwayml/skills --skill api-reference;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-reference 怎么安装?

在终端执行 npx skills add https://github.com/runwayml/skills --skill api-reference。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

api-reference 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

api-reference 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

api-reference 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

api-reference 用的人多吗?

公开数据是累计安装 1,346 次,近一周安装 55 次,下载 431 次,GitHub 30 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

api-reference 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
api-reference

API reference 文档 · 本页

1,34630接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Runway Public API Reference

PREREQUISITE: Run +check-compatibility first to ensure the project has server-side capability.

Base URL: https://api.dev.runwayml.com

All requests require these headers:

Authorization: Bearer <RUNWAYML_API_SECRET>
X-Runway-Version: 2024-11-06

Models & Endpoints

Video Generation

ModelEndpointInputCost (credits/sec)
gen4.5POST /v1/image_to_video or POST /v1/text_to_videoText and/or Image12
gen4_turboPOST /v1/image_to_videoImage required5
gen4_alephPOST /v1/video_to_videoVideo + Text/Image15
act_twoPOST /v1/character_performanceImage/Video5
veo3POST /v1/image_to_video or POST /v1/text_to_videoText/Image40
veo3.1POST /v1/image_to_video or POST /v1/text_to_videoText/Image20-40
veo3.1_fastPOST /v1/image_to_video or POST /v1/text_to_videoText/Image10-15

Video duration: 2-10 seconds. Aspect ratios: 1280:720, 720:1280, 1104:832, etc.

Image Generation

ModelEndpointCost (credits)
gen4_imagePOST /v1/text_to_image5 (720p), 8 (1080p)
gen4_image_turboPOST /v1/text_to_image2
gemini_2.5_flashPOST /v1/text_to_image5

Audio Generation

ModelEndpointUse CaseCost
eleven_multilingual_v2POST /v1/text_to_speechText to speech1 credit/50 chars
eleven_text_to_sound_v2POST /v1/sound_effectSound effects1-2 credits
eleven_voice_isolationPOST /v1/voice_isolationIsolate voice from audio1 credit/6 sec
eleven_voice_dubbingPOST /v1/voice_dubbingDub audio to other languages1 credit/2 sec
eleven_multilingual_sts_v2POST /v1/speech_to_speechVoice conversion1 credit/3 sec

Characters (Real-Time Avatars)

ModelDescriptionSession Max Duration
gwm1_avatarsReal-time conversational avatars powered by GWM-15 minutes

Endpoints:

MethodEndpointDescription
POST/v1/avatarsCreate a new Avatar
GET/v1/avatars/{id}Retrieve an Avatar
PATCH/v1/avatars/{id}Update an Avatar (name, voice, personality, documentIds)
DELETE/v1/avatars/{id}Delete an Avatar
POST/v1/realtime_sessionsCreate a new real-time session
GET/v1/realtime_sessions/{id}Retrieve session status (poll until READY)
POST/v1/realtime_sessions/{id}/consumeConsume session credentials for WebRTC (one-time use)

Avatar creation parameters:

ParameterTypeDescription
namestringDisplay name for the avatar
referenceImagestringURL or runway:// URI of the character image
voiceobject{type: 'runway-live-preset', presetId: 'clara'}
personalitystringSystem prompt / personality instructions
documentIdsstring[]Optional. IDs of knowledge base documents to attach

Voice presets: clara (soft), victoria (firm), vincent (authoritative). Preview all at dev.runwayml.com.

Session statuses: NOT_READY → READY → RUNNING → COMPLETED (or FAILED / CANCELLED)

Documents (Knowledge Base)

MethodEndpointDescription
POST/v1/documentsCreate a document (plain text or Markdown)
GET/v1/documents/{id}Retrieve a document
DELETE/v1/documents/{id}Delete a document

Each Avatar supports up to 50,000 tokens of knowledge. Link documents to an Avatar via client.avatars.update(id, {documentIds: [...]}).

Management Endpoints

MethodEndpointDescription
GET/v1/tasks/{id}Get task status and output
DELETE/v1/tasks/{id}Cancel/delete a task
POST/v1/uploadsCreate ephemeral upload
GET/v1/organizationOrganization info & credit balance
POST/v1/organization/usageCredit usage history (up to 90 days)

Task Lifecycle

All generation endpoints return a task object. The flow is:

  1. Submit — POST /v1/<endpoint> → returns {"id": "task_xxx"}
  2. Poll — GET /v1/tasks/{id} → returns task with status
  3. Retrieve output — When status === "SUCCEEDED", the output array contains signed URLs

Task Statuses

StatusMeaning
PENDINGQueued, waiting to start
RUNNINGCurrently generating
SUCCEEDEDComplete — output URLs available
FAILEDGeneration failed — check failure field
THROTTLEDConcurrency limit hit — auto-queued

SDK Polling (Recommended)

The SDKs provide a waitForTaskOutput() method that handles polling automatically:

// Node.js — polls until complete (default 10 min timeout)
const task = await client.imageToVideo.create({
  model: 'gen4.5',
  promptImage: 'https://example.com/image.jpg',
  promptText: 'A sunset timelapse',
  ratio: '1280:720',
  duration: 5
}).waitForTaskOutput();

console.log(task.output); // Array of signed URLs
# Python
task = client.image_to_video.create(
    model='gen4.5',
    prompt_image='https://example.com/image.jpg',
    prompt_text='A sunset timelapse',
    ratio='1280:720',
    duration=5
).wait_for_task_output()

print(task.output)

Manual Polling (REST)

async function pollTask(taskId) {
  while (true) {
    const response = await fetch(`https://api.dev.runwayml.com/v1/tasks/${taskId}`, {
      headers: {
        'Authorization': `Bearer ${process.env.RUNWAYML_API_SECRET}`,
        'X-Runway-Version': '2024-11-06'
      }
    });
    const task = await response.json();

    if (task.status === 'SUCCEEDED') return task;
    if (task.status === 'FAILED') throw new Error(task.failure);

    await new Promise(r => setTimeout(r, 5000)); // poll every 5 seconds
  }
}

Output Handling

  • Successful tasks return an output array with signed URLs to generated content
  • Output URLs expire within 24-48 hours
  • Download and store outputs in your own storage — do not serve signed URLs to end users
  • Video outputs are MP4, image outputs are PNG/JPEG

Input Requirements

Size Limits

TypeVia URLVia Data URIVia Upload
Image16 MB5 MB200 MB
Video32 MB16 MB200 MB
Audio32 MB16 MB200 MB

Supported Formats

  • Images: JPEG, PNG, WebP (no GIF)
  • Video codecs: H.264, H.265/HEVC, AV1, VP8/VP9, Apple ProRes, Theora
  • Audio: MP3, AAC, FLAC, PCM, ALAC

URL Requirements

If providing assets via URL:

  • HTTPS only (no HTTP)
  • Domain names only (no IP addresses)
  • No redirects
  • Must support HTTP HEAD requests
  • Must return valid Content-Type and Content-Length headers
  • Max URL length: 2,048 characters

Rate Limits & Tiers

TierConcurrencyDaily GensMonthly CapUnlock
1 (default)1-250-200$100—
23500-1,000$5001 day + $50
351,000-2,000$2,0007 days + $100
4105,000-10,000$20,00014 days + $1,000
52025,000-30,000$100,0007 days + $5,000
  • No requests-per-minute limit — only daily generation quotas
  • Exceeding concurrency → THROTTLED status (auto-queued, not rejected)
  • Exceeding daily limit → 429 Too Many Requests
  • Daily limits use a rolling 24-hour window

Error Handling

HTTP Errors

CodeMeaningAction
400Input validation failureFix input, do not retry
401Invalid API keyCheck key, do not retry
429Rate limitedRetry with exponential backoff + jitter
502/503/504Server overloadRetry with exponential backoff + jitter

Task Failure Codes

CodeMeaningRetry?
SAFETY.INPUT.*Input content moderationNo — not refundable
SAFETY.OUTPUT.*Output content moderationYes — try different prompt
INTERNAL.BAD_OUTPUTQuality issueYes
ASSET.INVALIDBad input formatFix input
INTERNALServer errorYes

The SDKs handle retries for transient errors automatically.


Data URI Support

Base64-encoded images can be passed instead of URLs:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...

Useful for small images or when you don't want to host the file. Subject to the data URI size limits above.

平台分布

Codex

36.9%
按下载量换算159

Claude

28.51%
按下载量换算123

Cursor

17.19%
按下载量换算74

Gemini CLI

10.67%
按下载量换算46

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills