Przejdź do głównej treści
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.

Użyj tego endpointu, aby zmienić styl istniejącego filmu.

Zanim go wywołasz

  • Wyślij wymagany nagłówek X-Runway-Version, na przykład 2024-11-06
  • Podaj stabilny źródłowy adres URL video
  • Użyj model: gen4
  • Dołącz options.seconds z czasem trwania wyniku
  • Zacznij od umiarkowanej wartości structure_transformation, zanim mocniej zwiększysz transfer stylu

Przepływ zadania

1

Prześlij zadanie zmiany stylu

Wyślij źródłowy film, prompt i opcje, a następnie zapisz zwrócone id zadania.
2

Sprawdzaj status zadania

Kontynuuj z Feed Get Task, aż zadanie osiągnie stan końcowy.
3

Zapisz gotowy render

Skopiuj końcowy wynik do własnego magazynu, jeśli potrzebujesz go dłużej niż przez okres udostępniania przez dostawcę.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Nagłówki

X-Runway-Version
string

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

Treść

application/json
callback_url
string
domyślnie:https://example.com/webhook
wymagane

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

video
string
domyślnie:https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
wymagane

URL of the source video to restyle.

model
string
domyślnie:gen4
wymagane

Model version to use, e.g. gen4.

prompt
string
domyślnie:Apply a pixel-art redraw style.
wymagane

Text prompt describing the target style for the redraw.

options
object
wymagane

Additional processing options.

Odpowiedź

200 - application/json

OK

code
integer
wymagane

HTTP status code returned by the task service.

data
object
wymagane
message
string

Empty on success.

msg
string

Result message.