Muse Video 동영상 생성
텍스트 프롬프트 또는 최대 9장의 참조 이미지로 720p 음성 포함 MP4 동영상 생성, 길이 2-10초
중국 본토 사용자 참고: 중국 본토에서는 https://toapis.cn을 API 엔드포인트(Base URL)로 사용하세요. 문서 예시의 https://toapis.com을 https://toapis.cn으로 교체하세요.
- 모델명:
muse-video - 텍스트-비디오와 참조 이미지-비디오는
image_urls전달 여부로 자동 구분되며, 모드 파라미터가 없습니다 - 출력은 음성 포함
720pMP4이며, 길이2-10초, 초당 과금 - 비동기 API로 통일된
generation.task를 반환합니다
첫/마지막 프레임 제어, 참조 동영상/오디오, quality, seed, 720p 초과 해상도는 지원되지 않습니다. audio는 끌 수 없으며 생성되는 동영상에는 항상 소리가 포함됩니다.
인증
Authorizationstring헤더필수모든 엔드포인트는 Bearer Token 인증이 필요합니다.
Authorization: Bearer YOUR_API_KEY요청 파라미터
modelstring본문필수기본값: muse-video동영상 생성 모델명. muse-video로 고정.
promptstring본문필수동영상 설명. 주체, 동작, 장면, 카메라 움직임, 스타일, 소리 요구사항을 구체적으로 작성하세요. 중국어와 영어 프롬프트를 지원합니다.
durationinteger본문기본값: 10동영상 길이(초). 2부터 10까지의 정수.
resolutionstring본문기본값: 720p출력 해상도. 720p만 지원되며 다른 값은 업스트림에서 거부됩니다.
aspect_ratiostring본문기본값: 16:9출력 화면 비율.
선택지: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.
참조 이미지 요청에서 생략하면 참조 이미지 비율을 따릅니다.
image_urlsstring[]본문참조 이미지 URL 배열, 최대 9장. URL, Data URI, base64 입력을 지원하며 합계 크기는 11 MiB 이하여야 합니다.
- 생략하거나 빈 배열이면 텍스트-비디오
- 한 장 이상이면 참조 이미지-비디오
ninteger본문기본값: 1생성할 동영상 수. 1만 지원됩니다.
client_business_idstring본문주문 번호나 거래 ID 같은 비즈니스 식별자. 동일한 상태 엔드포인트에서 이 값으로 작업을 조회할 수 있습니다.
callback_urlstring본문ToAPIs 작업 완료 콜백 URL. 먼저 Token URL과 서명 시크릿을 설정하세요. 자세한 내용은 작업 Webhook을 참조하세요.
metadataobject본문업스트림 모델로 전달되는 모델별 옵션(선택).
필드 설명
nsfw_checkboolean본문생성 전 요청에 대한 콘텐츠 검열을 실행합니다.
languagestring본문업스트림 webhook 오류 메시지의 언어.
입력 모드
| 모드 | 요청 방법 | aspect_ratio |
|---|---|---|
| 텍스트-비디오 | prompt만 | 비율 지정, 기본값 16:9 |
| 참조 이미지-비디오 | prompt + image_urls(1-9장) | 비율 지정 또는 생략하여 참조 이미지 따르기 |
요청 예시
텍스트-비디오
{
"model": "muse-video",
"prompt": "여행자가 네온 기차역에 들어서고 카메라가 앞으로 추적하며 환경음만 들림",
"duration": 10,
"resolution": "720p",
"aspect_ratio": "16:9"
}참조 이미지-비디오
{
"model": "muse-video",
"prompt": "이미지 속 병이 스튜디오 조명 아래에서 천천히 회전하며 형태와 라벨을 유지",
"duration": 6,
"aspect_ratio": "9:16",
"image_urls": [
"https://example.com/bottle-front.png",
"https://example.com/bottle-side.png"
]
}응답
idstring작업 상태 조회에 사용하는 ToAPIs 작업 ID.
objectstring객체 유형, 항상 generation.task.
modelstring이 요청에 사용된 모델, 항상 muse-video.
statusstring작업 상태: queued, in_progress, completed, failed 중 하나.
progressinteger작업 진행률(0부터 100까지의 백분율).
created_atinteger작업 생성 시각(Unix 초 타임스탬프).
제출 후 동영상 작업 상태 조회를 폴링하세요. 완료되면 동영상 URL이 result.data[0].url에 있습니다.
요청 예시
curl --request POST \
--url https://toapis.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "muse-video",
"prompt": "석양의 해변에 파도가 부드럽게 밀려오고 카메라가 천천히 패닝하며 자연스러운 파도 소리",
"duration": 10,
"resolution": "720p",
"aspect_ratio": "16:9"
}'curl --request POST \
--url https://toapis.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "muse-video",
"prompt": "이미지 속 제품이 스튜디오 조명 아래에서 천천히 회전",
"duration": 6,
"aspect_ratio": "9:16",
"image_urls": [
"https://example.com/front.png",
"https://example.com/side.png"
]
}'import requests
response = requests.post(
"https://toapis.com/v1/videos/generations",
headers={
"Authorization": "Bearer your-ToAPIs-key",
"Content-Type": "application/json",
},
json={
"model": "muse-video",
"prompt": "이미지 속 제품이 스튜디오 조명 아래에서 천천히 회전",
"duration": 6,
"aspect_ratio": "9:16",
"image_urls": [
"https://example.com/front.png",
"https://example.com/side.png",
],
},
)
print(response.json())const response = await fetch("https://toapis.com/v1/videos/generations", {
method: "POST",
headers: {
Authorization: "Bearer your-ToAPIs-key",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "muse-video",
prompt: "이미지 속 제품이 스튜디오 조명 아래에서 천천히 회전",
duration: 6,
aspect_ratio: "9:16",
image_urls: [
"https://example.com/front.png",
"https://example.com/side.png"
]
})
});
console.log(await response.json());응답 예시
{
"id": "vid_01M840FXWTM23BKN1JR68C5XEM",
"object": "generation.task",
"model": "muse-video",
"status": "queued",
"progress": 0,
"created_at": 1795431069
}