← 返回
未分类 Key 中文

Runwayml

Generate AI videos, images, and audio with Runway API. Use when generating video from images, text-to-video, video-to-video, character performance, text-to-i...
使用 Runway API 生成 AI 视频、图片和音频。适用于从图片生成视频、文本转视频、视频转视频、角色表演、文本转图像等场景。
slightly-unrelated slightly-unrelated 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 399
下载
💾 0
安装
1
版本
#latest

概述

Runway API Skill

Generate AI videos, images, and audio using Runway's API. Features Gen-4.5 — Runway's latest and most capable model — supporting both text-to-video and image-to-video generation, plus Gen-4 variants and third-party models from Google (Veo) and ElevenLabs.

Setup

  1. Get your API key from dev.runwayml.com
  2. Store it as RUNWAYML_API_SECRET in your environment
  3. Install the Node.js SDK: npm install @runwayml/sdk

Quick Start

Text-to-Video (gen4.5)

import RunwayML from "@runwayml/sdk";

const client = new RunwayML(); // reads RUNWAYML_API_SECRET automatically

const task = await client.textToVideo.create({
  model: "gen4.5",
  promptText: "A steaming bowl of noodles in a busy hawker centre, warm light, slow camera push-in",
  duration: 5,
  ratio: "1280:720"
}).waitForTaskOutput();

console.log("Video URL:", task.output[0]);

Image-to-Video (gen4.5)

import RunwayML from "@runwayml/sdk";
import fs from "fs";

const client = new RunwayML();

const imageData = fs.readFileSync("product.jpg");
const promptImage = `data:image/jpeg;base64,${imageData.toString("base64")}`;

const task = await client.imageToVideo.create({
  model: "gen4.5",
  promptImage,
  promptText: "Slow dolly-in toward the product jar, warm side lighting, sauce shimmer visible through glass",
  duration: 5,
  ratio: "1280:720"
}).waitForTaskOutput();

console.log("Video URL:", task.output[0]);

cURL (direct API)

# Text-to-video
curl -X POST "https://api.dev.runwayml.com/v1/image_to_video" \
  -H "Authorization: Bearer $RUNWAYML_API_SECRET" \
  -H "X-Runway-Version: 2024-11-06" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gen4.5",
    "promptText": "A serene mountain landscape at sunset",
    "ratio": "1280:720",
    "duration": 5
  }'

Available Models

Video Generation

ModelInputCredits/secNotes
----------------------------------
gen4.5Text or Image12Newest & recommended
gen4_turboImage only5Fast I2V iteration
veo3.1Text or Image40Google Veo — includes audio
veo3.1_fastText or Image15Veo — audio, cheaper
gen4_alephVideo + Text/Image15Video-to-video transformation
act_twoImage or Video5Character performance/motion

Image Generation

ModelCreditsNotes
-----------------------
gen4_image5–8/imageHigh quality, supports style references
gen4_image_turbo2/imageFast iteration (requires reference image)

Audio (ElevenLabs via Runway)

ModelOutputCredits
------------------------
eleven_multilingual_v2Text → Speech1/50 chars
eleven_text_to_sound_v2Text → Sound FX1/6 sec
eleven_voice_dubbingAudio → Dubbed1/2 sec

Valid Ratios

RatioFormat
---------------
1280:72016:9 landscape (standard)
720:12809:16 portrait (Reels/Stories)
1584:67221:9 ultra-wide
1104:8324:3
832:11043:4
960:960Square

Duration

  • gen4.5: 2–10 seconds
  • gen4_turbo: 5 or 10 seconds

Task Polling

All operations are async. The SDK's .waitForTaskOutput() handles polling automatically (10 min timeout).

Statuses: PENDINGTHROTTLEDRUNNINGSUCCEEDED / FAILED

Manual poll:

curl "https://api.dev.runwayml.com/v1/tasks/{task_id}" \
  -H "Authorization: Bearer $RUNWAYML_API_SECRET" \
  -H "X-Runway-Version: 2024-11-06"

Prompting Tips

  • Describe single scenes (5–10 sec clips)
  • Use clear physical descriptions, not abstract concepts
  • For camera movement: "slow dolly-in", "tracking shot", "push toward subject"
  • Avoid negative phrasing — "no blur" produces unpredictable results
  • Keep prompts grounded and physically plausible

Official Docs

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 08:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 435 📥 118,005
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 229 📥 49,004
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 335 📥 94,802