API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. reverse
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
      • Action
      • Modal
      • Blend
      • Describe
      • Shorten
      • Upload discord
    • Get Task
      • Fetch task by ids
      • Fetch task by id
      • Get seed
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
        POST
      • image to video
        POST
      • video2video
        POST
      • Act-one
        POST
      • Get task
        POST
  • Kling-API
    • Callback
    • Generate image
    • Text 2 Video
    • Image 2 Video
    • Video extend
    • Get task
    • lip-sync
    • kolors-virtual-try-on
  • Replicate
    • Generate
    • Get
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. reverse

text to video

POST
/runway/pro/generate
Last modified:2025-02-05 11:34:01

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
callback_url
string 
回调地址
required
Webhook 回调 URL。视频生成状态(生成中进度变化/失败/成功)发生改变之后,生成结果将会以 POST 形式发送到此 Webhook URL。
ratio
enum<string> 
画面尺寸
optional
目前仅支持gen-2,gen-3仅支持16:9和9:16
Allowed values:
16:99:161:14:321:9
Default:
16:9
prompt
string 
描述词
required
支持中文
style
enum<string> 
风格
optional
目前仅支持gen-2
Allowed value:
cinematic
Default:
cinematic
model
enum<string> 
模型
required
Allowed values:
gen2gen3
Default:
gen3
options
object 
参数
optional
motion_vector
object 
镜头控制
optional
目前仅支持gen-2
seconds
enum<integer> 
视频时长
optional
目前仅支持gen-3
Allowed values:
510
Default:
10
Example
{
  "callback_url": "http://baidu.com",
  "ratio": "16:9",
  "prompt": "cat",
  "style": "cinematic",
  "model": "gen3",
  "options": {
    "seconds": 10,
    "motion_vector": {
      "x": 0,
      "y": 0.3999999999999999,
      "z": 0,
      "r": -6,
      "bg_x_pan": 0,
      "bg_y_pan": 0
    }
  }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/runway/pro/generate' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "callback_url": "http://baidu.com",
    "ratio": "16:9",
    "prompt": "cat",
    "style": "cinematic",
    "model": "gen3",
    "options": {
        "seconds": 10,
        "motion_vector": {
            "x": 0,
            "y": 0.3999999999999999,
            "z": 0,
            "r": -6,
            "bg_x_pan": 0,
            "bg_y_pan": 0
        }
    }
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
msg
string 
required
data
object 
required
task_id
string 
任务ID
required
exec_time
number 
required
Example
{
  "code": 200,
  "msg": "成功",
  "data": {
    "task_id": "0ab3bfe2-be23-4635-8c35-890fb2c1732d"
  },
  "exec_time": 0.67573
}
Previous
get task
Next
image to video
Built with