Langsung ke konten utama
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.

Gunakan endpoint ini untuk mengubah gaya video yang sudah ada.

Sebelum Anda memanggilnya

  • Kirim header X-Runway-Version yang diperlukan, misalnya 2024-11-06
  • Sediakan URL sumber video yang stabil
  • Gunakan model: gen4
  • Sertakan options.seconds dengan durasi output
  • Mulailah dengan nilai structure_transformation yang moderat sebelum mendorong transfer gaya lebih jauh

Alur tugas

1

Kirim tugas restyle

Kirim video sumber, prompt, dan opsi, lalu simpan id tugas yang dikembalikan.
2

Polling status tugas

Lanjutkan dengan Feed Get Task hingga tugas mencapai status terminal.
3

Simpan render yang selesai

Salin output akhir ke penyimpanan Anda sendiri jika Anda membutuhkannya setelah jangka waktu pengiriman penyedia berakhir.

Otorisasi

Authorization
string
header
wajib

Bearer token authentication. Use your CometAPI key.

Header

X-Runway-Version
string

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

Body

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

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

video
string
default:https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
wajib

URL of the source video to restyle.

model
string
default:gen4
wajib

Model version to use, e.g. gen4.

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

Text prompt describing the target style for the redraw.

options
object
wajib

Additional processing options.

Respons

200 - application/json

OK

code
integer
wajib

HTTP status code returned by the task service.

data
object
wajib
message
string

Empty on success.

msg
string

Result message.