Model API'si
Vidu Q2 Pro
Vidu Q2 Pro, başlangıç görselini canlandırır. Bitiş görseliyle geçişi yönlendirebilir, ayrı işlemle videoyu uzatabilirsiniz.
Model kimliği
vidu/q2/image-to-video/proBu modelin kendi kimliği olan başka modları da var: vidu/q2/video-extension/pro.
Çalıştır
Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu/q2/image-to-video/pro",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light",
"image_url": "https://example.com/input.png"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "vidu/q2/image-to-video/pro", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","image_url":"https://example.com/input.png"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Girdi
| Alan | Tür | Açıklama |
|---|---|---|
promptzorunlu | string | Text prompt for video generation, max 3000 characters |
image_urlzorunlu | string (image URL) | URL of the image to use as the starting frame |
end_image_url | string (image URL) | URL of the image to use as the ending frame. When provided, generates a transition video between start and end frames. |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
duration | number (enum) | Duration of the video in seconds |
resolution | string (enum) | Output video resolution |
movement_amplitude | string (enum) | The movement amplitude of objects in the frame |
bgm | boolean | Whether to add background music to the video (only for 4-second videos) |
Çıktı
Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]Fiyatlandırma
- 1080p · 2$0,80/ video
- 1080p · 3$0,96/ video
- 1080p · 4$1,11/ video
- 1080p · 5$1,27/ video
- 1080p · 6$1,43/ video
- 1080p · 7$1,59/ video
- 1080p · 8$1,75/ video
- 720p · 2$0,32/ video
- 720p · 3$0,40/ video
- 720p · 4$0,48/ video
- 720p · 5$0,56/ video
- 720p · 6$0,64/ video
- 720p · 7$0,72/ video
- 720p · 8$0,80/ video
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?