MiniMax H3 videosu oluşturma
CometAPI aracılığıyla metin, referans medya ya da ilk ve son kareleri kullanarak bir MiniMax H3 veya H3-Max video görevi oluşturun
id değerini saklayın.
POST /v1/videos multipart/form-data kullanır. Denetimleri form alanları olarak gönderin ve her medya girdisi için her referans alanını bir kez yineleyin.
Model seçin
model değerini aşağıdaki model kimliklerinden biri olarak ayarlayın. Eşleşen model tablosundan bir istek boyutu seçin: Süreyi ve boyutu ayarlama.
Girdi modu seçin
Her iki model de aşağıdaki alanları kullanır.model değerini seçtiğiniz model kimliği olarak ayarlayın.
Referans görseller kullanın
Referans görselleri, herkese açık HTTPS URL’leri veya yüklenen dosyalar olarakinput_reference aracılığıyla gönderin. Birden fazla görsel için alanı görsel sırasına göre yineleyin ve her alan için bir URL veya dosya kullanın.
Bu alan içinde tüm URL’leri veya tüm dosyaları kullanın. URL’leri virgülle ayrılmış tek bir değerde birleştirmek yerine her URL’yi ayrı ayrı gönderin.
URL’leri veya yüklenen dosyaları kullanmanıza bakılmaksızın en fazla dokuz PNG veya JPEG referans görseli gönderebilirsiniz. Yüklenen her görseli 20 MiB veya altında tutun.
Prompt içinde, oluşturulan videonun koruması gereken görsel ayrıntıları açıklayın.
Referans video ve ses kullanma
Aşağıdaki biçimleri kullanarakreference_videos ve reference_audios değerlerini çok parçalı metin değerleri veya yüklenmiş dosyalar olarak gönderin.
Her alanı her girdi için bir kez tekrarlayın; o alan içinde yalnızca metin değerleri ya da yalnızca dosyalar kullanın. Girdileri virgülle ayrılmış tek bir değerde birleştirmeyin.
Farklı alanlarda, yüklenmiş bir ses dosyasıyla birlikte bir görüntü URL’si gibi farklı girdi türleri kullanılabilir.
Görüntü, video ve ses referanslarını birleştirmek için input_reference, reference_videos ve reference_audios değerlerini aynı istekte gönderin.
input_reference aracılığıyla en az bir görüntüyle eşleştirin.
Oluşturulan videonun izlemesi gereken hareketi, zamanlamayı veya sesi açıklayın.
Yüklenen her MP4 dosyasını 50 MiB veya altında, her MP3 dosyasını ise 15 MiB veya altında tutun. Bir MiB, 1024 × 1024 bayttır.
Bu sayfanın üst kısmındaki istek örnekleri, bir görüntüyle eşleştirilmiş MP4 URL’lerini, MP4 veri URI’lerini ve MP3 URL’lerini gösterir.
Referans video yükleme
Çekim yapısını ve hareketi yönlendirmek için bir MP4 dosyası yükleyin:Bir görüntüyle referans ses yükleme
Bir referans görüntüsü URL’sini yüklenmiş bir MP3 dosyasıyla eşleştirin:İlk ve son kareleri ayarlama
Açılış görüntüsü içinfirst_frame ve isteğe bağlı olarak bitiş görüntüsü için bir last_frame gönderin.
Her alan, doğrudan, herkese açık erişilebilir bir HTTPS PNG URL’sini veya yüklenmiş bir PNG dosyasını kabul eder. Yüklenen her PNG dosyasını 20 MiB veya altında tutun (20 × 1024 × 1024 bayt).
Kare alanlarını referans görüntü, video veya ses alanlarıyla birleştirmeyin. Kare tabanlı oluşturma için ayrı bir istek kullanın.
Kare girdileriyle, size çözünürlük katmanını seçer. Hizmet, sağlanan karelere göre nihai çıktı boyutlarını normalleştirebilir.
size değerini WxH biçiminde göndermeye devam edin.
id değerini saklayın. status değeri completed veya
failed. Görev tamamlandığında video içeriğini indirin.Süreyi ve boyutu ayarlayın
Her iki model için deseconds değerini 5 ile 15 arasında bir tam sayı olarak ayarlayın. Varsayılan değer 5 saniyedir.
Modeliniz için tablodan bir çözünürlük ve en-boy oranı seçin, ardından karşılık gelen İstek boyutu değerini size içinde WxH biçiminde gönderin.
Metin ve referans medya isteklerinde size, çözünürlük katmanını ve kadraj en-boy oranını seçer.
Hizmet, istenen boyuta ve sağlanan referans medyaya göre nihai çıktı boyutlarını normalize edebilir.
minimax-h3 için boyutlar
Bu istek boyutlarını model=minimax-h3 ile kullanın:
minimax-h3-max için boyutlar
Bu istek boyutlarını model=minimax-h3-max ile kullanın:
Görev akışı
Görevi oluşturun
id değerini saklayın.Görevi sorgulayın
status değeri completed veya failed olana kadar yapın.Sonucu indirin
completed olduğunda, MiniMax H3 video içeriğini indirme çağrısını MP4 dosyasını kaydetmek için yapın.Yetkilendirmeler
Bearer authentication. Use your CometAPI API key.
Gövde
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.
minimax-h3, minimax-h3-max Text that describes the scene, motion, camera behavior, and visual details that the video should preserve.
1Requested clip duration in whole seconds. Use an integer from 5 through 15. The default is 5.
5 <= x <= 15Requested 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.
^[1-9][0-9]*x[1-9][0-9]*$"1536x672"
"1344x768"
"1024x768"
"768x768"
"768x1024"
"768x1344"
"2912x1280"
"2544x1456"
"1920x1440"
"1440x1440"
"1440x1920"
"1440x2560"
"1120x480"
"864x480"
"640x480"
"480x480"
"480x640"
"480x864"
"1792x768"
"1360x768"
"768x1360"
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.
^https://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.
1 - 3 elements^(https://|data:video/mp4;base64,)"https://your-media-host/reference.mp4"
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.
1 - 3 elements^https://"https://your-media-host/reference.mp3"
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.
^https://"https://your-image-host/first-frame.png"
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.
^https://"https://your-image-host/last-frame.png"
Yanıt
Task created. Store the returned id and use it in retrieve and content requests.
Task ID. Use this value as task_id in retrieve and content requests.
"<task_id>"
Object type for the asynchronous video task.
"video"Model ID that the task uses.
minimax-h3, minimax-h3-max Task lifecycle status. Poll until the value is completed or failed.
queued, in_progress, completed, failed Task progress as a coarse percentage.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Compatibility alias for id. This field can be omitted from retrieve responses.
"<task_id>"
Unix timestamp returned by the platform. Use status, not this field, to decide when polling can stop.
Result expiration time as a Unix timestamp in seconds when the task provides one.
Video delivery URL. This field appears on completed tasks.
"https://your-media-host/result.mp4"
Failure details. This field appears when the task fails.