메인 콘텐츠로 건너뛰기
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
}
이 엔드포인트를 사용하면 Runway reverse-format 래퍼를 통해 기존 비디오의 스타일을 재구성할 수 있습니다.

호출 전에 확인하세요

  • 필수 X-Runway-Version 헤더를 전송하세요. 예: 2024-11-06
  • 안정적인 소스 video URL을 제공하세요
  • model: gen4를 사용하세요
  • 스타일 전이를 더 강하게 적용하기 전에 적당한 structure_transformation 값으로 시작하세요

작업 흐름

1

스타일 재구성 작업 제출

소스 비디오, 프롬프트, 옵션을 전송한 다음 반환된 작업 id를 저장하세요.
2

작업 상태 폴링

래퍼가 최종 상태에 도달할 때까지 Feed Get Task로 계속 확인하세요.
3

완료된 렌더 저장

제공업체의 전달 보관 기간 이후에도 필요하다면 최종 출력을 자체 스토리지에 복사하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

헤더

X-Runway-Version
string

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

본문

application/json
callback_url
string
기본값:https://example.com/webhook
필수

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

video
string
기본값:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
필수

URL of the source video to restyle.

model
string
기본값:gen4
필수

Model version to use, e.g. gen4.

prompt
string
기본값:Apply a pixel-art redraw style.
필수

Text prompt describing the target style for the redraw.

options
object
필수

Additional processing options.

응답

200 - application/json

OK

code
integer
필수

HTTP status code, 200 indicates success

msg
string
필수

Return information, describes the request result

data
object
필수

Specific response data

exec_time
number
필수

Time spent by the server to process this request