All models
MiniMax
Video
Available
Minimax H3 Reference-To-Video
Output videos include a stereo audio track generated with the video; dialogue, music and sound effects can be described in the prompt. Audio cannot be turned off.
Image to Video
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | Video generation prompt, length is between 1 and 7000 characters. max length 7000 |
reference_image_urls |
array<string> | Array of reference image URLs. Supports up to 9 images. Publicly accessible HTTP(S) URL; supported image formats include JPG, JPEG, PNG, WEBP, HEIC, and HEIF; a single image size cannot exceed 30 MB; the side length of the image must be between 256 and 5760 pixels, and the aspect ratio must be between 0.4 and 2.5. Provide at least one of reference_image_urls or reference_video_urls. |
reference_video_urls |
array<string> | Array of reference video URLs. Supports up to 3 videos. Supports MP4, MOV; video encoding supports H.264, H.265; a single file size cannot exceed 50 MB; the duration of a single segment is 2 to 15 seconds, and the total duration of all reference videos cannot exceed 15 seconds; the video side length must be between 256 and 5760 pixels, the aspect ratio must be between 0.4 and 2.5, and the frame rate must be between 23.976 and 60. Provide at least one of reference_image_urls or reference_video_ur |
reference_audio_urls |
array<string> | Array of reference audio URLs. Supports up to 3 audios. Supports WAV, MP3; a single file size cannot exceed 15 MB; the duration of a single segment is 2 to 15 seconds, and the total duration of all reference audios cannot exceed 15 seconds. reference_audio cannot be used alone, it must be accompanied by reference_image or reference_video. |
aspect_ratio |
string | Video aspect ratio. The default is adaptive, or a specific ratio can be specified. one of: "adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16" · default "adaptive" |
durationRequired |
integer | The duration of the generated video, supporting integer values from 4 to 15 seconds. one of: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 · min 4 · max 15 · default 6 |
resolution |
string | Video resolution. one of: "768P", "2K" · default "2K" |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax-h3-reference-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "adaptive",
"duration": 6,
"resolution": "2K"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "minimax-h3-reference-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "adaptive",
"duration": 6,
"resolution": "2K",
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "minimax-h3-reference-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "adaptive",
"duration": 6,
"resolution": "2K"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "minimax-h3-reference-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "adaptive",
"duration": 6,
"resolution": "2K"
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "minimax-h3-reference-to-video",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}