Model API'si
Veo 3.1
Model kimliği
veo-3-1Ç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": "veo-3-1",
"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": "veo-3-1", "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
| Alan | Tür | Açıklama |
|---|---|---|
inputImage | array of image URLs | Optional. Input image for the first frame of the video. |
inputImage2 | array of image URLs | Optional. Last frame of the video. |
inputImage3 | array of image URLs | Optional. Accepts 1 to 3 reference images. Duration will be 8 seconds by default. First and last images will be ignored. |
prompt | string | The prompt to generate the video. |
aspectRatio | string (enum) | Aspect ratio of the generated video |
resolution | string (enum) | Resolution of the generated video |
negativePrompt | string | A text string that describes anything you want to discourage the model from generating |
seed | integer | A number to make generated videos deterministic. For random result do not send. |
durationSeconds | string (enum) | Duration of the generated video in seconds. When using reference images duration is set to 8 by default. |
Çı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
- 4 · 720p$2,54/ video
- 6 · 720p$3,81/ video
- 8 · 720p$5,08/ video
- 4 · 1080p$2,54/ video
- 6 · 1080p$3,81/ video
- 8 · 1080p$5,08/ video
- 4 · 4k$3,81/ video
- 6 · 4k$5,71/ video
- 8 · 4k$7,61/ video
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?