Muse Video Generator API documentation
Generate videos with Muse Video Generator in VidMage. Supports both text and image input modes. Synchronized audio is always included; no sound parameter is needed.
Endpoints
| Contract item | Value |
|---|---|
| Capability | muse-video-generator |
| Submit | POST https://vidmage.ai/api/v1/muse-video-generator/submit |
| Query | POST https://vidmage.ai/api/v1/muse-video-generator/query |
| Task identifier | taskId |
| Result field | videoUrl |
Authenticate with Authorization: Bearer YOUR_API_KEY. Save the task identifier and query the same capability. Use a stable Idempotency-Key for submission retries.
Product guide: AI Video API
Parameters and input rules
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
mode | string | No | "text-to-video" | Explicit operation selector. Omit to infer from the supplied inputs. Values: "text-to-video", "image-to-video" |
prompt | string | Yes | Not specified | Text prompt describing the video to generate (max 4000 chars). Minimum characters: 1Maximum characters: 4000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image-to-video mode. |
imageUrls | string[] | No | Not specified | Ordered input image URLs for reference-to-video mode. The prompt can reference them by their one-based order. Up to 11 MB per file. Combined original size up to 11 MB. Minimum items: 1Maximum items: 9 |
duration | string | No | "10" | Video duration in seconds. Values: "10" |
aspectRatio | string | No | "16:9" | Output aspect ratio. Values: "16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3" |
resolution | string | No | "720p" | Output resolution tier. Values: "720p" |
text to video
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Required; 1–4000 characters. |
duration | JSON string. Values: "10". Default: 10. |
aspectRatio | Values: "16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3". Default: 16:9. |
resolution | Values: "720p". Default: 720p. |
image to video
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Required; 1–4000 characters. |
duration | JSON string. Values: "10". Default: 10. |
aspectRatio | Values: "16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3". Default: 16:9. |
resolution | Values: "720p". Default: 720p. |
imageUrls | Up to 9 files. Maximum 11 MB per file. Formats: jpg, jpeg, png, webp. |
| References | At least one reference input is required. |
Example request
{
"prompt": "A smooth product shot with gentle camera motion and synchronized natural sound",
"duration": "10",
"aspectRatio": "16:9",
"resolution": "720p"
}# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/muse-video-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"prompt":"A smooth product shot with gentle camera motion and synchronized natural sound","duration":"10","aspectRatio":"16:9","resolution":"720p"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Task results and recovery
URL of the generated video. Read videoUrl from the completed query response. Preserve taskId while the task is running.
curl -X POST "https://vidmage.ai/api/v1/muse-video-generator/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "videoUrl": "https://..." } }Submission and task queries report the available task and usage information. A timeout is not a confirmed failure. Recover the existing task instead of resubmitting.
For face selection and error recovery, follow Task lifecycle. MCP uses the normalized taskId argument in get_task_result, including capabilities whose REST identifier is requestId.
Credits
| Component / option | Rate | Minimum |
|---|---|---|
| 720p | 80 credits / generation | — |
Base charge is per generation at the selected resolution.
Use the Playground or the MCP credit estimator for your exact inputs. Credits and billing.
