ToAPIsToAPIs
Muse Video

Muse Video Generation

Generate a 720p MP4 video with sound from a text prompt or up to nine reference images, 2-10 seconds long

POST
/v1/videos/generations

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_urls is present; there is no mode parameter
  • Output is one MP4 video with sound at 720p, 2-10 seconds 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

Authorizationstringheaderrequired

All endpoints require Bearer Token authentication.

Authorization: Bearer YOUR_API_KEY

Request Parameters

modelstringbodyrequireddefault: muse-video

Video generation model name, fixed to muse-video.

promptstringbodyrequired

Video description. Describe the subject, action, scene, camera movement, style, and sound requirements. Chinese and English prompts are supported.

durationintegerbodydefault: 10

Video duration in seconds, integer 2 through 10.

resolutionstringbodydefault: 720p

Output resolution. Only 720p is supported; other values are rejected upstream.

aspect_ratiostringbodydefault: 16:9

Output 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[]body

Reference 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: 1

Number of videos to generate. Only 1 is supported.

client_business_idstringbody

Your business identifier, such as an order or transaction ID. You can query the task using this value through the same status endpoint.

callback_urlstringbody

ToAPIs task-completion callback URL. Configure the Token URL and signing secret first; see Task Webhooks.

metadataobjectbody

Model-specific options forwarded to the upstream model (optional).

Field Description
nsfw_checkbooleanbody

Runs content moderation on the request before generation.

languagestringbody

Language for upstream webhook error messages.

Input Modes

ModeHow to requestaspect_ratio
Text-to-videoprompt onlySpecific ratio, defaults to 16:9
Reference-image-to-videoprompt + 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

idstring

ToAPIs task ID used to query task status.

objectstring

Object type, always generation.task.

modelstring

Model used for this request, always muse-video.

statusstring

Task status: queued, in_progress, completed, or failed.

progressinteger

Task progress percentage from 0 to 100.

created_atinteger

Task 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
}