Model API'si

Vidu Q2

Vidu Q2, metinden kısa video sahneleri üretir; süreyi, kadrajı ve hareket miktarını seçebilirsiniz.

Model kimliği

Her istekte bunu kullan
vidu/q2/text-to-video

Ç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/text-to-video",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 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/text-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

vidu/q2/text-to-video girdi alanları
AlanTürAçıklama
promptzorunlustring
Text prompt for video generation, max 3000 characters
seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
durationnumber (enum)
Duration of the video in seconds

Varsayılan: 4

Seçenekler: 2, 3, 4, 5, 6, 7, 8

resolutionstring (enum)
Output video resolution

Varsayılan: 720p

Seçenekler: 360p, 520p, 720p, 1080p

aspect_ratiostring (enum)
The aspect ratio of the output video

Varsayılan: 16:9

Seçenekler: 16:9, 9:16, 1:1

movement_amplitudestring (enum)
The movement amplitude of objects in the frame

Varsayılan: auto

Seçenekler: auto, small, medium, large

bgmboolean
Whether to add background music to the video (only for 4-second videos)

Varsayılan: false

Çı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.

İş yanıtından bir bölüm
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • 1080p · 2$0,64/ video
  • 1080p · 3$0,80/ video
  • 1080p · 4$0,96/ video
  • 1080p · 5$1,11/ video
  • 1080p · 6$1,27/ video
  • 1080p · 7$1,43/ video
  • 1080p · 8$1,59/ video
  • 360p · 2$0,16/ video
  • 360p · 3$0,16/ video
  • 360p · 4$0,16/ video
  • 360p · 5$0,16/ video
  • 360p · 6$0,16/ video
  • 360p · 7$0,16/ video
  • 360p · 8$0,16/ video
  • 520p · 2$0,32/ video
  • 520p · 3$0,32/ video
  • 520p · 4$0,32/ video
  • 520p · 5$0,32/ video
  • 520p · 6$0,32/ video
  • 520p · 7$0,32/ video
  • 520p · 8$0,32/ video
  • 720p · 2$0,48/ video
  • 720p · 3$0,48/ video
  • 720p · 4$0,48/ video
  • 720p · 5$0,48/ video
  • 720p · 6$0,48/ video
  • 720p · 7$0,48/ video
  • 720p · 8$0,48/ video

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?