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": "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
}
Użyj tego endpointu, aby zmienić styl istniejącego filmu za pomocą wrappera Runway w formacie reverse-format.

Zanim go wywołasz

  • Wyślij wymagany nagłówek X-Runway-Version, na przykład 2024-11-06
  • Podaj stabilny adres URL źródłowego video
  • Użyj model: gen4
  • Zacznij od umiarkowanej wartości structure_transformation, zanim zwiększysz intensywność transferu stylu

Przebieg zadania

1

Prześlij zadanie zmiany stylu

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

Sprawdzaj status zadania

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

Zapisz gotowy render

Skopiuj końcowy wynik do własnej pamięci masowej, jeśli potrzebujesz go dłużej niż trwa okno dostarczenia po stronie dostawcy.

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:http://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, 200 indicates success

msg
string
wymagane

Return information, describes the request result

data
object
wymagane

Specific response data

exec_time
number
wymagane

Time spent by the server to process this request