Saltar al contenido principal
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
}
Usa este endpoint para cambiar el estilo de un video existente a través del wrapper de formato inverso de Runway.

Antes de llamarlo

  • Envía el encabezado X-Runway-Version obligatorio, por ejemplo 2024-11-06
  • Proporciona una URL video de origen estable
  • Usa model: gen4
  • Comienza con un valor de structure_transformation moderado antes de intensificar más la transferencia de estilo

Flujo de la tarea

1

Enviar la tarea de cambio de estilo

Envía el video de origen, el prompt y las opciones, y luego guarda el id de tarea devuelto.
2

Consultar el estado de la tarea

Continúa con Feed Get Task hasta que el wrapper alcance un estado terminal.
3

Almacenar el render finalizado

Copia la salida final en tu propio almacenamiento si la necesitas más allá del período de entrega del proveedor.

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Use your CometAPI key.

Encabezados

X-Runway-Version
string

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

Cuerpo

application/json
callback_url
string
predeterminado:https://example.com/webhook
requerido

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

video
string
predeterminado:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
requerido

URL of the source video to restyle.

model
string
predeterminado:gen4
requerido

Model version to use, e.g. gen4.

prompt
string
predeterminado:Apply a pixel-art redraw style.
requerido

Text prompt describing the target style for the redraw.

options
object
requerido

Additional processing options.

Respuesta

200 - application/json

OK

code
integer
requerido

HTTP status code, 200 indicates success

msg
string
requerido

Return information, describes the request result

data
object
requerido

Specific response data

exec_time
number
requerido

Time spent by the server to process this request