Model API'si
P-Video 2 Pro Avatar
Model kimliği
p-video-2-pro-avatarÇ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": "p-video-2-pro-avatar",
"input": {
"inputImage": [
"https://example.com/input.png"
],
"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": "p-video-2-pro-avatar", "quote_id": "QUOTE_ID", "input": {"inputImage":["https://example.com/input.png"],"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 |
|---|---|---|
inputImagezorunlu | array of image URLs | Required. One clear portrait used as the first frame. JPG, PNG or WebP, up to 20 MB. It sets the aspect ratio of the video. |
script | string | Use a script or a speech recording. The exact words the avatar speaks, up to about 3 minutes of speech. The longest likely reading is held and you pay for the actual length. |
inputAudio | array of image URLs | Use a speech recording or a script. The speech the avatar lip-syncs to, 1 second to 3 minutes, MP3 or WAV. The video matches its length and the price follows it. Used instead of the script. |
voice | string (enum) | Voice that reads the script. Not used with a speech recording. |
voiceLanguage | string (enum) | Language of the script. Not used with a speech recording. |
voicePrompt | string | Optional. Tone, pacing, accent and emotion for the script. Not spoken. Not used with a speech recording. |
prompt | string | Optional. Describe what the video should show. Defaults to "The person is talking." |
resolution | string (enum) | Required. Output resolution. The video is always 24 fps. |
promptUpsampling | string (enum) | Optional. Adds the scene's own motion from the portrait (rain, lights, background, body movement) after your prompt. Off uses the prompt exactly. |
seed | string | Optional. Random seed. Leave empty for a new result each time; set it to repeat one. |
Çı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
- 480p$0,04/ saniye
- 768p$0,07/ saniye
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?