Model API'si
Rayjutsu
Videodaki kişileri, her biri için tek bir fotoğrafla değiştir. Hareket, dudak senkronu, kamera ve ses çekildiği gibi kalır.
Model kimliği
rayjutsuÇ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": "rayjutsu",
"input": {
"video_url": "https://example.com/input.mp4",
"image_urls": [
"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": "rayjutsu", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4","image_urls":["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 |
|---|---|---|
video_urlzorunlu | string (URL) | Upload the video to recast: MP4 or MOV, 4 to 20 seconds. The result keeps its length, motion, camera and sound. The price follows the video length. |
image_urlszorunlu | array of image URLs | Upload one photo per character, up to 8. Refer to them in the prompt as @Image1, @Image2 and so on. |
prompt | string | Optional. Say who replaces whom and what else should change, for example "Replace the dancer with @Image1." Leave it empty to swap the characters and keep the scene as filmed. |
resolution | string (enum) | Use 480p for drafts and 720p or 1080p for the final video. |
Çı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,0753/ saniye
- 720p$0,1427/ saniye
- 1080p$0,2853/ saniye
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?