Muse Video Generation
Generate a 720p MP4 video with sound from a text prompt or up to nine reference images, 2-10 seconds long
Note for users in mainland China: Please use https://toapis.cn as the API endpoint (Base URL). Replace https://toapis.com with https://toapis.cn in the examples in this document.
- Model name:
muse-video - Text-to-video and reference-image-to-video are selected automatically by whether
image_urlsis present; there is no mode parameter - Output is one MP4 video with sound at
720p,2-10seconds long, billed per second - Async API that returns a unified
generation.task
First/last-frame control, reference video/audio, quality, seed, and resolutions above 720p are not supported. audio cannot be turned off; the generated video always contains sound.
Authentication
AuthorizationstringheaderrequiredAll endpoints require Bearer Token authentication.
Authorization: Bearer YOUR_API_KEYRequest Parameters
modelstringbodyrequireddefault: muse-videoVideo generation model name, fixed to muse-video.
promptstringbodyrequiredVideo description. Describe the subject, action, scene, camera movement, style, and sound requirements. Chinese and English prompts are supported.
durationintegerbodydefault: 10Video duration in seconds, integer 2 through 10.
resolutionstringbodydefault: 720pOutput resolution. Only 720p is supported; other values are rejected upstream.
aspect_ratiostringbodydefault: 16:9Output aspect ratio.
Options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.
Omit it for reference-image requests to follow the reference image ratio.
image_urlsstring[]bodyReference image URLs, up to 9 images. URL, Data URI, and base64 inputs are supported; the images combined must not exceed 11 MiB.
- Omit or pass an empty array for text-to-video
- Pass one or more images for reference-image-to-video
nintegerbodydefault: 1Number of videos to generate. Only 1 is supported.
client_business_idstringbodyYour business identifier, such as an order or transaction ID. You can query the task using this value through the same status endpoint.
callback_urlstringbodyToAPIs task-completion callback URL. Configure the Token URL and signing secret first; see Task Webhooks.
metadataobjectbodyModel-specific options forwarded to the upstream model (optional).
Field Description
nsfw_checkbooleanbodyRuns content moderation on the request before generation.
languagestringbodyLanguage for upstream webhook error messages.
Input Modes
| Mode | How to request | aspect_ratio |
|---|---|---|
| Text-to-video | prompt only | Specific ratio, defaults to 16:9 |
| Reference-image-to-video | prompt + image_urls (1-9 images) | Specific ratio, or omit to follow the reference |
Request Examples
Text-to-video
{
"model": "muse-video",
"prompt": "A traveler enters a neon train station, the camera tracks forward, ambient sound only",
"duration": 10,
"resolution": "720p",
"aspect_ratio": "16:9"
}Reference images
{
"model": "muse-video",
"prompt": "The bottle from the images slowly rotates under moody studio lighting, keeping its shape and label consistent",
"duration": 6,
"aspect_ratio": "9:16",
"image_urls": [
"https://example.com/bottle-front.png",
"https://example.com/bottle-side.png"
]
}Response
idstringToAPIs task ID used to query task status.
objectstringObject type, always generation.task.
modelstringModel used for this request, always muse-video.
statusstringTask status: queued, in_progress, completed, or failed.
progressintegerTask progress percentage from 0 to 100.
created_atintegerTask creation time as a Unix timestamp in seconds.
After submission, poll Get Video Task Status. When completed, the video URL is available at result.data[0].url.
requestExample
curl --request POST \
--url https://toapis.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "muse-video",
"prompt": "Waves gently wash over a beach at sunset, the camera pans slowly, natural ocean sound",
"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": "The product from the images slowly rotates under studio lighting",
"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": "The product from the images slowly rotates under studio lighting",
"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: "The product from the images slowly rotates under studio lighting",
duration: 6,
aspect_ratio: "9:16",
image_urls: [
{ url: "https://example.com/front.png" },
{ url: "https://example.com/side.png" }
]
})
});
console.log(await response.json());responseExample
{
"id": "vid_01M840FXWTM23BKN1JR68C5XEM",
"object": "generation.task",
"model": "muse-video",
"status": "queued",
"progress": 0,
"created_at": 1795431069
}