프로젝트 생성
대부분의 경우client.projects.create()를 사용하세요 — 업로드를 자동으로 처리해줍니다.
Source 타입
- path
- bytes
- url
디스크에서 파일을 읽습니다.
기타 필드
string
프로젝트 제목입니다. 기본값은 소스 파일명입니다.
SplitModel
stem 분리 모델입니다. 기본값은
mdx23c입니다. Split model
reference를 참고하세요.string
생성 시 재사용 가능한 프리셋을 적용합니다.
LyricsSource
가사 동기화를 구성합니다. 아래를 참고하세요.
Lyrics source
client.projects.create(input, options?)
이미 업로드된 inputFileId가 있는 경우, client.projects.create()는 저수준 inputFile source도 지원합니다.
client.projects.quote(input, options?)
프로젝트를 생성하지 않고, 프로젝트 생성에 필요한 크레딧을 견적냅니다.
client.projects.quote(...)는 client.projects.create(...)와 동일한 source 형태( URL maxVideoQuality 포함)를 받습니다. 미디어 길이를 이미 알고 있고, 견적을 위해 파일을 업로드하고 싶지 않다면 저수준 REST 형태를 전달하세요:
client.uploads.create(body, options?)
업로드 슬롯을 할당하고 서명된 URL을 가져옵니다.
client.uploads.upload(uploadUrl, body, options?)
서명된 URL로 파일 바이트를 PUT합니다.
FetchBody
required
fetch와 호환되는 어떤 body든 가능합니다: Blob, File, ArrayBuffer, Uint8Array,
ReadableStream, 또는 string.UPLOAD_FAILED의 YoukaRequestError를 throw합니다.
client.projects.get(projectId, options?)
stem, 가사, 내보내기를 포함한 전체 프로젝트 상태를 가져옵니다.
client.projects.update(projectId, body, options?)
프로젝트 메타데이터를 패치합니다.
title 또는 artists 중 최소 하나를 전달하세요.
client.projects.list(options?)
인증된 계정이 소유한 모든 프로젝트를 목록으로 가져옵니다.
getProject보다 더 간소한 형태입니다).
client.projects.delete(projectId, options?)
프로젝트와 연관된 모든 stem, 가사, 내보내기를 삭제합니다.
다음 단계
- Stems — stem 분리를 다시 실행
- Lyrics sync — 가사를 다시 동기화
- Exports — 완성된 비디오 렌더링
- Tasks —
client.projects.wait로 프로젝트 operation을 대기
