Naar hoofdinhoud gaan
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": "https://example.com/webhook",
  "video": "https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
  "model": "gen4",
  "prompt": "pixelated style",
  "options": {
    "structure_transformation": 0.5,
    "flip": true,
    "seconds": 5
  }
}
'
{
  "code": 200,
  "message": "",
  "msg": "success",
  "data": {
    "task_id": "196642a0-05e1-441a-981e-eb0c1f5d983b"
  }
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Gebruik dit endpoint om een bestaande video opnieuw te stylen.

Voordat je het aanroept

  • Verstuur de vereiste X-Runway-Version-header, bijvoorbeeld 2024-11-06
  • Geef een stabiele bron-video-URL op
  • Gebruik model: gen4
  • Neem options.seconds op met de duur van de output
  • Begin met een bescheiden waarde voor structure_transformation voordat je de style transfer sterker toepast

Taakverloop

1

Dien de restyle-taak in

Verstuur de bronvideo, prompt en opties, en sla daarna het geretourneerde taak-id op.
2

Poll taakstatus

Ga door met Feed Get Task totdat de taak een eindstatus bereikt.
3

Sla de voltooide render op

Kopieer de uiteindelijke output naar je eigen opslag als je die langer nodig hebt dan het leveringsvenster van de provider.

Autorisaties

Authorization
string
header
vereist

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
standaard:https://example.com/webhook
vereist

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

video
string
standaard:https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
vereist

URL of the source video to restyle.

model
string
standaard:gen4
vereist

Model version to use, e.g. gen4.

prompt
string
standaard:Apply a pixel-art redraw style.
vereist

Text prompt describing the target style for the redraw.

options
object
vereist

Additional processing options.

Respons

200 - application/json

OK

code
integer
vereist

HTTP status code returned by the task service.

data
object
vereist
message
string

Empty on success.

msg
string

Result message.