Langsung ke konten utama
POST
Buat video MiniMax H3 atau H3-Max dari teks, media referensi, atau frame pertama dan terakhir. Simpan id yang dikembalikan untuk memeriksa tugas dan mengunduh video yang telah selesai. POST /v1/videos menggunakan multipart/form-data. Kirim kontrol sebagai field formulir dan ulangi setiap field referensi sekali untuk setiap input media.

Pilih model

Atur model ke salah satu ID model berikut. Pilih ukuran permintaan dari tabel model yang sesuai di Atur durasi dan ukuran.

Pilih mode input

Kedua model menggunakan field di bawah ini. Atur model ke ID model yang Anda pilih. Contoh permintaan H3-Max mencakup teks ke video pada kedua tingkat resolusi, gambar referensi, referensi gabungan gambar/video/audio, serta frame pertama dan terakhir.

Gunakan gambar referensi

Kirim gambar referensi melalui input_reference sebagai URL HTTPS yang dapat diakses publik atau file yang diunggah. Untuk beberapa gambar, ulangi field sesuai urutan gambar, dengan satu URL atau file per field. Gunakan semua URL atau semua file dalam field ini. Kirim setiap URL secara terpisah, bukan menggabungkan URL menjadi nilai yang dipisahkan koma. Anda dapat mengirim hingga sembilan gambar referensi PNG atau JPEG, baik menggunakan URL maupun file yang diunggah. Pertahankan ukuran setiap gambar yang diunggah pada atau di bawah 20 MiB. Dalam Prompt, jelaskan detail visual yang harus dipertahankan oleh video yang dihasilkan.

Gunakan video dan audio referensi

Kirim reference_videos dan reference_audios sebagai nilai teks multipart atau file yang diunggah, menggunakan format di bawah ini. Ulangi setiap field satu kali untuk setiap input, dengan hanya menggunakan nilai teks atau hanya file dalam field tersebut. Jangan gabungkan input menjadi nilai yang dipisahkan koma. Field yang berbeda dapat menggunakan jenis input yang berbeda, seperti URL gambar dengan file audio yang diunggah. Untuk menggabungkan referensi gambar, video, dan audio, kirim input_reference, reference_videos, dan reference_audios dalam permintaan yang sama. Kirim total maksimal 12 input referensi, termasuk tidak lebih dari tiga video dan tiga klip audio. Setiap klip video atau audio harus berdurasi 2–15 detik. Total durasi video dan total durasi audio masing-masing harus 15 detik atau kurang. Pasangkan audio referensi dengan setidaknya satu gambar melalui input_reference. Jelaskan gerakan, waktu, atau suara yang harus diikuti oleh video yang dihasilkan. Jaga agar setiap MP4 yang diunggah berukuran 50 MiB atau kurang dan setiap MP3 yang diunggah berukuran 15 MiB atau kurang. Satu MiB adalah 1024 × 1024 byte. Contoh permintaan di bagian atas halaman ini menampilkan URL MP4, URI data MP4, dan URL MP3 yang dipasangkan dengan gambar.

Unggah video referensi

Unggah file MP4 untuk memandu struktur pengambilan gambar dan gerakan:

Unggah audio referensi dengan gambar

Pasangkan URL gambar referensi dengan file MP3 yang diunggah:

Tetapkan frame pertama dan terakhir

Kirim first_frame untuk gambar pembuka dan, secara opsional, satu last_frame untuk gambar penutup. Setiap field menerima satu URL PNG HTTPS langsung yang dapat diakses secara publik atau satu file PNG yang diunggah. Jaga agar setiap PNG yang diunggah berukuran 20 MiB atau kurang (20 × 1024 × 1024 byte). Jangan gabungkan field frame dengan field gambar, video, atau audio referensi. Gunakan permintaan terpisah untuk pembuatan berbasis frame. Dengan input frame, size memilih tingkat resolusi. Layanan dapat menormalkan dimensi output akhir berdasarkan frame yang diberikan. Tetap kirim size dalam bentuk WxH.
Simpan id yang dikembalikan. Poll task hingga status bernilai completed atau failed. Ketika task selesai, unduh konten video.

Atur durasi dan ukuran

Untuk kedua model, tetapkan seconds ke bilangan bulat dari 5 hingga 15. Defaultnya adalah 5 detik. Pilih resolusi dan rasio aspek dari tabel untuk model Anda, lalu kirim nilai Ukuran permintaan yang sesuai sebagai size dalam format WxH. Untuk permintaan teks dan media referensi, size memilih tingkat resolusi dan rasio aspek framing. Layanan dapat menormalkan dimensi output akhir berdasarkan ukuran yang diminta dan media referensi yang disediakan.

Ukuran untuk minimax-h3

Gunakan ukuran permintaan berikut dengan model=minimax-h3:

Ukuran untuk minimax-h3-max

Gunakan ukuran permintaan berikut dengan model=minimax-h3-max:

Alur tugas

1

Buat tugas

Kirim permintaan formulir multipart dan simpan id yang dikembalikan.
2

Polling tugas

Panggil Mengambil video MiniMax H3 hingga status bernilai completed atau failed.
3

Unduh hasilnya

Saat tugas berstatus completed, panggil Mengunduh konten video MiniMax H3 untuk menyimpan file MP4.

Otorisasi

Authorization
string
header
wajib

Bearer authentication. Use your CometAPI API key.

Body

multipart/form-data
model
enum<string>
default:minimax-h3
wajib

Model ID for the video task. Use minimax-h3 for 768P or 2K, or minimax-h3-max for 480P or 768P. Choose size from the matching model table.

Opsi yang tersedia:
minimax-h3,
minimax-h3-max
prompt
string
default:A paper boat glides across a still pond, daylight, locked camera, no text.
wajib

Text that describes the scene, motion, camera behavior, and visual details that the video should preserve.

Minimum string length: 1
seconds
integer
default:5

Requested clip duration in whole seconds. Use an integer from 5 through 15. The default is 5.

Rentang yang diperlukan: 5 <= x <= 15
size
string

Requested size in WxH form. For text and reference-media requests, size selects the resolution tier and framing aspect ratio. With first or last frames, size selects the resolution tier. Use the matching model table: minimax-h3 uses 768P or 2K; minimax-h3-max uses 480P or 768P. For example, use 1344x768 for H3 at 768P, 864x480 for H3-Max at 480P, or 1360x768 for H3-Max at 768P. The service can normalize the final output dimensions.

Pattern: ^[1-9][0-9]*x[1-9][0-9]*$
Contoh:

"1536x672"

"1344x768"

"1024x768"

"768x768"

"768x1024"

"768x1344"

"2912x1280"

"2544x1456"

"1920x1440"

"1440x1440"

"1440x1920"

"1440x2560"

"1120x480"

"864x480"

"640x480"

"480x480"

"480x640"

"480x864"

"1792x768"

"1360x768"

"768x1360"

input_reference

PNG or JPEG reference images. Repeat input_reference with one publicly accessible HTTPS image URL or uploaded image file per field. Send up to nine reference images, whether you use URLs or uploaded files. Use all URLs or all files within this field. Do not combine URLs into a comma-separated value. Keep each uploaded image at or below 20 MiB. Do not combine this field with first_frame or last_frame. Across images, videos, and audio, send at most 12 reference inputs. Each reference video or audio clip must be 2–15 seconds; keep the combined video duration and combined audio duration at or below 15 seconds each. Submit images in the order you want to reference them in the prompt.

Pattern: ^https://
reference_videos
(string<uri> | file)[]

Reference video inputs. Repeat reference_videos with a direct publicly accessible HTTPS MP4 URL or an uploaded MP4 file. Use only text values or only files within this field. Each uploaded file can be up to 50 MiB. Send no more than three video inputs. A complete data:video/mp4;base64,... URI is also accepted as a text value. Use MP4 with H.264 video; an AAC audio track is optional. Do not combine this field with first_frame or last_frame. Across images, videos, and audio, send at most 12 reference inputs. Each reference video or audio clip must be 2–15 seconds; keep the combined video duration and combined audio duration at or below 15 seconds each.

Required array length: 1 - 3 elements
Pattern: ^(https://|data:video/mp4;base64,)
Contoh:

"https://your-media-host/reference.mp4"

reference_audios
(string<uri> | file)[]

Reference audio inputs. Repeat reference_audios with a direct publicly accessible HTTPS MP3 URL or an uploaded MP3 file. Use only text values or only files within this field. Each uploaded file can be up to 15 MiB. Send no more than three audio inputs. Pair reference audio with at least one reference image. Do not combine this field with first_frame or last_frame. Across images, videos, and audio, send at most 12 reference inputs. Each reference video or audio clip must be 2–15 seconds; keep the combined video duration and combined audio duration at or below 15 seconds each.

Required array length: 1 - 3 elements
Pattern: ^https://
Contoh:

"https://your-media-host/reference.mp3"

first_frame
wajib if last_frame is set

Opening frame input as one direct publicly accessible HTTPS PNG URL or one uploaded PNG file at or below 20 MiB (20 x 1024 x 1024 bytes). Do not combine frame fields with reference media fields.

Pattern: ^https://
Contoh:

"https://your-image-host/first-frame.png"

last_frame

Optional ending frame input, used with first_frame, as one direct publicly accessible HTTPS PNG URL or one uploaded PNG file at or below 20 MiB (20 x 1024 x 1024 bytes). Do not combine frame fields with reference media fields.

Pattern: ^https://
Contoh:

"https://your-image-host/last-frame.png"

Respons

200 - application/json

Task created. Store the returned id and use it in retrieve and content requests.

id
string
wajib

Task ID. Use this value as task_id in retrieve and content requests.

Contoh:

"<task_id>"

object
string
wajib

Object type for the asynchronous video task.

Allowed value: "video"
model
enum<string>
wajib

Model ID that the task uses.

Opsi yang tersedia:
minimax-h3,
minimax-h3-max
status
enum<string>
wajib

Task lifecycle status. Poll until the value is completed or failed.

Opsi yang tersedia:
queued,
in_progress,
completed,
failed
progress
integer
wajib

Task progress as a coarse percentage.

Rentang yang diperlukan: 0 <= x <= 100
created_at
integer<int64>
wajib

Task creation time as a Unix timestamp in seconds.

task_id
string

Compatibility alias for id. This field can be omitted from retrieve responses.

Contoh:

"<task_id>"

completed_at
integer<int64>

Unix timestamp returned by the platform. Use status, not this field, to decide when polling can stop.

expires_at
integer<int64>

Result expiration time as a Unix timestamp in seconds when the task provides one.

video_url
string<uri>

Video delivery URL. This field appears on completed tasks.

Contoh:

"https://your-media-host/result.mp4"

error
object

Failure details. This field appears when the task fails.

Terakhir diubah pada 14 September 2026