Docs / video / MiniMax H3 Reference to Video
MiniMax H3 Reference to Video online
Guide MiniMax H3 with reference images, audio, or a source clip to keep subjects and style consistent.
Rp Mulai Rp5.176 / video
minimax-h3/reference-to-video model id
1 · Create a task
Kirim permintaan untuk membuat tugas generasi video. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.
curl -X POST https://getrun.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3/reference-to-video",
"input": {
"prompt": "Reference the camera movement from Video 1, have the character in Image 2 sing, with the vocals matching Audio 3",
"resolution": "2K",
"aspect_ratio": "adaptive"
}
}'const res = await fetch('https://getrun.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "minimax-h3/reference-to-video",
"input": {
"prompt": "Reference the camera movement from Video 1, have the character in Image 2 sing, with the vocals matching Audio 3",
"resolution": "2K",
"aspect_ratio": "adaptive"
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://getrun.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "minimax-h3/reference-to-video",
"input": {
"prompt": "Reference the camera movement from Video 1, have the character in Image 2 sing, with the vocals matching Audio 3",
"resolution": "2K",
"aspect_ratio": "adaptive"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
prompt |
string | Yes | Video description prompt. (max 7000 chars) | Reference the camera movement from Video 1, ha |
duration |
integer | Yes | Video duration in seconds. Available values: 4-15. (min 4, max 15) | 15 |
resolution |
string | No | Video resolution. Opsi: 768P 2K |
2K |
aspect_ratio |
string | No | The ratio of output video. Opsi: adaptive 21:9 16:9 4:3 1:1 3:4 9:16 |
adaptive |
reference_audio_urls |
array | No | reference audios. (array of file URLs) | — |
reference_image_urls |
array | No | Gambar referensi, maksimal 5. (array of file URLs) | — |
reference_video_urls |
array | No | reference videos. (array of file URLs) | — |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "minimax-h3/reference-to-video",
"price": {
"currency": "IDR",
"estimated": 5176,
"reserved": 5176,
"final": 5176
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.mp4"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
video/mp4, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
