API Vidu 2.0 (reference-to-video)
Buat video dengan Vidu 2.0 (reference-to-video) lewat MartLLM.
Tampilkan lebih banyak
Dibuat oleh Vidu. MartLLM tidak menjalankan model ini. Di sini, penjual melayaninya lewat akun penyedia mereka sendiri.
Permintaan
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu/vidu-2-0-reference-to-video",
"prompt": "Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged",
"resolution": "720p",
"duration_seconds": 4,
"aspect_ratio": "16:9",
"image_url": "https://example.com/photo.jpg"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Atur UBERLLM_API_KEY ke API key Anda. Cek /v1/video/generations/<job id> setiap 5 detik sampai status bernilai "succeeded", lalu unduh file dengan key Anda. Job yang gagal menyertakan alasannya dan tidak dikenai biaya. Panduan API lengkap
Opsi
- Jenis tugas
- Gambar jadi video, Gambar referensi
- Resolusi
- 720p
- Durasi
- 4 dtk
- Rasio
- 16:9, 9:16, 1:1
- Gambar input
- Hingga 3
- Satuan tagihan
- per detik video
- ID model
vidu/vidu-2-0-reference-to-video
Coba Vidu 2.0 (reference-to-video)
Pengaturan
Gambar awal
Permintaan yang sama dengan pengaturan di kiri, siap disalin.
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu/vidu-2-0-reference-to-video",
"prompt": "",
"resolution": "720p",
"duration_seconds": 4,
"aspect_ratio": "16:9"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Keunggulan API Vidu 2.0 (reference-to-video)
- Klip hingga 4 detik dalam satu permintaan.
- Frame pertama yang persis dari gambar Anda.
- Hingga 3 gambar referensi untuk karakter, produk, atau tempat.
- Rasio: 16:9, 9:16, 1:1.
Contoh untuk memulai
01
Hidupkan foto
Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged
Dengan gambar Anda
02
Putar foto produk
The product in the photo turns slowly on a turntable, soft studio light, the label stays sharp and readable, clean white background
Dengan gambar Anda
03
Gerakkan adegan diam
The scene in the photo starts moving: leaves sway, light shifts across the ground, a gentle handheld drift; nothing new appears in the frame
Dengan gambar Anda
Parameter API Vidu 2.0 (reference-to-video)
| Parameter | Tipe | Fungsinya |
|---|---|---|
| model | vidu/vidu-2-0-reference-to-video | Wajib |
| prompt | string | Wajib. What to make. |
| image_url | string | Salah satu. The first frame: an https:// link or a data: URI. |
| input_images | array<string>, Maks. 3 | Salah satu. Several pictures (https:// links or data: URIs). |
| resolution | 720p | Opsional · 720p. The seller needs one: left out, 720p is sent. |
| duration_seconds | 4 | Opsional. Length in seconds. Left out: the model's shortest. |
| aspect_ratio | 16:9, 9:16, 1:1 | Opsional · 16:9. Shape of the video. The seller needs one: left out, 16:9 is sent. |
Diambil dari GET https://api.martllm.com/v1/models/vidu/vidu-2-0-reference-to-video: aturan yang sama yang dipakai API untuk memvalidasi setiap permintaan.
Perbandingan model Vidu
| Model | ID model | Mulai, per detik | Hingga | Terpanjang |
|---|---|---|---|---|
| Vidu 2.0 (reference-to-video) | vidu/vidu-2-0-reference-to-video | 720p | 4 dtk | |
| Vidu Q3 Text-to-Video | vidu/vidu-q3-text-to-video | $0.14 | 16 dtk | |
| Vidu Q3 (image-to-video) | vidu/vidu-q3-image-to-video | $0.0666 | 1080p | 16 dtk |
| Vidu Q3 Turbo Text to Video | vidu/viduq3-turbo-text-to-video | $0.0317 | 1080p | 16 dtk |
| Vidu Q3 Turbo Image to Video | vidu/viduq3-turbo-image-to-video | $0.0317 | 1080p | 16 dtk |
| Vidu Q4 | vidu/vidu-q4-image-to-video | $0.0403 | 4k | 16 dtk |
| Vidu Q4 Reference | vidu/vidu-q4-reference-to-video | $0.0403 | 4k | 16 dtk |
| Vidu 2.0 (text-to-video) | vidu/vidu-2-0-text-to-video | $0.0571 | 720p | 8 dtk |
| Vidu Q1 (reference-to-video) | vidu/vidu-q1-reference-to-video | $0.0762 | 1080p | 5 dtk |
| Vidu Q1 (text-to-video) | vidu/vidu-q1-text-to-video | $0.0762 | 1080p | 5 dtk |
FAQ API Vidu 2.0 (reference-to-video)
Berapa biaya Vidu 2.0 (reference-to-video)?
Vidu 2.0 (reference-to-video) ditagih sesuai harga yang tertera, tanpa tambahan biaya MartLLM. Permintaan yang gagal tidak dikenai biaya.
Bagaimana cara membuat video dengan Vidu 2.0 (reference-to-video)?
Kirim request POST ke https://api.martllm.com/v1/video/generations dengan API key MartLLM Anda, model "vidu/vidu-2-0-reference-to-video", dan prompt. Anda akan mendapatkan job ID; cek https://api.martllm.com/v1/video/generations/<job id> sampai statusnya "succeeded", lalu unduh dari https://api.martllm.com/v1/media/artifacts/<job id>/0.