Skip to main content
POST
Video Edit: create an edit task from video + reference images + instruction
오른쪽의 Playground에서 직접 디버그할 수 있습니다. AuthorizationBearer sk-your-api-key를 입력하고, model / input.media / parameters를 설정한 뒤 요청을 전송하십시오. 성공적으로 제출하면 task_id가 반환됩니다. 폴링 및 다운로드는 아래를 참고하십시오.
이 페이지는 happyhorse-1.0-video-edit(동영상 편집)의 생성 엔드포인트를 다룹니다. 동영상 1개 + 최대 5장의 참조 이미지 + 자연어 지시를 제공하여 동영상 요소를 국소적으로 또는 전역적으로 편집합니다. 모델 이름에는 하이픈이 있습니다(video-edit). 전체 비동기 흐름은 HappyHorse 개요를 참고하십시오.
  • input.media에는 video(편집 중인 동영상)과 최소 1개의 reference_image(5개 이하)이 모두 포함되어야 합니다.
  • 모델 이름은 happyhorse-1.0-video-edit(하이픈이 있습니다)이며, Wan의 wan2.7-videoedit(하이픈 없음)과 다르므로 헷갈리지 마십시오.
  • 생성 요청은 /wan/api/v1/...X-DashScope-Async: enable와 함께 전송되며, /v1/videos는 사용하지 마십시오.

코드 예제

매개변수 및 미디어 빠른 참조

media[]

비디오 편집의 출력 길이는 입력 비디오를 따르며 duration에 의해 결정되지 않으므로, 이 기능은 일반적으로 duration를 전달하지 않습니다.

응답 형식

제출 후, GET /v1/tasks/{task_id}을 폴링하여 completed가 될 때까지 기다린 다음, result_url에서 mp4를 다운로드하십시오(Authorization 헤더 없이, 24시간 후 만료됩니다). 전체 폴링 루프는 HappyHorse 개요 · 비동기 호출 흐름에서 확인하십시오.

인증

Authorization
string
header
필수

The API Key obtained from the APIYI Console

헤더

X-DashScope-Async
enum<string>
기본값:enable
필수

Async processing switch, must be set to enable

사용 가능한 옵션:
enable

본문

application/json
model
enum<string>
기본값:happyhorse-1.0-video-edit
필수

Model ID, fixed to happyhorse-1.0-video-edit (has a hyphen)

사용 가능한 옵션:
happyhorse-1.0-video-edit
input
object
필수
parameters
object

응답

Task submitted, returns task_id and PENDING status

output
object
request_id
string

Unique request identifier

예시:

"..."