Model API
Rayjutsu
Recast the people in a video from one photo each, keeping the motion, lip sync, camera and sound.
Model id
rayjutsuRun it
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 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"Input
| Name | Type | Description |
|---|---|---|
video_urlrequired | 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_urlsrequired | 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. |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]Pricing
- 480p$0.0753/ second
- 720p$0.1427/ second
- 1080p$0.2853/ second
The exact charge for your input comes from a quote. How charges settle