Model ini mendukung gambar-ke-video dan referensi-ke-video, tetapi tidak mendukung teks tanpa gambar atau pasangan frame awal/akhir. Setelah pengiriman, ambil ID tugas dari data[0].task_id dan gunakan Kueri Tugas untuk melihat status dan hasil.
Mode pembuatan
viduq4-preview memilih mode secara otomatis berdasarkan gambar, peran, dan audio referensi. Tidak perlu parameter mode tambahan.
Input
Mode
Hanya first_frame_image atau satu gambar dengan role: "first_frame"
Gambar-ke-video
Satu gambar tanpa peran dan tanpa audio referensi
Gambar-ke-video
Ada peran reference_image atau reference, tanpa frame awal eksplisit
Referensi-ke-video
Total 2–15 gambar, tanpa frame awal eksplisit
Referensi-ke-video
Audio referensi dan 1–15 gambar, tanpa frame awal eksplisit
Referensi-ke-video
Gambar-ke-video: tepat satu frame awal; prompt opsional; audio referensi tidak diterima.
Referensi-ke-video: 1–15 gambar, hingga 3 klip audio referensi, dan prompt wajib. Jika hanya satu gambar tanpa audio referensi, tetapkan role: "reference_image" secara eksplisit; jika tidak, mode gambar-ke-video digunakan.
Frame awal eksplisit (first_frame_image atau role: "first_frame") tidak boleh digabung dengan gambar lain, peran gambar referensi, atau audio referensi. Jika digabung, HTTP 400 dikembalikan.
Autentikasi Bearer dengan format Bearer <token>; <token> adalah APIMart API Key Anda.
Parameter permintaan
string
wajib
Harus persis viduq4-preview dalam huruf kecil.
boolean
default:"false"
Menentukan apakah moderasi konten dijalankan sebelum tugas video dikirim.
true: periksa prompt dan gambar input dengan omni-moderation-latest
false atau dihilangkan: tidak mengirim permintaan moderasi, tanpa biaya atau latensi moderasi tambahan (default)
string
Prompt pembuatan video, maksimal 20.000 karakter.
Gambar-ke-video: opsional. Jika dihilangkan, model membuat konten berdasarkan frame awal.
Referensi-ke-video: wajib. Jika tidak ada, mengembalikan HTTP 400.
string[]
Array gambar. Mendukung URL gambar publik atau Data URL Base64 seperti data:image/png;base64,....
Gambar-ke-video: hanya satu gambar sebagai frame awal.
Referensi-ke-video: total 1–15 gambar bersama image_with_roles.
Dapat digabung dengan image_with_roles; jumlahnya dijumlahkan. Jangan gabungkan dengan first_frame_image atau peran first_frame eksplisit. Untuk satu gambar tanpa peran, keberadaan audio referensi juga menentukan mode.
object[]
Array gambar dengan peran. Satu elemen untuk gambar-ke-video; total 1–15 gambar bersama image_urls untuk referensi-ke-video.
Tampilkan Tampilkan kolom gambar
string
wajib
URL gambar publik atau Data URL Base64.
string
Peran gambar, tidak peka huruf besar/kecil:
first_frame: frame awal untuk gambar-ke-video.
reference_image: gambar referensi untuk referensi-ke-video; reference juga diterima.
Dihilangkan atau kosong: tanpa audio referensi, jumlah total menentukan mode: satu gambar untuk gambar-ke-video, dua atau lebih untuk referensi-ke-video. Dengan audio referensi, mode referensi-ke-video digunakan.
Nilai lain seperti last_frame mengembalikan HTTP 400 secara sinkron.
Dapat digabung dengan image_urls untuk memasok referensi, tetapi peran frame awal tidak boleh dicampur dengan materi referensi.
string
Khusus gambar-ke-video. Berikan URL publik atau Data URL Base64 untuk frame awal.Saat memakai kolom ini, jangan berikan gambar lain atau audio referensi. Untuk referensi-ke-video, gunakan image_urls atau image_with_roles.
string[]
Array URL audio referensi, khusus referensi-ke-video. Maksimal 3 klip jika digabung dengan audio_url.Wajib MP3, tiap klip 3–12 detik dan maksimal 50MB. Audio referensi tetap memerlukan minimal satu gambar dan prompt.Format atau durasi audio yang tidak sesuai menyebabkan tugas gagal saat eksekusi dengan pengembalian dana penuh, bukan HTTP 400 sinkron saat pengiriman.
string
URL satu audio referensi. Persyaratan sama dengan audio_urls; maksimal 3 klip dari kedua kolom.
string
default:"16:9"
Khusus referensi-ke-video. Mendukung 1:1, 9:16, 16:9, 3:4, dan 4:3. Default: 16:9.Pada gambar-ke-video, frame awal menentukan rasio aspek dan parameter ini diabaikan.
string
Alias kompatibilitas untuk aspect_ratio dengan nilai yang sama. Sebaiknya gunakan hanya salah satu kolom. Tidak berpengaruh pada gambar-ke-video.
integer
default:"5"
Durasi video dalam detik. Mendukung 3–16 detik, bukan 1–2 detik.
string
default:"720p"
Resolusi: 540p, 720p, 1080p, 2K, atau 4K, tidak peka huruf besar/kecil.
boolean
default:"true"
Apakah video menyertakan dialog dan efek suara.
true: video dengan audio (default).
false: video tanpa suara.
Harga video dengan atau tanpa suara sama.
integer
Seed acak. Hilangkan atau kirim 0 untuk nilai acak.
Persyaratan materi
Gambar-ke-video: wajib tepat satu gambar frame awal; audio referensi tidak diterima.
Referensi-ke-video: wajib 1–15 gambar referensi; hingga 3 klip audio referensi opsional.
Mendukung PNG, JPEG, JPG, WEBP, maksimal 50MB per gambar.
Jika memakai Base64, seluruh body permintaan harus kurang dari 20MB. URL publik disarankan.
URL gambar harus dapat diakses publik. Ganti URL contoh dengan alamat gambar yang benar-benar dapat diakses.
Kedua mode memerlukan gambar dan tidak mendukung last_frame_image. Kesalahan seperti mencampur frame awal dengan referensi atau melampaui jumlah gambar/audio mengembalikan HTTP 400 saat pengiriman, tanpa membuat tugas atau mengenakan biaya. Format atau durasi audio referensi yang salah menyebabkan kegagalan saat eksekusi dan pengembalian dana.
{ "model": "viduq4-preview", "prompt": "Anak laki-laki pada gambar 1 berbicara kepada gadis pada gambar 2 menggunakan isi audio referensi, di kafe pada gambar 3", "image_urls": [ "https://example.com/boy.png", "https://example.com/girl.png", "https://example.com/cafe.png" ], "audio_urls": ["https://example.com/line.mp3"], "aspect_ratio": "16:9", "duration": 8, "resolution": "720p"}
Referensi-ke-video dengan satu gambar
{ "model": "viduq4-preview", "prompt": "Orang dalam gambar referensi masuk ke kafe dan melambaikan tangan kepada staf", "image_with_roles": [ { "url": "https://example.com/person.png", "role": "reference_image" } ], "aspect_ratio": "9:16", "duration": 5, "resolution": "1080p"}
Contoh ini tidak menyertakan audio referensi dan memilih referensi-ke-video secara eksplisit lewat peran reference_image. Ganti semua URL gambar dan audio dengan alamat materi yang dapat diakses.
Respons pengiriman
integer
Kode status respons; 200 berarti berhasil.
array
Hasil pengiriman tugas.
Tampilkan Tampilkan kolom tugas
string
submitted berarti pengiriman berhasil, bukan pembuatan video telah selesai.
string
ID tugas untuk memeriksa status dan hasil.
Memeriksa hasil tugas
Lakukan polling setiap 5–10 detik dan berhenti pada completed atau failed. Gunakan endpoint kueri terpadu:
Berhasil; baca tautan video dari array data.result.videos[0].url
failed
Gagal; baca penyebab dari data.error.message dan hentikan polling; dana dikembalikan penuh
Tautan video berlaku 24 jam. Segera unduh dan simpan. Tentukan penyelesaian berdasarkan status, bukan angka kemajuan tetap.
Penagihan
Biaya berdasarkan durasi dan resolusi: biaya = durasi (detik) × tarif per detik untuk resolusi tersebut.Lihat Harga Model. Kedua mode berharga sama, dengan atau tanpa audio. Gambar dan audio referensi tidak dikenakan biaya tambahan. Tugas yang gagal otomatis mendapat pengembalian dana penuh.
Kesalahan parameter umum
Kasus berikut mengembalikan HTTP 400 secara sinkron, tanpa membuat tugas atau mengenakan biaya:
Masalah
Tindakan
Tidak ada gambar
Berikan satu frame awal untuk gambar-ke-video atau 1–15 gambar referensi untuk referensi-ke-video
Frame awal eksplisit dicampur dengan gambar lain, peran referensi, atau audio referensi
Sisakan satu frame awal untuk gambar-ke-video; hapus kolom atau peran frame awal eksplisit untuk referensi-ke-video
role tidak didukung, seperti last_frame
Gunakan first_frame, reference_image, reference, atau kosongkan
Lebih dari 15 gambar referensi
Batasi total image_urls dan image_with_roles hingga 15
Lebih dari 3 klip audio referensi
Batasi total audio_urls dan audio_url hingga 3
prompt tidak ada pada referensi-ke-video
Tambahkan prompt hingga 20.000 karakter
Rasio aspek referensi tidak didukung, seperti 21:9
Gunakan 1:1, 9:16, 16:9, 3:4, atau 4:3
last_frame_image diberikan
Hapus kolom; pasangan frame awal/akhir tidak didukung
duration kurang dari 3 atau lebih dari 16
Gunakan bilangan bulat 3–16 detik
Resolusi tidak didukung, seperti 480p atau 8K
Gunakan 540p, 720p, 1080p, 2K, atau 4K
Model Vidu lainnya
Untuk teks-ke-video atau pasangan frame awal/akhir, gunakan Vidu Q3 Pro / Turbo. Model ini sudah mendukung banyak gambar referensi; Vidu Q3 Mix / Standard juga menyediakan referensi-ke-video. Untuk klip 1–2 detik, pilih viduq3-pro; model ini memerlukan minimal 3 detik.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"APIMart","colors":{"primary":"#2563EB","light":"#3B82F6","dark":"#1D4ED8"},"favicon":"https://mintcdn.com/apicore/1GnRrmOhqkTFCvFb/logo/logo.png?fit=max\u0026auto=format\u0026n=1GnRrmOhqkTFCvFb\u0026q=85\u0026s=609be15c3f1f4e4b765c5945c2871ae9","navbar":{"links":[{"icon":"x-twitter","href":"https://x.com/APIMart_","label":""},{"icon":"discord","href":"https://discord.gg/V8zqssyZ5c","label":""},{"icon":"weixin","href":"https://cdn.apimart.ai/social-media/wechat.jpg","label":""}],"primary":{"type":"button","label":"Dashboard","href":"https://apimart.ai"}},"footer":{"socials":{"x":"https://x.com/APIMart_","website":"https://apimart.ai","discord":"https://discord.gg/V8zqssyZ5c"}},"seo":{"metatags":{"og:site_name":"APIMart","og:type":"website","keywords":"OpenAI compatible, API gateway, GPT-5, Claude, Gemini, multi-provider, transparent pricing, SLA","twitter:card":"summary_large_image","twitter:site":"@APIMart_","twitter:creator":"@APIMart_"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"zh-Hans","href":"cn"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"},{"language":"ru","href":"ru"},{"language":"de","href":"de"},{"language":"fr","href":"fr"},{"language":"pt","href":"pt"},{"language":"id","href":"id"},{"language":"es","href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apicore","hasAudioNarration":false,"actualSubdomain":"apicore","customDomains":["docs.apimart.ai"],"gitSource":{"type":"github","owner":"apimart-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae1c97b1297abb2484bbfc0"},"entitlements":{},"buildId":"6b03dd616d5fca11cbfd1460","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"zh-Hans","tag":"API 手册","count":177},{"language":"de","tag":"API-Handbuch","count":177},{"language":"en","tag":"API Manual","count":177},{"language":"es","tag":"Manual de la API","count":177},{"language":"fr","tag":"Manuel API","count":177},{"language":"id","tag":"Panduan API","count":177},{"language":"ja","tag":"APIマニュアル","count":177},{"language":"ko","tag":"API 매뉴얼","count":177},{"language":"pt","tag":"Manual da API","count":177},{"language":"ru","tag":"Руководство API","count":177},{"language":"zh-Hans","tag":"图像系列","count":57},{"language":"de","tag":"Bildserie","count":57},{"language":"en","tag":"Image Series","count":57},{"language":"es","tag":"Serie de imágenes","count":57},{"language":"fr","tag":"Série Image","count":57},{"language":"id","tag":"Seri Gambar","count":57},{"language":"ja","tag":"画像シリーズ","count":57},{"language":"ko","tag":"이미지 시리즈","count":57},{"language":"pt","tag":"Série de Imagem","count":57},{"language":"ru","tag":"Серия изображений","count":57},{"language":"zh-Hans","tag":"音频系列","count":51},{"language":"de","tag":"Audioserie","count":51},{"language":"en","tag":"Audio Series","count":51},{"language":"es","tag":"Serie de audio","count":51},{"language":"fr","tag":"Série Audio","count":51},{"language":"id","tag":"Seri Audio","count":51},{"language":"ja","tag":"オーディオシリーズ","count":51},{"language":"ko","tag":"오디오 시리즈","count":51},{"language":"pt","tag":"Série de Áudio","count":51},{"language":"ru","tag":"Аудиосерия","count":51},{"language":"zh-Hans","tag":"视频系列","count":47},{"language":"de","tag":"Videoserie","count":47},{"language":"en","tag":"Video Series","count":47},{"language":"es","tag":"Serie de video","count":47},{"language":"fr","tag":"Série Vidéo","count":47},{"language":"id","tag":"Seri Video","count":47},{"language":"ja","tag":"動画シリーズ","count":47},{"language":"ko","tag":"비디오 시리즈","count":47},{"language":"pt","tag":"Série de Vídeo","count":47},{"language":"ru","tag":"Видеосерия","count":47},{"language":"zh-Hans","tag":"Suno","count":35},{"language":"de","tag":"Suno","count":35},{"language":"en","tag":"Suno","count":35},{"language":"es","tag":"Suno","count":35},{"language":"fr","tag":"Suno","count":35},{"language":"id","tag":"Suno","count":35},{"language":"ja","tag":"Suno","count":35},{"language":"ko","tag":"Suno","count":35},{"language":"pt","tag":"Suno","count":35},{"language":"ru","tag":"Suno","count":35},{"language":"zh-Hans","tag":"Midjourney","count":19},{"language":"de","tag":"Midjourney","count":19},{"language":"en","tag":"Midjourney","count":19},{"language":"es","tag":"Midjourney","count":19},{"language":"fr","tag":"Midjourney","count":19},{"language":"id","tag":"Midjourney","count":19},{"language":"ja","tag":"Midjourney","count":19},{"language":"ko","tag":"Midjourney","count":19},{"language":"pt","tag":"Midjourney","count":19},{"language":"ru","tag":"Midjourney","count":19},{"language":"zh-Hans","tag":"Flow Music","count":14},{"language":"de","tag":"Flow Music","count":14},{"language":"en","tag":"Flow Music","count":14},{"language":"es","tag":"Flow Music","count":14},{"language":"fr","tag":"Flow Music","count":14},{"language":"id","tag":"Flow Music","count":14},{"language":"ja","tag":"Flow Music","count":14},{"language":"ko","tag":"Flow Music","count":14},{"language":"pt","tag":"Flow Music","count":14},{"language":"ru","tag":"Flow Music","count":14},{"language":"ja","tag":"よくある質問","count":12},{"language":"ko","tag":"자주 묻는 질문","count":12},{"language":"zh-Hans","tag":"集成指南","count":11},{"language":"de","tag":"Integrationen","count":11},{"language":"en","tag":"Integrations","count":11},{"language":"es","tag":"Integraciones","count":11},{"language":"fr","tag":"Intégrations","count":11},{"language":"id","tag":"Integrasi","count":11},{"language":"ja","tag":"統合ガイド","count":11},{"language":"ko","tag":"통합 가이드","count":11},{"language":"pt","tag":"Integrações","count":11},{"language":"ru","tag":"Интеграции","count":11},{"language":"zh-Hans","tag":"文字系列","count":10},{"language":"de","tag":"Textserie","count":10},{"language":"en","tag":"Text Series","count":10},{"language":"es","tag":"Serie de texto","count":10},{"language":"fr","tag":"Série Texte","count":10},{"language":"id","tag":"Seri Teks","count":10},{"language":"ja","tag":"テキストシリーズ","count":10},{"language":"ko","tag":"텍스트 시리즈","count":10},{"language":"pt","tag":"Série de Texto","count":10},{"language":"ru","tag":"Текстовая серия","count":10},{"language":"zh-Hans","tag":"概览","count":7},{"language":"de","tag":"Übersicht","count":7},{"language":"en","tag":"Overview","count":7},{"language":"es","tag":"Visión general","count":7},{"language":"fr","tag":"Aperçu","count":7},{"language":"id","tag":"Ikhtisar","count":7},{"language":"pt","tag":"Visão Geral","count":7},{"language":"ru","tag":"Обзор","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[id^=\"param-\"] a[href^=\"#param-\"]{display:none}[id^=\"param-\"] button[data-component-part=\"field-name\"]{display:inline-flex;align-items:center;gap:6px;margin:-2px -4px;padding:2px 4px;border-radius:6px;cursor:copy;user-select:text;transition:background-color 150ms ease}[id^=\"param-\"] button[data-component-part=\"field-name\"]:hover{background:rgb(37 99 235 / 8%)}[id^=\"param-\"] button[data-component-part=\"field-name\"]:not([data-copy-state])::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(100 116 139);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center / contain no-repeat;transition:background-color 150ms ease}[id^=\"param-\"] button[data-component-part=\"field-name\"]:hover::after{background-color:rgb(37 99 235)}[id^=\"param-\"] button[data-component-part=\"field-name\"][data-copy-state=\"copied\"]::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(5 150 105);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E\") center / contain no-repeat}[id^=\"param-\"] button[data-component-part=\"field-name\"][data-copy-state=\"failed\"]::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(220 38 38);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E\") center / contain no-repeat}html.dark [id^=\"param-\"] button[data-component-part=\"field-name\"]:not([data-copy-state])::after{background-color:rgb(203 213 225)}"}]}
{"page":{"pagePath":"id/api-reference/videos/vidu-q4-preview/generation","slug":"/id/api-reference/videos/vidu-q4-preview/generation","pageMetadata":{"title":"Vidu Q4 Preview Pembuatan Video","description":"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q4-preview/generation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`Model ini mendukung gambar-ke-video dan referensi-ke-video, tetapi tidak mendukung teks tanpa gambar atau pasangan frame awal/akhir. Setelah pengiriman, ambil ID tugas dari `,_jsx(_components.code,{children:`data[0].task_id`}),` dan gunakan `,_jsx(_components.a,{href:`/id/api-reference/tasks/status`,children:`Kueri Tugas`}),` untuk melihat status dan hasil.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`mode-pembuatan`,children:`Mode pembuatan`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`viduq4-preview`}),` memilih mode secara otomatis berdasarkan gambar, peran, dan audio referensi. Tidak perlu parameter mode tambahan.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Mode`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Hanya `,_jsx(_components.code,{children:`first_frame_image`}),` atau satu gambar dengan `,_jsx(_components.code,{children:`role: \"first_frame\"`})]}),_jsx(_components.td,{children:`Gambar-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Satu gambar tanpa peran dan tanpa audio referensi`}),_jsx(_components.td,{children:`Gambar-ke-video`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Ada peran `,_jsx(_components.code,{children:`reference_image`}),` atau `,_jsx(_components.code,{children:`reference`}),`, tanpa frame awal eksplisit`]}),_jsx(_components.td,{children:`Referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total 2–15 gambar, tanpa frame awal eksplisit`}),_jsx(_components.td,{children:`Referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audio referensi dan 1–15 gambar, tanpa frame awal eksplisit`}),_jsx(_components.td,{children:`Referensi-ke-video`})]})]})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Gambar-ke-video`}),`: tepat satu frame awal; prompt opsional; audio referensi tidak diterima.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Referensi-ke-video`}),`: 1–15 gambar, hingga 3 klip audio referensi, dan `,_jsx(_components.strong,{children:`prompt wajib`}),`. Jika hanya satu gambar tanpa audio referensi, tetapkan `,_jsx(_components.code,{children:`role: \"reference_image\"`}),` secara eksplisit; jika tidak, mode gambar-ke-video digunakan.`]}),`\n`,_jsxs(_components.li,{children:[`Frame awal eksplisit (`,_jsx(_components.code,{children:`first_frame_image`}),` atau `,_jsx(_components.code,{children:`role: \"first_frame\"`}),`) tidak boleh digabung dengan gambar lain, peran gambar referensi, atau audio referensi. Jika digabung, HTTP 400 dikembalikan.`]}),`\n`]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`header-permintaan`,children:`Header permintaan`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Autentikasi Bearer dengan format `,_jsx(_components.code,{children:`Bearer \u003ctoken>`}),`; `,_jsx(_components.code,{children:`\u003ctoken>`}),` adalah APIMart API Key Anda.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-permintaan`,children:`Parameter permintaan`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Harus persis `,_jsx(_components.code,{children:`viduq4-preview`}),` dalam huruf kecil.`]})}),`\n`,_jsxs(ParamField,{body:`nsfw_check`,type:`boolean`,default:`false`,id:`param-nsfw-check`,children:[_jsx(_components.p,{children:`Menentukan apakah moderasi konten dijalankan sebelum tugas video dikirim.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: periksa prompt dan gambar input dengan `,_jsx(_components.code,{children:`omni-moderation-latest`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),` atau dihilangkan: tidak mengirim permintaan moderasi, tanpa biaya atau latensi moderasi tambahan (default)`]}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:[_jsx(_components.p,{children:`Prompt pembuatan video, maksimal 20.000 karakter.`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Gambar-ke-video: opsional. Jika dihilangkan, model membuat konten berdasarkan frame awal.`}),`\n`,_jsx(_components.li,{children:`Referensi-ke-video: wajib. Jika tidak ada, mengembalikan HTTP 400.`}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:[_jsxs(_components.p,{children:[`Array gambar. Mendukung URL gambar publik atau Data URL Base64 seperti `,_jsx(_components.code,{children:`data:image/png;base64,...`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Gambar-ke-video: hanya satu gambar sebagai frame awal.`}),`\n`,_jsxs(_components.li,{children:[`Referensi-ke-video: total 1–15 gambar bersama `,_jsx(_components.code,{children:`image_with_roles`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`Dapat digabung dengan `,_jsx(_components.code,{children:`image_with_roles`}),`; jumlahnya dijumlahkan. Jangan gabungkan dengan `,_jsx(_components.code,{children:`first_frame_image`}),` atau peran `,_jsx(_components.code,{children:`first_frame`}),` eksplisit. Untuk satu gambar tanpa peran, keberadaan audio referensi juga menentukan mode.`]})]}),`\n`,_jsxs(ParamField,{body:`image_with_roles`,type:`object[]`,id:`param-image-with-roles`,children:[_jsxs(_components.p,{children:[`Array gambar dengan peran. Satu elemen untuk gambar-ke-video; total 1–15 gambar bersama `,_jsx(_components.code,{children:`image_urls`}),` untuk referensi-ke-video.`]}),_jsxs(Expandable,{title:`Tampilkan kolom gambar`,children:[_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`URL gambar publik atau Data URL Base64.`})}),_jsxs(ParamField,{body:`role`,type:`string`,id:`param-role`,children:[_jsx(_components.p,{children:`Peran gambar, tidak peka huruf besar/kecil:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`first_frame`}),`: frame awal untuk gambar-ke-video.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference_image`}),`: gambar referensi untuk referensi-ke-video; `,_jsx(_components.code,{children:`reference`}),` juga diterima.`]}),`\n`,_jsx(_components.li,{children:`Dihilangkan atau kosong: tanpa audio referensi, jumlah total menentukan mode: satu gambar untuk gambar-ke-video, dua atau lebih untuk referensi-ke-video. Dengan audio referensi, mode referensi-ke-video digunakan.`}),`\n`]}),_jsxs(_components.p,{children:[`Nilai lain seperti `,_jsx(_components.code,{children:`last_frame`}),` mengembalikan HTTP 400 secara sinkron.`]})]})]}),_jsxs(_components.p,{children:[`Dapat digabung dengan `,_jsx(_components.code,{children:`image_urls`}),` untuk memasok referensi, tetapi peran frame awal tidak boleh dicampur dengan materi referensi.`]})]}),`\n`,_jsxs(ParamField,{body:`first_frame_image`,type:`string`,id:`param-first-frame-image`,children:[_jsx(_components.p,{children:`Khusus gambar-ke-video. Berikan URL publik atau Data URL Base64 untuk frame awal.`}),_jsxs(_components.p,{children:[`Saat memakai kolom ini, jangan berikan gambar lain atau audio referensi. Untuk referensi-ke-video, gunakan `,_jsx(_components.code,{children:`image_urls`}),` atau `,_jsx(_components.code,{children:`image_with_roles`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`audio_urls`,type:`string[]`,id:`param-audio-urls`,children:[_jsxs(_components.p,{children:[`Array URL audio referensi, khusus referensi-ke-video. Maksimal 3 klip jika digabung dengan `,_jsx(_components.code,{children:`audio_url`}),`.`]}),_jsxs(_components.p,{children:[`Wajib MP3, tiap klip 3–12 detik dan maksimal 50MB. Audio referensi tetap memerlukan minimal satu gambar dan `,_jsx(_components.code,{children:`prompt`}),`.`]}),_jsx(_components.p,{children:`Format atau durasi audio yang tidak sesuai menyebabkan tugas gagal saat eksekusi dengan pengembalian dana penuh, bukan HTTP 400 sinkron saat pengiriman.`})]}),`\n`,_jsx(ParamField,{body:`audio_url`,type:`string`,id:`param-audio-url`,children:_jsxs(_components.p,{children:[`URL satu audio referensi. Persyaratan sama dengan `,_jsx(_components.code,{children:`audio_urls`}),`; maksimal 3 klip dari kedua kolom.`]})}),`\n`,_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,default:`16:9`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`Khusus referensi-ke-video. Mendukung `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`3:4`}),`, dan `,_jsx(_components.code,{children:`4:3`}),`. Default: `,_jsx(_components.code,{children:`16:9`}),`.`]}),_jsx(_components.p,{children:`Pada gambar-ke-video, frame awal menentukan rasio aspek dan parameter ini diabaikan.`})]}),`\n`,_jsx(ParamField,{body:`size`,type:`string`,id:`param-size`,children:_jsxs(_components.p,{children:[`Alias kompatibilitas untuk `,_jsx(_components.code,{children:`aspect_ratio`}),` dengan nilai yang sama. Sebaiknya gunakan hanya salah satu kolom. Tidak berpengaruh pada gambar-ke-video.`]})}),`\n`,_jsx(ParamField,{body:`duration`,type:`integer`,default:`5`,id:`param-duration`,children:_jsx(_components.p,{children:`Durasi video dalam detik. Mendukung 3–16 detik, bukan 1–2 detik.`})}),`\n`,_jsx(ParamField,{body:`resolution`,type:`string`,default:`720p`,id:`param-resolution`,children:_jsxs(_components.p,{children:[`Resolusi: `,_jsx(_components.code,{children:`540p`}),`, `,_jsx(_components.code,{children:`720p`}),`, `,_jsx(_components.code,{children:`1080p`}),`, `,_jsx(_components.code,{children:`2K`}),`, atau `,_jsx(_components.code,{children:`4K`}),`, tidak peka huruf besar/kecil.`]})}),`\n`,_jsxs(ParamField,{body:`audio`,type:`boolean`,default:`true`,id:`param-audio`,children:[_jsx(_components.p,{children:`Apakah video menyertakan dialog dan efek suara.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: video dengan audio (default).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: video tanpa suara.`]}),`\n`]}),_jsx(_components.p,{children:`Harga video dengan atau tanpa suara sama.`})]}),`\n`,_jsx(ParamField,{body:`seed`,type:`integer`,id:`param-seed`,children:_jsxs(_components.p,{children:[`Seed acak. Hilangkan atau kirim `,_jsx(_components.code,{children:`0`}),` untuk nilai acak.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`persyaratan-materi`,children:`Persyaratan materi`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Gambar-ke-video: wajib tepat satu gambar frame awal; audio referensi tidak diterima.`}),`\n`,_jsx(_components.li,{children:`Referensi-ke-video: wajib 1–15 gambar referensi; hingga 3 klip audio referensi opsional.`}),`\n`,_jsx(_components.li,{children:`Mendukung PNG, JPEG, JPG, WEBP, maksimal 50MB per gambar.`}),`\n`,_jsx(_components.li,{children:`Jika memakai Base64, seluruh body permintaan harus kurang dari 20MB. URL publik disarankan.`}),`\n`,_jsx(_components.li,{children:`URL gambar harus dapat diakses publik. Ganti URL contoh dengan alamat gambar yang benar-benar dapat diakses.`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Kedua mode memerlukan gambar dan tidak mendukung `,_jsx(_components.code,{children:`last_frame_image`}),`. Kesalahan seperti mencampur frame awal dengan referensi atau melampaui jumlah gambar/audio mengembalikan HTTP 400 saat pengiriman, tanpa membuat tugas atau mengenakan biaya. Format atau durasi audio referensi yang salah menyebabkan kegagalan saat eksekusi dan pengembalian dana.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`contoh-permintaan`,children:`Contoh permintaan`}),`\n`,_jsx(Heading,{level:`3`,id:`hanya-frame-awal-tanpa-prompt`,children:`Hanya frame awal, tanpa prompt`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Secara default menghasilkan video 5 detik, 720p, dengan audio.`}),`\n`,_jsx(Heading,{level:`3`,id:`frame-awal-dengan-peran-eksplisit-dan-output-4k`,children:`Frame awal dengan peran eksplisit dan output 4K`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Kamera perlahan mendekat sementara orang tersebut tersenyum alami\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_with_roles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"first_frame\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4K\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`video-tanpa-suara-menggunakan-kolom-frame-awal`,children:`Video tanpa suara menggunakan kolom frame awal`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`video-dari-beberapa-gambar-dan-audio-referensi`,children:`Video dari beberapa gambar dan audio referensi`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Anak laki-laki pada gambar 1 berbicara kepada gadis pada gambar 2 menggunakan isi audio referensi, di kafe pada gambar 3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/boy.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/girl.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/cafe.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/line.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`referensi-ke-video-dengan-satu-gambar`,children:`Referensi-ke-video dengan satu gambar`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Orang dalam gambar referensi masuk ke kafe dan melambaikan tangan kepada staf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_with_roles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/person.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_image\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9:16\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Contoh ini tidak menyertakan audio referensi dan memilih referensi-ke-video secara eksplisit lewat peran `,_jsx(_components.code,{children:`reference_image`}),`. Ganti semua URL gambar dan audio dengan alamat materi yang dapat diakses.`]}),`\n`,_jsx(Heading,{level:`2`,id:`respons-pengiriman`,children:`Respons pengiriman`}),`\n`,_jsx(ResponseField,{name:`code`,type:`integer`,id:`param-code`,children:_jsxs(_components.p,{children:[`Kode status respons; `,_jsx(_components.code,{children:`200`}),` berarti berhasil.`]})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`Hasil pengiriman tugas.`}),_jsxs(Expandable,{title:`Tampilkan kolom tugas`,children:[_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`submitted`}),` berarti pengiriman berhasil, bukan pembuatan video telah selesai.`]})}),_jsx(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id`,children:_jsx(_components.p,{children:`ID tugas untuk memeriksa status dan hasil.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`memeriksa-hasil-tugas`,children:`Memeriksa hasil tugas`}),`\n`,_jsxs(_components.p,{children:[`Lakukan polling setiap 5–10 detik dan berhenti pada `,_jsx(_components.code,{children:`completed`}),` atau `,_jsx(_components.code,{children:`failed`}),`. Gunakan endpoint kueri terpadu:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/tasks/task_01K...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Contoh respons berhasil (URL video adalah placeholder):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01K...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/generated-video.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Tindakan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:`Dalam antrean; lanjutkan polling`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Sedang dibuat; lanjutkan polling`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsxs(_components.td,{children:[`Berhasil; baca tautan video dari array `,_jsx(_components.code,{children:`data.result.videos[0].url`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsxs(_components.td,{children:[`Gagal; baca penyebab dari `,_jsx(_components.code,{children:`data.error.message`}),` dan hentikan polling; dana dikembalikan penuh`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Tautan video berlaku 24 jam. Segera unduh dan simpan. Tentukan penyelesaian berdasarkan `,_jsx(_components.code,{children:`status`}),`, bukan angka kemajuan tetap.`]}),`\n`,_jsx(Heading,{level:`2`,id:`penagihan`,children:`Penagihan`}),`\n`,_jsx(_components.p,{children:`Biaya berdasarkan durasi dan resolusi: biaya = durasi (detik) × tarif per detik untuk resolusi tersebut.`}),`\n`,_jsxs(_components.p,{children:[`Lihat `,_jsx(_components.a,{href:`https://apimart.ai/pricing`,children:`Harga Model`}),`. Kedua mode berharga sama, dengan atau tanpa audio. Gambar dan audio referensi tidak dikenakan biaya tambahan. Tugas yang gagal otomatis mendapat pengembalian dana penuh.`]}),`\n`,_jsx(Heading,{level:`2`,id:`kesalahan-parameter-umum`,children:`Kesalahan parameter umum`}),`\n`,_jsx(_components.p,{children:`Kasus berikut mengembalikan HTTP 400 secara sinkron, tanpa membuat tugas atau mengenakan biaya:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Masalah`}),_jsx(_components.th,{children:`Tindakan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tidak ada gambar`}),_jsx(_components.td,{children:`Berikan satu frame awal untuk gambar-ke-video atau 1–15 gambar referensi untuk referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Frame awal eksplisit dicampur dengan gambar lain, peran referensi, atau audio referensi`}),_jsx(_components.td,{children:`Sisakan satu frame awal untuk gambar-ke-video; hapus kolom atau peran frame awal eksplisit untuk referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`role`}),` tidak didukung, seperti `,_jsx(_components.code,{children:`last_frame`})]}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`first_frame`}),`, `,_jsx(_components.code,{children:`reference_image`}),`, `,_jsx(_components.code,{children:`reference`}),`, atau kosongkan`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lebih dari 15 gambar referensi`}),_jsxs(_components.td,{children:[`Batasi total `,_jsx(_components.code,{children:`image_urls`}),` dan `,_jsx(_components.code,{children:`image_with_roles`}),` hingga 15`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lebih dari 3 klip audio referensi`}),_jsxs(_components.td,{children:[`Batasi total `,_jsx(_components.code,{children:`audio_urls`}),` dan `,_jsx(_components.code,{children:`audio_url`}),` hingga 3`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`prompt`}),` tidak ada pada referensi-ke-video`]}),_jsx(_components.td,{children:`Tambahkan prompt hingga 20.000 karakter`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Rasio aspek referensi tidak didukung, seperti `,_jsx(_components.code,{children:`21:9`})]}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`3:4`}),`, atau `,_jsx(_components.code,{children:`4:3`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`last_frame_image`}),` diberikan`]}),_jsx(_components.td,{children:`Hapus kolom; pasangan frame awal/akhir tidak didukung`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duration`}),` kurang dari 3 atau lebih dari 16`]}),_jsx(_components.td,{children:`Gunakan bilangan bulat 3–16 detik`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Resolusi tidak didukung, seperti `,_jsx(_components.code,{children:`480p`}),` atau `,_jsx(_components.code,{children:`8K`})]}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`540p`}),`, `,_jsx(_components.code,{children:`720p`}),`, `,_jsx(_components.code,{children:`1080p`}),`, `,_jsx(_components.code,{children:`2K`}),`, atau `,_jsx(_components.code,{children:`4K`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`model-vidu-lainnya`,children:`Model Vidu lainnya`}),`\n`,_jsxs(_components.p,{children:[`Untuk teks-ke-video atau pasangan frame awal/akhir, gunakan `,_jsx(_components.a,{href:`/id/api-reference/videos/vidu-q3-pro/generation`,children:`Vidu Q3 Pro / Turbo`}),`. Model ini sudah mendukung banyak gambar referensi; `,_jsx(_components.a,{href:`/id/api-reference/videos/vidu-q3/generation`,children:`Vidu Q3 Mix / Standard`}),` juga menyediakan referensi-ke-video. Untuk klip 1–2 detik, pilih `,_jsx(_components.code,{children:`viduq3-pro`}),`; model ini memerlukan minimal 3 detik.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Vidu Q4 Preview Pembuatan Video","description":"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q4-preview/generation"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`Model ini mendukung gambar-ke-video dan referensi-ke-video, tetapi tidak mendukung teks tanpa gambar atau pasangan frame awal/akhir. Setelah pengiriman, ambil ID tugas dari `,_jsx(_components.code,{children:`data[0].task_id`}),` dan gunakan `,_jsx(_components.a,{href:`/id/api-reference/tasks/status`,children:`Kueri Tugas`}),` untuk melihat status dan hasil.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`mode-pembuatan`,children:`Mode pembuatan`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`viduq4-preview`}),` memilih mode secara otomatis berdasarkan gambar, peran, dan audio referensi. Tidak perlu parameter mode tambahan.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Mode`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Hanya `,_jsx(_components.code,{children:`first_frame_image`}),` atau satu gambar dengan `,_jsx(_components.code,{children:`role: \"first_frame\"`})]}),_jsx(_components.td,{children:`Gambar-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Satu gambar tanpa peran dan tanpa audio referensi`}),_jsx(_components.td,{children:`Gambar-ke-video`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Ada peran `,_jsx(_components.code,{children:`reference_image`}),` atau `,_jsx(_components.code,{children:`reference`}),`, tanpa frame awal eksplisit`]}),_jsx(_components.td,{children:`Referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total 2–15 gambar, tanpa frame awal eksplisit`}),_jsx(_components.td,{children:`Referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audio referensi dan 1–15 gambar, tanpa frame awal eksplisit`}),_jsx(_components.td,{children:`Referensi-ke-video`})]})]})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Gambar-ke-video`}),`: tepat satu frame awal; prompt opsional; audio referensi tidak diterima.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Referensi-ke-video`}),`: 1–15 gambar, hingga 3 klip audio referensi, dan `,_jsx(_components.strong,{children:`prompt wajib`}),`. Jika hanya satu gambar tanpa audio referensi, tetapkan `,_jsx(_components.code,{children:`role: \"reference_image\"`}),` secara eksplisit; jika tidak, mode gambar-ke-video digunakan.`]}),`\n`,_jsxs(_components.li,{children:[`Frame awal eksplisit (`,_jsx(_components.code,{children:`first_frame_image`}),` atau `,_jsx(_components.code,{children:`role: \"first_frame\"`}),`) tidak boleh digabung dengan gambar lain, peran gambar referensi, atau audio referensi. Jika digabung, HTTP 400 dikembalikan.`]}),`\n`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/videos/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"viduq4-preview\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Seorang gadis menoleh sambil tersenyum, rambut panjangnya tertiup angin dan kamera perlahan mendekat\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_urls\": [\"https://example.com/first-frame.png\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"1080p\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apimart.ai/v1/videos/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Seorang gadis menoleh sambil tersenyum, rambut panjangnya tertiup angin dan kamera perlahan mendekat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`16`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.apimart.ai/v1/videos/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Seorang gadis menoleh sambil tersenyum, rambut panjangnya tertiup angin dan kamera perlahan mendekat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` image_urls:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` duration:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resolution:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1080p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submitted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01K...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`header-permintaan`,children:`Header permintaan`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Autentikasi Bearer dengan format `,_jsx(_components.code,{children:`Bearer \u003ctoken>`}),`; `,_jsx(_components.code,{children:`\u003ctoken>`}),` adalah APIMart API Key Anda.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-permintaan`,children:`Parameter permintaan`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Harus persis `,_jsx(_components.code,{children:`viduq4-preview`}),` dalam huruf kecil.`]})}),`\n`,_jsxs(ParamField,{body:`nsfw_check`,type:`boolean`,default:`false`,id:`param-nsfw-check`,children:[_jsx(_components.p,{children:`Menentukan apakah moderasi konten dijalankan sebelum tugas video dikirim.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: periksa prompt dan gambar input dengan `,_jsx(_components.code,{children:`omni-moderation-latest`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),` atau dihilangkan: tidak mengirim permintaan moderasi, tanpa biaya atau latensi moderasi tambahan (default)`]}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:[_jsx(_components.p,{children:`Prompt pembuatan video, maksimal 20.000 karakter.`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Gambar-ke-video: opsional. Jika dihilangkan, model membuat konten berdasarkan frame awal.`}),`\n`,_jsx(_components.li,{children:`Referensi-ke-video: wajib. Jika tidak ada, mengembalikan HTTP 400.`}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:[_jsxs(_components.p,{children:[`Array gambar. Mendukung URL gambar publik atau Data URL Base64 seperti `,_jsx(_components.code,{children:`data:image/png;base64,...`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Gambar-ke-video: hanya satu gambar sebagai frame awal.`}),`\n`,_jsxs(_components.li,{children:[`Referensi-ke-video: total 1–15 gambar bersama `,_jsx(_components.code,{children:`image_with_roles`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`Dapat digabung dengan `,_jsx(_components.code,{children:`image_with_roles`}),`; jumlahnya dijumlahkan. Jangan gabungkan dengan `,_jsx(_components.code,{children:`first_frame_image`}),` atau peran `,_jsx(_components.code,{children:`first_frame`}),` eksplisit. Untuk satu gambar tanpa peran, keberadaan audio referensi juga menentukan mode.`]})]}),`\n`,_jsxs(ParamField,{body:`image_with_roles`,type:`object[]`,id:`param-image-with-roles`,children:[_jsxs(_components.p,{children:[`Array gambar dengan peran. Satu elemen untuk gambar-ke-video; total 1–15 gambar bersama `,_jsx(_components.code,{children:`image_urls`}),` untuk referensi-ke-video.`]}),_jsxs(Expandable,{title:`Tampilkan kolom gambar`,children:[_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`URL gambar publik atau Data URL Base64.`})}),_jsxs(ParamField,{body:`role`,type:`string`,id:`param-role`,children:[_jsx(_components.p,{children:`Peran gambar, tidak peka huruf besar/kecil:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`first_frame`}),`: frame awal untuk gambar-ke-video.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference_image`}),`: gambar referensi untuk referensi-ke-video; `,_jsx(_components.code,{children:`reference`}),` juga diterima.`]}),`\n`,_jsx(_components.li,{children:`Dihilangkan atau kosong: tanpa audio referensi, jumlah total menentukan mode: satu gambar untuk gambar-ke-video, dua atau lebih untuk referensi-ke-video. Dengan audio referensi, mode referensi-ke-video digunakan.`}),`\n`]}),_jsxs(_components.p,{children:[`Nilai lain seperti `,_jsx(_components.code,{children:`last_frame`}),` mengembalikan HTTP 400 secara sinkron.`]})]})]}),_jsxs(_components.p,{children:[`Dapat digabung dengan `,_jsx(_components.code,{children:`image_urls`}),` untuk memasok referensi, tetapi peran frame awal tidak boleh dicampur dengan materi referensi.`]})]}),`\n`,_jsxs(ParamField,{body:`first_frame_image`,type:`string`,id:`param-first-frame-image`,children:[_jsx(_components.p,{children:`Khusus gambar-ke-video. Berikan URL publik atau Data URL Base64 untuk frame awal.`}),_jsxs(_components.p,{children:[`Saat memakai kolom ini, jangan berikan gambar lain atau audio referensi. Untuk referensi-ke-video, gunakan `,_jsx(_components.code,{children:`image_urls`}),` atau `,_jsx(_components.code,{children:`image_with_roles`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`audio_urls`,type:`string[]`,id:`param-audio-urls`,children:[_jsxs(_components.p,{children:[`Array URL audio referensi, khusus referensi-ke-video. Maksimal 3 klip jika digabung dengan `,_jsx(_components.code,{children:`audio_url`}),`.`]}),_jsxs(_components.p,{children:[`Wajib MP3, tiap klip 3–12 detik dan maksimal 50MB. Audio referensi tetap memerlukan minimal satu gambar dan `,_jsx(_components.code,{children:`prompt`}),`.`]}),_jsx(_components.p,{children:`Format atau durasi audio yang tidak sesuai menyebabkan tugas gagal saat eksekusi dengan pengembalian dana penuh, bukan HTTP 400 sinkron saat pengiriman.`})]}),`\n`,_jsx(ParamField,{body:`audio_url`,type:`string`,id:`param-audio-url`,children:_jsxs(_components.p,{children:[`URL satu audio referensi. Persyaratan sama dengan `,_jsx(_components.code,{children:`audio_urls`}),`; maksimal 3 klip dari kedua kolom.`]})}),`\n`,_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,default:`16:9`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`Khusus referensi-ke-video. Mendukung `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`3:4`}),`, dan `,_jsx(_components.code,{children:`4:3`}),`. Default: `,_jsx(_components.code,{children:`16:9`}),`.`]}),_jsx(_components.p,{children:`Pada gambar-ke-video, frame awal menentukan rasio aspek dan parameter ini diabaikan.`})]}),`\n`,_jsx(ParamField,{body:`size`,type:`string`,id:`param-size`,children:_jsxs(_components.p,{children:[`Alias kompatibilitas untuk `,_jsx(_components.code,{children:`aspect_ratio`}),` dengan nilai yang sama. Sebaiknya gunakan hanya salah satu kolom. Tidak berpengaruh pada gambar-ke-video.`]})}),`\n`,_jsx(ParamField,{body:`duration`,type:`integer`,default:`5`,id:`param-duration`,children:_jsx(_components.p,{children:`Durasi video dalam detik. Mendukung 3–16 detik, bukan 1–2 detik.`})}),`\n`,_jsx(ParamField,{body:`resolution`,type:`string`,default:`720p`,id:`param-resolution`,children:_jsxs(_components.p,{children:[`Resolusi: `,_jsx(_components.code,{children:`540p`}),`, `,_jsx(_components.code,{children:`720p`}),`, `,_jsx(_components.code,{children:`1080p`}),`, `,_jsx(_components.code,{children:`2K`}),`, atau `,_jsx(_components.code,{children:`4K`}),`, tidak peka huruf besar/kecil.`]})}),`\n`,_jsxs(ParamField,{body:`audio`,type:`boolean`,default:`true`,id:`param-audio`,children:[_jsx(_components.p,{children:`Apakah video menyertakan dialog dan efek suara.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: video dengan audio (default).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: video tanpa suara.`]}),`\n`]}),_jsx(_components.p,{children:`Harga video dengan atau tanpa suara sama.`})]}),`\n`,_jsx(ParamField,{body:`seed`,type:`integer`,id:`param-seed`,children:_jsxs(_components.p,{children:[`Seed acak. Hilangkan atau kirim `,_jsx(_components.code,{children:`0`}),` untuk nilai acak.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`persyaratan-materi`,children:`Persyaratan materi`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Gambar-ke-video: wajib tepat satu gambar frame awal; audio referensi tidak diterima.`}),`\n`,_jsx(_components.li,{children:`Referensi-ke-video: wajib 1–15 gambar referensi; hingga 3 klip audio referensi opsional.`}),`\n`,_jsx(_components.li,{children:`Mendukung PNG, JPEG, JPG, WEBP, maksimal 50MB per gambar.`}),`\n`,_jsx(_components.li,{children:`Jika memakai Base64, seluruh body permintaan harus kurang dari 20MB. URL publik disarankan.`}),`\n`,_jsx(_components.li,{children:`URL gambar harus dapat diakses publik. Ganti URL contoh dengan alamat gambar yang benar-benar dapat diakses.`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Kedua mode memerlukan gambar dan tidak mendukung `,_jsx(_components.code,{children:`last_frame_image`}),`. Kesalahan seperti mencampur frame awal dengan referensi atau melampaui jumlah gambar/audio mengembalikan HTTP 400 saat pengiriman, tanpa membuat tugas atau mengenakan biaya. Format atau durasi audio referensi yang salah menyebabkan kegagalan saat eksekusi dan pengembalian dana.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`contoh-permintaan`,children:`Contoh permintaan`}),`\n`,_jsx(Heading,{level:`3`,id:`hanya-frame-awal-tanpa-prompt`,children:`Hanya frame awal, tanpa prompt`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Secara default menghasilkan video 5 detik, 720p, dengan audio.`}),`\n`,_jsx(Heading,{level:`3`,id:`frame-awal-dengan-peran-eksplisit-dan-output-4k`,children:`Frame awal dengan peran eksplisit dan output 4K`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Kamera perlahan mendekat sementara orang tersebut tersenyum alami\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_with_roles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"first_frame\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4K\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`video-tanpa-suara-menggunakan-kolom-frame-awal`,children:`Video tanpa suara menggunakan kolom frame awal`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`video-dari-beberapa-gambar-dan-audio-referensi`,children:`Video dari beberapa gambar dan audio referensi`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Anak laki-laki pada gambar 1 berbicara kepada gadis pada gambar 2 menggunakan isi audio referensi, di kafe pada gambar 3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/boy.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/girl.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/cafe.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/line.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`referensi-ke-video-dengan-satu-gambar`,children:`Referensi-ke-video dengan satu gambar`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viduq4-preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Orang dalam gambar referensi masuk ke kafe dan melambaikan tangan kepada staf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_with_roles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/person.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_image\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9:16\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Contoh ini tidak menyertakan audio referensi dan memilih referensi-ke-video secara eksplisit lewat peran `,_jsx(_components.code,{children:`reference_image`}),`. Ganti semua URL gambar dan audio dengan alamat materi yang dapat diakses.`]}),`\n`,_jsx(Heading,{level:`2`,id:`respons-pengiriman`,children:`Respons pengiriman`}),`\n`,_jsx(ResponseField,{name:`code`,type:`integer`,id:`param-code`,children:_jsxs(_components.p,{children:[`Kode status respons; `,_jsx(_components.code,{children:`200`}),` berarti berhasil.`]})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`Hasil pengiriman tugas.`}),_jsxs(Expandable,{title:`Tampilkan kolom tugas`,children:[_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`submitted`}),` berarti pengiriman berhasil, bukan pembuatan video telah selesai.`]})}),_jsx(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id`,children:_jsx(_components.p,{children:`ID tugas untuk memeriksa status dan hasil.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`memeriksa-hasil-tugas`,children:`Memeriksa hasil tugas`}),`\n`,_jsxs(_components.p,{children:[`Lakukan polling setiap 5–10 detik dan berhenti pada `,_jsx(_components.code,{children:`completed`}),` atau `,_jsx(_components.code,{children:`failed`}),`. Gunakan endpoint kueri terpadu:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/tasks/task_01K...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Contoh respons berhasil (URL video adalah placeholder):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01K...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/generated-video.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Tindakan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:`Dalam antrean; lanjutkan polling`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Sedang dibuat; lanjutkan polling`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsxs(_components.td,{children:[`Berhasil; baca tautan video dari array `,_jsx(_components.code,{children:`data.result.videos[0].url`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsxs(_components.td,{children:[`Gagal; baca penyebab dari `,_jsx(_components.code,{children:`data.error.message`}),` dan hentikan polling; dana dikembalikan penuh`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Tautan video berlaku 24 jam. Segera unduh dan simpan. Tentukan penyelesaian berdasarkan `,_jsx(_components.code,{children:`status`}),`, bukan angka kemajuan tetap.`]}),`\n`,_jsx(Heading,{level:`2`,id:`penagihan`,children:`Penagihan`}),`\n`,_jsx(_components.p,{children:`Biaya berdasarkan durasi dan resolusi: biaya = durasi (detik) × tarif per detik untuk resolusi tersebut.`}),`\n`,_jsxs(_components.p,{children:[`Lihat `,_jsx(_components.a,{href:`https://apimart.ai/pricing`,children:`Harga Model`}),`. Kedua mode berharga sama, dengan atau tanpa audio. Gambar dan audio referensi tidak dikenakan biaya tambahan. Tugas yang gagal otomatis mendapat pengembalian dana penuh.`]}),`\n`,_jsx(Heading,{level:`2`,id:`kesalahan-parameter-umum`,children:`Kesalahan parameter umum`}),`\n`,_jsx(_components.p,{children:`Kasus berikut mengembalikan HTTP 400 secara sinkron, tanpa membuat tugas atau mengenakan biaya:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Masalah`}),_jsx(_components.th,{children:`Tindakan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tidak ada gambar`}),_jsx(_components.td,{children:`Berikan satu frame awal untuk gambar-ke-video atau 1–15 gambar referensi untuk referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Frame awal eksplisit dicampur dengan gambar lain, peran referensi, atau audio referensi`}),_jsx(_components.td,{children:`Sisakan satu frame awal untuk gambar-ke-video; hapus kolom atau peran frame awal eksplisit untuk referensi-ke-video`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`role`}),` tidak didukung, seperti `,_jsx(_components.code,{children:`last_frame`})]}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`first_frame`}),`, `,_jsx(_components.code,{children:`reference_image`}),`, `,_jsx(_components.code,{children:`reference`}),`, atau kosongkan`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lebih dari 15 gambar referensi`}),_jsxs(_components.td,{children:[`Batasi total `,_jsx(_components.code,{children:`image_urls`}),` dan `,_jsx(_components.code,{children:`image_with_roles`}),` hingga 15`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lebih dari 3 klip audio referensi`}),_jsxs(_components.td,{children:[`Batasi total `,_jsx(_components.code,{children:`audio_urls`}),` dan `,_jsx(_components.code,{children:`audio_url`}),` hingga 3`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`prompt`}),` tidak ada pada referensi-ke-video`]}),_jsx(_components.td,{children:`Tambahkan prompt hingga 20.000 karakter`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Rasio aspek referensi tidak didukung, seperti `,_jsx(_components.code,{children:`21:9`})]}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`3:4`}),`, atau `,_jsx(_components.code,{children:`4:3`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`last_frame_image`}),` diberikan`]}),_jsx(_components.td,{children:`Hapus kolom; pasangan frame awal/akhir tidak didukung`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duration`}),` kurang dari 3 atau lebih dari 16`]}),_jsx(_components.td,{children:`Gunakan bilangan bulat 3–16 detik`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Resolusi tidak didukung, seperti `,_jsx(_components.code,{children:`480p`}),` atau `,_jsx(_components.code,{children:`8K`})]}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`540p`}),`, `,_jsx(_components.code,{children:`720p`}),`, `,_jsx(_components.code,{children:`1080p`}),`, `,_jsx(_components.code,{children:`2K`}),`, atau `,_jsx(_components.code,{children:`4K`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`model-vidu-lainnya`,children:`Model Vidu lainnya`}),`\n`,_jsxs(_components.p,{children:[`Untuk teks-ke-video atau pasangan frame awal/akhir, gunakan `,_jsx(_components.a,{href:`/id/api-reference/videos/vidu-q3-pro/generation`,children:`Vidu Q3 Pro / Turbo`}),`. Model ini sudah mendukung banyak gambar referensi; `,_jsx(_components.a,{href:`/id/api-reference/videos/vidu-q3/generation`,children:`Vidu Q3 Mix / Standard`}),` juga menyediakan referensi-ke-video. Untuk klip 1–2 detik, pilih `,_jsx(_components.code,{children:`viduq3-pro`}),`; model ini memerlukan minimal 3 detik.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Vidu Q4 Preview Pembuatan Video","description":"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q4-preview/generation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Mode pembuatan","slug":"mode-pembuatan","depth":2,"children":[]},{"title":"Header permintaan","slug":"header-permintaan","depth":2,"children":[]},{"title":"Parameter permintaan","slug":"parameter-permintaan","depth":2,"children":[]},{"title":"Persyaratan materi","slug":"persyaratan-materi","depth":2,"children":[]},{"title":"Contoh permintaan","slug":"contoh-permintaan","depth":2,"children":[{"title":"Hanya frame awal, tanpa prompt","slug":"hanya-frame-awal-tanpa-prompt","depth":3,"children":[]},{"title":"Frame awal dengan peran eksplisit dan output 4K","slug":"frame-awal-dengan-peran-eksplisit-dan-output-4k","depth":3,"children":[]},{"title":"Video tanpa suara menggunakan kolom frame awal","slug":"video-tanpa-suara-menggunakan-kolom-frame-awal","depth":3,"children":[]},{"title":"Video dari beberapa gambar dan audio referensi","slug":"video-dari-beberapa-gambar-dan-audio-referensi","depth":3,"children":[]},{"title":"Referensi-ke-video dengan satu gambar","slug":"referensi-ke-video-dengan-satu-gambar","depth":3,"children":[]}]},{"title":"Respons pengiriman","slug":"respons-pengiriman","depth":2,"children":[]},{"title":"Memeriksa hasil tugas","slug":"memeriksa-hasil-tugas","depth":2,"children":[]},{"title":"Penagihan","slug":"penagihan","depth":2,"children":[]},{"title":"Kesalahan parameter umum","slug":"kesalahan-parameter-umum","depth":2,"children":[]},{"title":"Model Vidu lainnya","slug":"model-vidu-lainnya","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.apimart.ai/v1/videos/generations\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"viduq4-preview\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"Seorang gadis menoleh sambil tersenyum, rambut panjangnya tertiup angin dan kamera perlahan mendekat\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"image_urls\": [\"https://example.com/first-frame.png\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 5,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"1080p\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.apimart.ai/v1/videos/generations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"viduq4-preview\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Seorang gadis menoleh sambil tersenyum, rambut panjangnya tertiup angin dan kamera perlahan mendekat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"image_urls\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/first-frame.png\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1080p\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response.raise_for_status()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.apimart.ai/v1/videos/generations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"viduq4-preview\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> prompt:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Seorang gadis menoleh sambil tersenyum, rambut panjangnya tertiup angin dan kamera perlahan mendekat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> image_urls:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/first-frame.png\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> duration:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> resolution:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"1080p\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ok\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">text\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">());\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">());\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"submitted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"task_01K...\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Vidu Q4 Preview Pembuatan Video","path":"/v1/videos/generations","servers":[{"url":"https://api.apimart.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Autentikasi Bearer dengan format `Bearer \u003ctoken>` ; `\u003ctoken>` adalah APIMart API Key Anda.","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Harus persis `viduq4-preview` dalam huruf kecil.","required":true}],"nsfw_check":[{"type":"boolean","description":"Menentukan apakah moderasi konten dijalankan sebelum tugas video dikirim. `true` : periksa prompt dan gambar input dengan `omni-moderation-latest` `false` atau dihilangkan: tidak mengirim permintaan moderasi, tanpa biaya atau latensi moderasi tambahan (default)"}],"prompt":[{"type":"string","description":"Prompt pembuatan video, maksimal 20.000 karakter. Gambar-ke-video: opsional. Jika dihilangkan, model membuat konten berdasarkan frame awal. Referensi-ke-video: wajib. Jika tidak ada, mengembalikan HTTP 400."}],"image_urls":[{"type":"array","items":[{"type":"string"}],"description":"Array gambar. Mendukung URL gambar publik atau Data URL Base64 seperti `data:image/png;base64,...` . Gambar-ke-video: hanya satu gambar sebagai frame awal. Referensi-ke-video: total 1–15 gambar bersama `image_with_roles` . Dapat digabung dengan `image_with_roles` ; jumlahnya dijumlahkan. Jangan gabungkan dengan `first_frame_image` atau peran `first_frame` eksplisit. Untuk satu gambar tanpa peran, keberadaan audio referensi juga menentukan mode."}],"image_with_roles":[{"type":"array","items":[{"type":"object","properties":{"url":[{"type":"string","description":"URL gambar publik atau Data URL Base64.","required":true}],"role":[{"type":"string","description":"Peran gambar, tidak peka huruf besar/kecil: `first_frame` : frame awal untuk gambar-ke-video. `reference_image` : gambar referensi untuk referensi-ke-video; `reference` juga diterima. Dihilangkan atau kosong: tanpa audio referensi, jumlah total menentukan mode: satu gambar untuk gambar-ke-video, dua atau lebih untuk referensi-ke-video. Dengan audio referensi, mode referensi-ke-video digunakan. Nilai lain seperti `last_frame` mengembalikan HTTP 400 secara sinkron."}]}}],"description":"Array gambar dengan peran. Satu elemen untuk gambar-ke-video; total 1–15 gambar bersama `image_urls` untuk referensi-ke-video. Dapat digabung dengan `image_urls` untuk memasok referensi, tetapi peran frame awal tidak boleh dicampur dengan materi referensi."}],"first_frame_image":[{"type":"string","description":"Khusus gambar-ke-video. Berikan URL publik atau Data URL Base64 untuk frame awal. Saat memakai kolom ini, jangan berikan gambar lain atau audio referensi. Untuk referensi-ke-video, gunakan `image_urls` atau `image_with_roles` ."}],"audio_urls":[{"type":"array","items":[{"type":"string"}],"description":"Array URL audio referensi, khusus referensi-ke-video. Maksimal 3 klip jika digabung dengan `audio_url` . Wajib MP3, tiap klip 3–12 detik dan maksimal 50MB. Audio referensi tetap memerlukan minimal satu gambar dan `prompt` . Format atau durasi audio yang tidak sesuai menyebabkan tugas gagal saat eksekusi dengan pengembalian dana penuh, bukan HTTP 400 sinkron saat pengiriman."}],"audio_url":[{"type":"string","description":"URL satu audio referensi. Persyaratan sama dengan `audio_urls` ; maksimal 3 klip dari kedua kolom."}],"aspect_ratio":[{"type":"string","description":"Khusus referensi-ke-video. Mendukung `1:1` , `9:16` , `16:9` , `3:4` , dan `4:3` . Default: `16:9` . Pada gambar-ke-video, frame awal menentukan rasio aspek dan parameter ini diabaikan."}],"size":[{"type":"string","description":"Alias kompatibilitas untuk `aspect_ratio` dengan nilai yang sama. Sebaiknya gunakan hanya salah satu kolom. Tidak berpengaruh pada gambar-ke-video."}],"duration":[{"type":"integer","description":"Durasi video dalam detik. Mendukung 3–16 detik, bukan 1–2 detik."}],"resolution":[{"type":"string","description":"Resolusi: `540p` , `720p` , `1080p` , `2K` , atau `4K` , tidak peka huruf besar/kecil."}],"audio":[{"type":"boolean","description":"Apakah video menyertakan dialog dan efek suara. `true` : video dengan audio (default). `false` : video tanpa suara. Harga video dengan atau tanpa suara sama."}],"seed":[{"type":"integer","description":"Seed acak. Hilangkan atau kirim `0` untuk nilai acak."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","nsfw_check":true,"prompt":"\u003cstring>","image_urls":["\u003cstring>"],"image_with_roles":[{"url":"\u003cstring>","role":"\u003cstring>"}],"first_frame_image":"\u003cstring>","audio_urls":["\u003cstring>"],"audio_url":"\u003cstring>","aspect_ratio":"\u003cstring>","size":"\u003cstring>","duration":123,"resolution":"\u003cstring>","audio":true,"seed":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"code":[{"type":"integer","description":"Kode status respons; `200` berarti berhasil."}],"data":[{"type":"array","items":[{"type":"object","properties":{"status":[{"type":"string","description":"`submitted` berarti pengiriman berhasil, bukan pembuatan video telah selesai."}],"task_id":[{"type":"string","description":"ID tugas untuk memeriksa status dan hasil."}]}}],"description":"Hasil pengiriman tugas."}]}}],"examples":{"example":{"value":{"code":123,"data":[{"status":"\u003cstring>","task_id":"\u003cstring>"}]}}}}}},"deprecated":false}},"jsLinks":["/_mintlify/custom/apicore/1f7e29c94a916812/cn-domain-rewrite.js","/_mintlify/custom/apicore/afc6076845564106/param-field-copy.js"],"subdomain":"apicore","siteName":"APIMart","title":"Vidu Q4 Preview Pembuatan Video - APIMart","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"zh-Hans":{"href":"/cn/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"ja":{"href":"/ja/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"ko":{"href":"/ko/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"ru":{"href":"/ru/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"de":{"href":"/de/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"fr":{"href":"/fr/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"pt":{"href":"/pt/api-reference/videos/vidu-q4-preview/generation","matchLevel":1},"id":{"href":"/id/api-reference/videos/vidu-q4-preview/generation","matchLevel":0},"es":{"href":"/es/api-reference/videos/vidu-q4-preview/generation","matchLevel":1}}},"lastModified":"2026-11-13T03:13:24.638Z","originalFileLocation":"id/api-reference/videos/vidu-q4-preview/generation.mdx","locale":"id"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.\">\u003cmeta data-mint-head name=\"keywords\" content=\"OpenAI compatible, API gateway, GPT-5, Claude, Gemini, multi-provider, transparent pricing, SLA\">\u003cmeta data-mint-head name=\"application-name\" content=\"APIMart\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Vidu Q4 Preview Pembuatan Video - APIMart\">\u003cmeta data-mint-head property=\"og:description\" content=\"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"APIMart\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apicore.mintlify.site/_mintlify/api/og/v2?division=Vidu+Q4+Preview\u0026amp;title=Vidu+Q4+Preview+Pembuatan+Video\u0026amp;description=Buat+video+dari+satu+frame+awal+atau+hingga+15+gambar+dan+3+klip+audio+referensi.+3%E2%80%9316+detik%2C+hingga+4K%2C+dengan+audio+secara+default.\u0026amp;theme=20cab0b8d8d3e93733d26c49\u0026amp;signature=8ef7fe29ffea7bb5d71d2f36506a8864de9eb55993399e8d25c7e6360cc7967c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Vidu Q4 Preview Pembuatan Video - APIMart\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apicore.mintlify.site/_mintlify/api/og/v2?division=Vidu+Q4+Preview\u0026amp;title=Vidu+Q4+Preview+Pembuatan+Video\u0026amp;description=Buat+video+dari+satu+frame+awal+atau+hingga+15+gambar+dan+3+klip+audio+referensi.+3%E2%80%9316+detik%2C+hingga+4K%2C+dengan+audio+secara+default.\u0026amp;theme=20cab0b8d8d3e93733d26c49\u0026amp;signature=8ef7fe29ffea7bb5d71d2f36506a8864de9eb55993399e8d25c7e6360cc7967c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"APIMart\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@APIMart_\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/id/api-reference/videos/vidu-q4-preview/generation.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.apimart.ai/en/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.apimart.ai/cn/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.apimart.ai/ja/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.apimart.ai/ko/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.apimart.ai/ru/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.apimart.ai/de/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.apimart.ai/fr/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.apimart.ai/pt/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.apimart.ai/es/api-reference/videos/vidu-q4-preview/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.apimart.ai/en/api-reference/videos/vidu-q4-preview/generation\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.apimart.ai/#organization\",\"name\":\"APIMart\",\"url\":\"https://docs.apimart.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.apimart.ai#website\",\"name\":\"APIMart\",\"url\":\"https://docs.apimart.ai\",\"publisher\":{\"@id\":\"https://docs.apimart.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation#webpage\",\"url\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation\",\"name\":\"Vidu Q4 Preview Pembuatan Video\",\"description\":\"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.\",\"dateModified\":\"2026-11-13T03:13:24.638Z\",\"isPartOf\":{\"@id\":\"https://docs.apimart.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Seri Video\",\"item\":\"https://docs.apimart.ai/id/api-reference/videos/apimart-zoe/generation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vidu Q4 Preview Pembuatan Video\",\"item\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation#apireference\",\"headline\":\"Vidu Q4 Preview Pembuatan Video\",\"name\":\"Vidu Q4 Preview Pembuatan Video\",\"description\":\"Buat video dari satu frame awal atau hingga 15 gambar dan 3 klip audio referensi. 3–16 detik, hingga 4K, dengan audio secara default.\",\"url\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.apimart.ai/id/api-reference/videos/vidu-q4-preview/generation#webpage\"},\"dateModified\":\"2026-11-13T03:13:24.638Z\",\"publisher\":{\"@id\":\"https://docs.apimart.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.apimart.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"APIMart\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"APIMart\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/id/api-reference/videos/vidu-q4-preview/generation.md","siteName":"APIMart","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/en/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/cn/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api-reference/videos/vidu-q4-preview/generation"}]},{"language":"id","tabs":[{"tab":"Panduan API","groups":[{"group":"Ikhtisar","pages":[{"title":"APIMart — Gateway API yang Kompatibel dengan OpenAI (GPT-5, Claude, Gemini)","href":"/id"}]},{"group":"Model","pages":[{"title":"API metadata daftar model","api":"GET https://api.apimart.ai/v1/models","href":"/id/api-reference/texts/models/list"}]},{"group":"Seri Teks","icon":"text","pages":[{"title":"API Chat Umum (Streaming Bawaan)","api":"POST https://api.apimart.ai/v1/chat/completions","href":"/id/api-reference/texts/general/chat-completions"},{"title":"API Chat Umum (Non-Streaming Bawaan)","api":"POST https://api.apimart.ai/api/v1/chat/completions","href":"/id/api-reference/texts/general/chat-completions-nostream"},{"title":"Claude Messages API","api":"POST https://api.apimart.ai/v1/messages","href":"/id/api-reference/texts/general/claude-messages"},{"title":"Format Native Gemini","api":"POST https://api.apimart.ai/v1beta/models/{model}:{method}","href":"/id/api-reference/texts/gemini/quickstart"},{"title":"OpenAI Multimodal Responses API","api":"POST https://api.apimart.ai/v1/responses","href":"/id/api-reference/texts/openai/responses"},{"title":"Panduan Cache Konteks OpenAI","sidebarTitle":"Cache Konteks OpenAI","icon":"database","href":"/id/api-reference/texts/openai/context-cache"},{"title":"Panduan Penggunaan Cache Konteks Gemini","sidebarTitle":"Cache Konteks Gemini","icon":"database","href":"/id/api-reference/texts/gemini/context-cache"},{"title":"Panduan Penggunaan Cache Konteks Claude","sidebarTitle":"Cache Konteks Claude","icon":"database","href":"/id/api-reference/texts/general/claude-context-cache"},{"group":"qwen3.8-max","icon":"message","pages":[{"title":"qwen3.8-max Integration Guide","api":"POST https://api.apimart.ai/v1/chat/completions","href":"/id/api-reference/texts/qwen3.8-max/guide"},{"title":"Model Pricing API","api":"GET https://api.apimart.ai/api/pricing/model?model=qwen3.8-max","href":"/id/api-reference/texts/qwen3.8-max/pricing"}]}]},{"group":"Seri Gambar","icon":"image","pages":[{"group":"Nano banana 2.1","icon":"image","pages":[{"title":"Nano banana 2.1 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-nano-banana-2.1/generation"}]},{"group":"Nano banana2","icon":"image","pages":[{"title":"Nano banana2 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-3.1-flash/generation"},{"title":"Nano Banana Lite Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-3.1-flash/generation-lite"}]},{"group":"Nano banana Pro","icon":"image","pages":[{"title":"Nano banana Pro Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-3-pro/generation"}]},{"group":"Nano banana","icon":"image","pages":[{"title":"Nano banana Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-2.5-flash/generation"}]},{"group":"GPT-Image-1.5","icon":"image","pages":[{"title":"GPT-Image-1.5 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-1/generation"}]},{"group":"GPT-Image-2","icon":"image","pages":[{"title":"GPT-Image-2 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2/generation"},{"title":"GPT-Image-2 Official Channel Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2/official"}]},{"group":"GPT-Image-2.5","icon":"image","pages":[{"title":"Pembuatan Gambar GPT-Image-2.5","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.5/generation"}]},{"group":"GPT-Image-2.5 Ext","icon":"image","pages":[{"title":"GPT-Image-2.5 Ext — Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.5-ext/generation"}]},{"group":"GPT-Image-2.6","icon":"image","pages":[{"title":"GPT-Image-2.6 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.6/generation"}]},{"group":"GPT-Image-2.6 Ext","icon":"image","pages":[{"title":"GPT-Image-2.6 Ext Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.6-ext/generation"}]},{"group":"Seedream-4.0","icon":"image","pages":[{"title":"Seedream-4.0 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-4/generation"}]},{"group":"Seedream-4.5","icon":"image","pages":[{"title":"Seedream-4.5 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-4.5/generation"}]},{"group":"Seedream-5.0-Lite","icon":"image","pages":[{"title":"Seedream-5.0-Lite Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-lite/generation"}]},{"group":"Seedream-5.0-Pro","icon":"image","pages":[{"title":"Seedream-5.0-Pro Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-0-pro/generation"}]},{"group":"Seedream-5.0-Flash","icon":"image","pages":[{"title":"Seedream-5.0-Flash Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-0-flash/generation"}]},{"group":"Seedream-5.5","icon":"image","pages":[{"title":"Pembuatan Gambar Seedream 5.5","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-5/generation"}]},{"group":"Kling V4 Image","icon":"image","pages":[{"title":"Pembuatan Gambar Kling V4 Image","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/kling-v4-image/generation"}]},{"group":"Kling V4 Long Image","icon":"image","pages":[{"title":"Pembuatan Gambar Panjang Kling V4 Long Image","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/kling-v4-long-image/generation"}]},{"group":"Flux Kontext","icon":"image","pages":[{"title":"Pembuatan dan Pengeditan Gambar FLUX Kontext","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-kontext/generation"}]},{"group":"Flux 2.0","icon":"image","pages":[{"title":"Pembuatan Gambar FLUX.2","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-2/generation"}]},{"group":"FLUX 3 Image","icon":"image","pages":[{"title":"FLUX 3 Image Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-3-image/generation"}]},{"group":"FLUX 3 Image Klein","icon":"image","pages":[{"title":"FLUX 3 Image Klein Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-3-image-klein/generation"}]},{"group":"Hy-Image-3.5 Preview","icon":"image","pages":[{"title":"Hy-Image-3.5 Preview Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/hy-image-v3.5-preview/generation"}]},{"group":"Muse Image Ext","icon":"image","pages":[{"title":"Pembuatan Gambar Muse Image Ext","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/muse-image-ext/generation"}]},{"group":"MAI-Image-2.7","icon":"image","pages":[{"title":"MAI-Image-2.7 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/mai-image-2.7/generation"}]},{"group":"MAI-Image-2.6","icon":"image","pages":[{"title":"MAI-Image-2.6 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/mai-image-2.6/generation"}]},{"group":"MiniMax-H3-Image","icon":"image","pages":[{"title":"Pembuatan Gambar MiniMax-H3-Image","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/minimax-h3-image/generation"}]},{"group":"MiniMax-H3-Image-Highspeed","icon":"image","pages":[{"title":"Pembuatan Gambar MiniMax-H3-Image-Highspeed","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/minimax-h3-image-highspeed/generation"}]},{"group":"Qwen Image 2.0","icon":"image","pages":[{"title":"Qwen Image 2.0 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/qwen-image/generation"}]},{"group":"Qwen Image 3.0","icon":"image","pages":[{"title":"Pembuatan Gambar Qwen Image 3.0","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/qwen-image-3.0/generation"}]},{"group":"Z-Image-Turbo","icon":"image","pages":[{"title":"Z-Image-Turbo Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/z-image-turbo/generation"}]},{"group":"Grok Imagine","icon":"image","pages":[{"title":"Grok Imagine generasi gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine/generation"}]},{"group":"Grok Imagine 2.0 Ext","icon":"image","pages":[{"title":"Grok Imagine 2.0 Ext Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine-2.0-ext/generation"},{"title":"Lapisan dan Pengeditan Wilayah Grok Imagine 2.0 Ext","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine-2.0-ext/layer-region-edit"},{"title":"Grok Imagine Image 2.0 — generasi dan pengeditan resmi","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine-2.0-ext/official"}]},{"group":"wan2.7-image","icon":"image","pages":[{"title":"wan2.7 Pembuatan \u0026 Pengeditan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/wan2.7-image/generation"}]},{"group":"Midjourney","icon":"image","pages":[{"title":"API Midjourney","href":"/id/api-reference/images/midjourney/generation"},{"title":"Imagine (teks ke gambar)","api":"POST https://api.apimart.ai/v1/midjourney/generations","href":"/id/api-reference/images/midjourney/imagine"},{"title":"Blend (gabungan multi-gambar)","api":"POST https://api.apimart.ai/v1/midjourney/generations/blend","href":"/id/api-reference/images/midjourney/blend"},{"title":"Describe (gambar ke teks)","api":"POST https://api.apimart.ai/v1/midjourney/generations/describe","href":"/id/api-reference/images/midjourney/describe"},{"title":"Edits (edit gambar)","api":"POST https://api.apimart.ai/v1/midjourney/generations/edits","href":"/id/api-reference/images/midjourney/edits"},{"title":"Upscale (perbesar tile)","api":"POST https://api.apimart.ai/v1/midjourney/generations/upscale","href":"/id/api-reference/images/midjourney/upscale"},{"title":"Variation (variasi)","api":"POST https://api.apimart.ai/v1/midjourney/generations/variation","href":"/id/api-reference/images/midjourney/variation"},{"title":"High Variation (variasi kuat)","api":"POST https://api.apimart.ai/v1/midjourney/generations/high-variation","href":"/id/api-reference/images/midjourney/high-variation"},{"title":"Low Variation (variasi halus)","api":"POST https://api.apimart.ai/v1/midjourney/generations/low-variation","href":"/id/api-reference/images/midjourney/low-variation"},{"title":"Reroll (regenerasi)","api":"POST https://api.apimart.ai/v1/midjourney/generations/reroll","href":"/id/api-reference/images/midjourney/reroll"},{"title":"Zoom (zoom out)","api":"POST https://api.apimart.ai/v1/midjourney/generations/zoom","href":"/id/api-reference/images/midjourney/zoom"},{"title":"Pan (pan)","api":"POST https://api.apimart.ai/v1/midjourney/generations/pan","href":"/id/api-reference/images/midjourney/pan"},{"title":"Inpaint (Vary Region)","api":"POST https://api.apimart.ai/v1/midjourney/generations/inpaint","href":"/id/api-reference/images/midjourney/inpaint"},{"title":"Modal (kirim parameter)","api":"POST https://api.apimart.ai/v1/midjourney/generations/modal","href":"/id/api-reference/images/midjourney/modal"},{"title":"Video (gambar ke video)","api":"POST https://api.apimart.ai/v1/midjourney/generations/video","href":"/id/api-reference/images/midjourney/video"},{"title":"Remix (reshape, hanya v8.1 / v8.2)","api":"POST https://api.apimart.ai/v1/midjourney/generations/remix-strong","href":"/id/api-reference/images/midjourney/remix"},{"title":"Query tugas","api":"GET https://api.apimart.ai/v1/midjourney/{task_id}","href":"/id/api-reference/images/midjourney/query"},{"title":"Praktik Terbaik","href":"/id/api-reference/images/midjourney/best-practices"},{"title":"Contoh Alur Kerja Lengkap","href":"/id/api-reference/images/midjourney/workflow"}]}]},{"group":"Seri Video","icon":"video","pages":[{"group":"apimart-zoe","icon":"video","pages":[{"title":"Pembuatan Video apimart-zoe","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/apimart-zoe/generation"}]},{"group":"seedance-1-0-pro","icon":"video","pages":[{"title":"Pembuatan Video seedance-1-0-pro","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/doubao/generation"}]},{"group":"seedance-2-0","icon":"video","pages":[{"title":"Pembuatan Video seedance-2.0","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/seedance-2-0/generation"},{"title":"Aset Avatar Virtual","api":"POST https://api.apimart.ai/v1/seedance2/private-avatar","href":"/id/api-reference/videos/seedance-2-0/private-avatar"}]},{"group":"seedance-2-5","icon":"video","pages":[{"title":"seedance-2.5 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/seedance-2-5/generation"}]},{"group":"seedance-2-5-flash","icon":"video","pages":[{"title":"Pembuatan Video Seedance 2.5 Flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/seedance-2-5-flash/generation"}]},{"group":"VEO3","icon":"video","pages":[{"title":"Pembuatan Video VEO3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/veo3/generation"},{"title":"Remix Video VEO3","api":"POST https://api.apimart.ai/v1/videos/{task_id}/remix","href":"/id/api-reference/videos/veo3/remix"},{"title":"Pembuatan Video Resmi VEO3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/veo3/generation-official"}]},{"group":"MiniMax-Hailuo-02","icon":"video","pages":[{"title":"Pembuatan Video MiniMax-Hailuo-02","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-hailuo/generation"}]},{"group":"MiniMax-Hailuo-2.3","icon":"video","pages":[{"title":"Pembuatan Video MiniMax-Hailuo-2.3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-hailuo-2.3/generation"}]},{"group":"MiniMax-H3","icon":"video","pages":[{"title":"Pembuatan Video MiniMax-H3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/generation"},{"title":"Pembuatan Video MiniMax-H3-Max","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/max"},{"title":"MiniMax-H3 Context-IR peningkatan prompt","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/context-ir"},{"title":"MiniMax-H3 Regeneration","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/regeneration"}]},{"group":"FLUX 3 Video","icon":"video","pages":[{"title":"Pembuatan Video FLUX 3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/flux-3-video/generation"}]},{"group":"SkyReels V4","icon":"video","pages":[{"title":"Pembuatan Video SkyReels V4","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/skyreels-v4/generation"}]},{"group":"HappyHorse","icon":"video","pages":[{"title":"Pembuatan Video HappyHorse 1.0","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/happyhorse-1.0/generation"},{"title":"Pembuatan Video HappyHorse 1.1","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/happyhorse-1.1/generation"}]},{"group":"Wan3.0","icon":"video","pages":[{"title":"Generasi Video Wan3.0","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan3.0-video/generation"}]},{"group":"Wan2.7","icon":"video","pages":[{"title":"Pembuatan Video Wan2.7","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.7/generation"},{"title":"Wan2.7-R2V Referensi-ke-Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.7-r2v/generation"},{"title":"Pengeditan Video Wan2.7-VideoEdit","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.7-videoedit/generation"}]},{"group":"Wan2.6","icon":"video","pages":[{"title":"Pembuatan Video Wan2.6","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.6/generation"},{"title":"Gambar-ke-Video wan2.6-i2v-flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.6/i2v-flash-generation"}]},{"group":"Wan2.5","icon":"video","pages":[{"title":"Pembuatan Video wan2.5-preview","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.5/generation"}]},{"group":"Kling 2.6","icon":"video","pages":[{"title":"Pembuatan Video Kling 2.6","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v2-6/generation"},{"title":"Pembuatan Video Kontrol Gerak Kling v2.6","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v2-6/kling-v2-6-motion-control-generation"}]},{"group":"Kling v3","icon":"video","pages":[{"title":"Pembuatan Video Kling v3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v3/generation"}]},{"group":"Kling 3.0 Turbo","icon":"video","pages":[{"title":"Pembuatan Video Kling 3.0 Turbo","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-3.0-turbo/generation"}]},{"group":"Kling v3 Omni","icon":"video","pages":[{"title":"Pembuatan Video Kling v3 Omni","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v3-omni/generation"}]},{"group":"Kling V4","icon":"video","pages":[{"title":"Kling V4 Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v4/generation"}]},{"group":"Kling V4 Flash","icon":"video","pages":[{"title":"Kling V4 Flash Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v4-flash/generation"}]},{"group":"Kling Video O1","icon":"video","pages":[{"title":"Pembuatan Video Kling Video O1","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-video-o1/generation"}]},{"group":"Vidu Q3(pro/turbo)","icon":"video","pages":[{"title":"Pembuatan Video Vidu Q3 (pro/turbo)","description":" - Mode pemrosesan asinkron, mengembalikan ID tugas untuk kueri berikutnya\n- Mendukung teks-ke-video, gambar-ke-video, dan pembuatan video frame pertama-terakhir\n- Mendukung resolusi 540p / 720p / 1080p\n- Rentang durasi 1-16 detik, audio diaktifkan secara default ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q3-pro/generation"}]},{"group":"Vidu Q4 Preview","icon":"video","pages":[{"title":"Vidu Q4 Preview Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q4-preview/generation"}]},{"group":"Vidu Q3(mix/standard)","icon":"video","pages":[{"title":"Referensi-ke-Video Vidu Q3 (mix/standar)","description":" - Mode pemrosesan asinkron, mengembalikan ID tugas untuk kueri berikutnya\n- Unggah 1-7 gambar referensi + prompt teks untuk menghasilkan video pendek yang berisi subjek referensi\n- Mendukung resolusi 540p / 720p / 1080p\n- Rentang durasi 1-16 detik, cocok untuk konsistensi karakter dan kelanjutan gaya ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q3/generation"}]},{"group":"Grok Imagine","icon":"video","pages":[{"title":"Pembuatan Video Grok Imagine 1.5","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/grok-imagine/generation"},{"title":"Model Video Resmi Grok","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/grok-imagine/official"}]},{"group":"Pixverse v6","icon":"video","pages":[{"title":"Pixverse v6 Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/pixverse-v6/generation"}]},{"group":"PixVerse V6 Max","icon":"video","pages":[{"title":"PixVerse V6 Max Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/pixverse-v6-max/generation"}]},{"group":"Muse Video Ext","icon":"video","pages":[{"title":"Pembuatan Video Muse Video Ext","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/muse-video-ext/generation"}]},{"group":"gemini-omni-1.1-flash-ext","icon":"video","pages":[{"title":"Pembuatan Video gemini-omni-1.1-flash-ext","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/omni-flash-ext/generation"}]},{"group":"gemini-omni-1.2-flash-ext","icon":"video","pages":[{"title":"Pembuatan Video gemini-omni-1.2-flash-ext","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/gemini-omni-1.2-flash-ext/generation"}]},{"group":"Gemini Omni 1.2 Flash","icon":"video","pages":[{"title":"Pembuatan Video Gemini Omni 1.2 Flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/gemini-omni-1.2-flash/generation"}]},{"group":"Gemini Omni 1.1 Flash","icon":"video","pages":[{"title":"Pembuatan Video Gemini Omni 1.1 Flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/gemini-omni-1.1-flash/generation"}]},{"group":"Gemini Omni Flash","icon":"video","pages":[{"title":"Pembuatan Video Gemini Omni Flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/gemini-omni-flash-preview/generation"}]}]},{"group":"Seri Audio","icon":"microphone","pages":[{"title":"Transkripsi Audio Whisper-1","api":"POST https://api.apimart.ai/v1/audio/transcriptions","href":"/id/api-reference/audios/whisper-1"},{"title":"TTS Text-to-Speech","api":"POST https://api.apimart.ai/v1/audio/speech","href":"/id/api-reference/audios/tts"},{"group":"Flow Music","icon":"music","pages":[{"title":"Membuat Musik","api":"POST https://api.apimart.ai/v1/music/generations","href":"/id/api-reference/audios/flow-music/music"},{"title":"Membuat Musik dengan Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations","href":"/id/api-reference/audios/flow-music/music-lyria-3-5"},{"title":"Membuat Lirik","api":"POST https://api.apimart.ai/v1/music/generations/lyricsFlowMusic","href":"/id/api-reference/audios/flow-music/lyrics"},{"title":"Perpanjangan Musik","api":"POST https://api.apimart.ai/v1/music/generations/extendFlowMusic","href":"/id/api-reference/audios/flow-music/extend"},{"title":"Perpanjangan Musik dengan Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations/extendFlowMusic","href":"/id/api-reference/audios/flow-music/extend-lyria-3-5"},{"title":"Penggantian Segmen","api":"POST https://api.apimart.ai/v1/music/generations/replaceFlowMusic","href":"/id/api-reference/audios/flow-music/replace"},{"title":"Penggantian Segmen dengan Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations/replaceFlowMusic","href":"/id/api-reference/audios/flow-music/replace-lyria-3-5"},{"title":"Aransemen Cover","api":"POST https://api.apimart.ai/v1/music/generations/coverFlowMusic","href":"/id/api-reference/audios/flow-music/cover"},{"title":"Aransemen Cover Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations/coverFlowMusic","href":"/id/api-reference/audios/flow-music/cover-lyria-3-5"},{"title":"Pemisahan Trek","api":"POST https://api.apimart.ai/v1/music/generations/stemsFlowMusic","href":"/id/api-reference/audios/flow-music/stems"},{"title":"Mengunggah Audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadAudioFlowMusic","href":"/id/api-reference/audios/flow-music/upload-audio"},{"title":"Mengunduh Audio","api":"POST https://api.apimart.ai/v1/music/generations/downloadAudioFlowMusic","href":"/id/api-reference/audios/flow-music/download-audio"},{"title":"Rendering Video Musik","api":"POST https://api.apimart.ai/v1/music/generations/videoClipFlowMusic","href":"/id/api-reference/audios/flow-music/video-clip"},{"title":"Melihat Tugas","api":"GET https://api.apimart.ai/v1/music/tasks/{task_id}","href":"/id/api-reference/audios/flow-music/query"}]},{"group":"Suno","icon":"music","pages":[{"title":"Aturan umum Suno V6 dan kueri tugas","api":"GET https://api.apimart.ai/v1/music/tasks/{task_id}","href":"/id/api-reference/audios/suno/overview"},{"title":"Menghasilkan musik","api":"POST https://api.apimart.ai/v1/music/generations","href":"/id/api-reference/audios/suno/generation"},{"title":"Menghasilkan lirik","api":"POST https://api.apimart.ai/v1/music/generations/lyrics","href":"/id/api-reference/audios/suno/lyrics"},{"title":"Pembuatan inspirasi (inspo)","api":"POST https://api.apimart.ai/v1/music/generations/inspo","href":"/id/api-reference/audios/suno/inspo"},{"title":"Pembuatan efek suara","api":"POST https://api.apimart.ai/v1/music/generations/sounds","href":"/id/api-reference/audios/suno/sounds"},{"title":"Peningkatan tag","api":"POST https://api.apimart.ai/v1/music/generations/upsampleTags","href":"/id/api-reference/audios/suno/upsample-tags"},{"title":"Unggah audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadTask","href":"/id/api-reference/audios/suno/upload"},{"title":"Unggah Audio dan Buat Cover","api":"POST https://api.apimart.ai/v1/music/generations/uploadCover","href":"/id/api-reference/audios/suno/upload-cover"},{"title":"Unggah dan Perpanjang Audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadExtend","href":"/id/api-reference/audios/suno/upload-extend"},{"title":"Buat Model Kustom","api":"POST https://api.apimart.ai/v1/music/generations/createModel","href":"/id/api-reference/audios/suno/create-model"},{"title":"Melanjutkan dan memperpanjang","api":"POST https://api.apimart.ai/v1/music/generations/extend","href":"/id/api-reference/audios/suno/extend"},{"title":"Menyanyikan ulang dengan gaya lain","api":"POST https://api.apimart.ai/v1/music/generations/coverSong","href":"/id/api-reference/audios/suno/cover-song"},{"title":"Optimalisasi mastering","api":"POST https://api.apimart.ai/v1/music/generations/remaster","href":"/id/api-reference/audios/suno/remaster"},{"title":"Ekstraksi trek","api":"POST https://api.apimart.ai/v1/music/generations/stems","href":"/id/api-reference/audios/suno/stems"},{"title":"Pemisahan trek penuh","api":"POST https://api.apimart.ai/v1/music/generations/stemsAll","href":"/id/api-reference/audios/suno/stems-all"},{"title":"Menambahkan vokal","api":"POST https://api.apimart.ai/v1/music/generations/addVocals","href":"/id/api-reference/audios/suno/add-vocals"},{"title":"Menambahkan iringan musik","api":"POST https://api.apimart.ai/v1/music/generations/addInstrumental","href":"/id/api-reference/audios/suno/add-instrumental"},{"title":"Menambahkan trek (add stem)","api":"POST https://api.apimart.ai/v1/music/generations/addStem","href":"/id/api-reference/audios/suno/add-stem"},{"title":"Ekstrak Vox (tidak digunakan lagi)","api":"POST https://api.apimart.ai/v1/music/generations/vox","href":"/id/api-reference/audios/suno/vox"},{"title":"Membuat suara","api":"POST https://api.apimart.ai/v1/music/generations/createVoice","href":"/id/api-reference/audios/suno/create-voice"},{"title":"Persona","api":"POST https://api.apimart.ai/v1/music/generations/persona","href":"/id/api-reference/audios/suno/persona"},{"title":"Penggantian paragraf","api":"POST https://api.apimart.ai/v1/music/generations/replaceMusic","href":"/id/api-reference/audios/suno/replace-music"},{"title":"Menghapus segmen","api":"POST https://api.apimart.ai/v1/music/generations/removeSection","href":"/id/api-reference/audios/suno/remove-section"},{"title":"Memotong audio","api":"POST https://api.apimart.ai/v1/music/generations/crop","href":"/id/api-reference/audios/suno/crop"},{"title":"Fade in","api":"POST https://api.apimart.ai/v1/music/generations/fadeIn","href":"/id/api-reference/audios/suno/fade-in"},{"title":"Fade out","api":"POST https://api.apimart.ai/v1/music/generations/fadeOut","href":"/id/api-reference/audios/suno/fade-out"},{"title":"Menyesuaikan kecepatan","api":"POST https://api.apimart.ai/v1/music/generations/adjustSpeed","href":"/id/api-reference/audios/suno/adjust-speed"},{"title":"Sintesis / penggabungan lagu lengkap","api":"POST https://api.apimart.ai/v1/music/generations/concat","href":"/id/api-reference/audios/suno/concat"},{"title":"Menghasilkan mashup (mashup)","api":"POST https://api.apimart.ai/v1/music/generations/mashup","href":"/id/api-reference/audios/suno/mashup"},{"title":"Sampel menjadi lagu (sample)","api":"POST https://api.apimart.ai/v1/music/generations/sample","href":"/id/api-reference/audios/suno/sample"},{"title":"Menghasilkan MIDI","api":"POST https://api.apimart.ai/v1/music/generations/midi","href":"/id/api-reference/audios/suno/midi"},{"title":"Garis waktu lirik","api":"POST https://api.apimart.ai/v1/music/generations/alignedLyrics","href":"/id/api-reference/audios/suno/aligned-lyrics"},{"title":"Analisis BPM","api":"POST https://api.apimart.ai/v1/music/generations/bpm","href":"/id/api-reference/audios/suno/bpm"},{"title":"Menghasilkan video musik (MV)","api":"POST https://api.apimart.ai/v1/music/generations/generateMp4","href":"/id/api-reference/audios/suno/generate-mp4"},{"title":"Unduh File Audio","api":"POST https://api.apimart.ai/v1/music/generations/download","href":"/id/api-reference/audios/suno/wav"}]}]},{"group":"Seri Moderasi","icon":"shield-check","pages":[{"group":"omni-moderation-latest","icon":"shield-check","pages":[{"title":"omni-moderation-latest Moderasi Konten","api":"POST https://api.apimart.ai/v1/moderations","href":"/id/api-reference/moderations/omni-moderation-latest/generation"}]}]},{"group":"Manajemen Unggahan","icon":"cloud-arrow-up","pages":[{"title":"Unggah Gambar","api":"POST https://api.apimart.ai/v1/uploads/images","href":"/id/api-reference/uploads/images"},{"title":"Unggah Video","api":"POST https://api.apimart.ai/v1/uploads/videos","href":"/id/api-reference/uploads/videos"},{"title":"Unggah Audio","api":"POST https://api.apimart.ai/v1/uploads/audios","href":"/id/api-reference/uploads/audios"}]},{"group":"Manajemen Tugas","icon":"list-check","pages":[{"title":"Dapatkan Status Tugas","api":"GET https://api.apimart.ai/v1/tasks/{task_id}","href":"/id/api-reference/tasks/status"},{"title":"Callback Penyelesaian Tugas (Webhook)","href":"/id/api-reference/tasks/webhook"}]},{"group":"Manajemen Akun","icon":"wallet","pages":[{"title":"Kueri Saldo Token","api":"GET https://api.apimart.ai/v1/balance","href":"/id/api-reference/account/token-balance"},{"title":"Kueri Saldo Pengguna","api":"GET https://api.apimart.ai/v1/user/balance","href":"/id/api-reference/account/user-balance"},{"title":"Kueri biaya dan penggunaan","api":"GET https://api.apimart.ai/v1/usage","href":"/id/api-reference/account/usage"},{"title":"Log Permintaan dan Harga Akun","href":"/id/api-reference/account/request-logs"}]}]},{"tab":"Integrasi","pages":[{"title":"Integrasi","href":"/id/integrations/chat/chatbox"}]},{"tab":"Panduan","pages":[{"title":"Panduan","href":"/id/quickstart"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/id/faqs"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/videos/vidu-q4-preview/generation"}]}]},"basePath":"","title":"Vidu Q4 Preview Pembuatan Video - APIMart","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js"]}