Skip to main content
POST
/
runway
/
pro
/
video2video
Video to Video Style Redraw
curl --request POST \
  --url https://api.cometapi.com/runway/pro/video2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "callback_url": "http://baidu.com",
  "video": "http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
  "model": "gen4",
  "prompt": "pixelated style",
  "options": {
    "structure_transformation": 0.5,
    "flip": true
  }
}
'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "task_id": "<string>",
    "state": "<string>",
    "status": "<string>",
    "prompt": "<string>",
    "prompt_en": "<string>",
    "video_url": "<string>",
    "last_frame": "<string>",
    "msg": "<string>",
    "create_time": "<string>",
    "update_time": "<string>",
    "poster": "<string>"
  },
  "exec_time": 123
}
Use this endpoint to restyle an existing video through the Runway reverse-format wrapper.

Before you call it

  • Send the required X-Runway-Version header, for example 2024-11-06
  • Provide a stable source video URL
  • Use model: gen4
  • Start with a modest structure_transformation value before pushing the style transfer harder

Task flow

1

Submit the restyle task

Send the source video, prompt, and options, then save the returned task id.
2

Poll task status

Continue with Feed Get Task until the wrapper reaches a terminal state.
3

Store the finished render

Copy the final output into your own storage if you need it beyond the provider delivery window.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Headers

X-Runway-Version
string

Optional Runway version header, for example 2024-11-06.

Body

application/json
callback_url
string
default:https://example.com/webhook
required

Webhook URL that receives a POST request with the result when the task completes.

video
string
default:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
required

URL of the source video to restyle.

model
string
default:gen4
required

Model version to use, e.g. gen4.

prompt
string
default:Apply a pixel-art redraw style.
required

Text prompt describing the target style for the redraw.

options
object
required

Additional processing options.

Response

200 - application/json

OK

code
integer
required

HTTP status code, 200 indicates success

msg
string
required

Return information, describes the request result

data
object
required

Specific response data

exec_time
number
required

Time spent by the server to process this request