Skip to main content
POST
/
runwayml
/
v1
/
image_to_video
Submit Video Generation Task
curl --request POST \
  --url https://gptproto.com/runwayml/v1/image_to_video \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "promptImage": "<string>",
  "seed": 123,
  "model": "<string>",
  "promptText": "<string>",
  "watermark": true,
  "duration": 123,
  "ratio": "<string>"
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

This endpoint provides submit video generation task functionality.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

promptImage
string
default:"https://xxx.com/logo.png"
Promptimage parameter
seed
integer
default:"4294967295"
Seed parameter
model
string
default:"runwayml-gen3a_turbo-5"
required
The model to use for the request
promptText
string
default:"cat dance"
Prompttext parameter
watermark
boolean
default:"false"
Watermark parameter
duration
integer
default:"5"
Duration parameter
ratio
string
default:"1280:768"
Ratio parameter

Request Example

curl -X POST "https://gptproto.com/runwayml/v1/image_to_video" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "promptImage": "https://xxx.com/logo.png",
  "seed": 4294967295,
  "model": "runwayml-gen3a_turbo-5",
  "promptText": "cat dance",
  "watermark": false,
  "duration": 5,
  "ratio": "1280:768"
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}