Vai al contenuto principale
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 questo endpoint per ridefinire lo stile di un video esistente tramite il wrapper in formato inverso di Runway.

Prima di chiamarlo

  • Invia l’header X-Runway-Version richiesto, ad esempio 2024-11-06
  • Fornisci un URL video di origine stabile
  • Usa model: gen4
  • Inizia con un valore di structure_transformation moderato prima di spingere maggiormente il trasferimento di stile

Flusso dell’attività

1

Invia l'attività di restyling

Invia il video di origine, il prompt e le opzioni, quindi salva l’id dell’attività restituito.
2

Controlla lo stato dell'attività

Continua con Feed Get Task finché il wrapper non raggiunge uno stato terminale.
3

Archivia il rendering completato

Copia l’output finale nel tuo sistema di archiviazione se ti serve oltre la finestra di consegna del provider.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Intestazioni

X-Runway-Version
string

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

Corpo

application/json
callback_url
string
predefinito:https://example.com/webhook
obbligatorio

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

video
string
predefinito:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
obbligatorio

URL of the source video to restyle.

model
string
predefinito:gen4
obbligatorio

Model version to use, e.g. gen4.

prompt
string
predefinito:Apply a pixel-art redraw style.
obbligatorio

Text prompt describing the target style for the redraw.

options
object
obbligatorio

Additional processing options.

Risposta

200 - application/json

OK

code
integer
obbligatorio

HTTP status code, 200 indicates success

msg
string
obbligatorio

Return information, describes the request result

data
object
obbligatorio

Specific response data

exec_time
number
obbligatorio

Time spent by the server to process this request