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 request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

This endpoint provides submit video generation task functionality.

Authentication

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

Request Body

promptImage
string
Promptimage parameter
seed
integer
Seed parameter
model
string
required
The model to use for the request
promptText
string
Prompttext parameter
watermark
boolean
Watermark parameter
duration
integer
Duration parameter
ratio
string
Ratio parameter

Request Example

curl -X POST "https://gptproto.com/runwayml/v1/image_to_video" \
  -H "Authorization: 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 request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}