Model API'si

P-Video 2 Pro Avatar

Model kimliği

Her istekte bunu kullan
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

p-video-2-pro-avatar girdi alanları
AlanTürAçıklama
inputImagezorunluarray 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.
scriptstring
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.
inputAudioarray 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.

Varsayılan: []

voicestring (enum)
Voice that reads the script. Not used with a speech recording.

Varsayılan: Zephyr (Female)

voiceLanguagestring (enum)
Language of the script. Not used with a speech recording.

Varsayılan: English (US)

Seçenekler: English (US), English (UK), Spanish, French, German, Italian, Portuguese (Brazil), Japanese, Korean, Hindi

voicePromptstring
Optional. Tone, pacing, accent and emotion for the script. Not spoken. Not used with a speech recording.
promptstring
Optional. Describe what the video should show. Defaults to "The person is talking."
resolutionstring (enum)
Required. Output resolution. The video is always 24 fps.

Varsayılan: 768p

Seçenekler: 480p, 768p

promptUpsamplingstring (enum)
Optional. Adds the scene's own motion from the portrait (rain, lights, background, body movement) after your prompt. Off uses the prompt exactly.

Varsayılan: true

Seçenekler: true, false

seedstring
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.

İş yanıtından bir bölüm
"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?