Scail 2
Playground
Try it on WaveSpeedAI!SCAIL-2 is a fast AI character animation and subject replacement model that preserves identity and motion from a single reference image and a driving video. It supports both Animation mode and Replacement mode at 480p or 720p. Ready-to-use REST inference API for character animation, motion transfer, subject replacement, social media clips, creative video editing, and professional image-to-video workflows with simple integration, no coldstarts, and affordable pricing.
Features
SCAIL-2 generates character animation from a single reference image and a driving video. Upload a character image, provide a driving video, choose a generation mode, and create an animated or replacement-style video result.
SCAIL-2 supports two modes:
- Animation Mode — animate the reference character using the driving video’s motion.
- Replacement Mode — replace the driving video’s subject with the reference character while preserving the original scene.
Key Features
-
Image-to-video character animation Animate a reference character image using motion from an input driving video.
-
Subject replacement Swap the subject in the driving video with the reference character while preserving the original scene structure.
-
Two generation modes Use
animatefor motion-driven character animation orreplacefor subject replacement. -
Long-video support Supports input video duration up to 120 seconds for billing calculation.
-
Audio passthrough The driving video’s audio track is preserved in the output.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Reference character image. JPG or PNG is recommended; avoid WEBP. |
| video | Yes | Driving video that provides the motion. |
| prompt | No | Optional positive prompt describing the desired output. Default: empty string. |
| mode | No | Generation mode: animate or replace. Default: animate. |
| resolution | No | Output resolution tier: 480p or 720p. Default: 480p. |
| seed | No | Random seed. Use -1 for a random seed. Default: -1. |
How to Use
- Upload image — Provide a clear reference image of the character. JPG or PNG is recommended.
- Upload video — Provide the driving video that contains the motion.
- Add prompt (optional) — Describe the desired output, such as style, character details, or scene quality.
- Choose mode — Select
animateto animate the reference character, orreplaceto swap the video subject with the reference character. - Select resolution — Choose
480pfor the default output or720pfor higher resolution. - Generate — Create the final video result.
Pricing
| Resolution | Price per 5 s | Price per second | Max billed duration |
|---|---|---|---|
| 480p | $0.20 | $0.04 / s | 120 s |
| 720p | $0.40 | $0.08 / s | 120 s |
Billing Rules
- Minimum charge: 5 seconds. Any video shorter than 5 seconds is billed as 5 seconds.
- Maximum billed duration: 120 seconds.
720pcosts 2x the480pprice.- Billing is based on the input
videoduration after applying the 5-second minimum and 120-second maximum cap.
Best Use Cases
- Character animation — Animate a reference character using motion from a driving video.
- Dance and gesture transfer — Transfer body movement, gestures, and performance motion to a reference character.
- Subject replacement — Replace the main subject in a video with a reference character.
- Avatar content creation — Generate character videos for social media, entertainment, and creative projects.
- Video variation — Recreate the same motion with different character references.
Pro Tips
- Use a clear reference image with the character visible.
- JPG or PNG is recommended; avoid WEBP.
- Use a driving video with a clearly visible main subject.
- Keep the reference image’s camera angle close to the driving video’s framing when possible.
- Use
animatewhen you want to drive the reference character with the video motion. - Use
replacewhen you want to swap the video subject with the reference character. - Use
480pfor testing and720pfor higher-resolution output. - Add a prompt when you want more control over the style or visual details.
Notes
imageandvideoare required fields.prompt,mode,resolution, andseedare optional.- Default
modeisanimate. - Default
resolutionis480p. - Default
seedis-1, which uses a random seed. - Minimum billing duration is 5 seconds.
- Maximum billed duration is 120 seconds.
- Ensure uploaded image and video URLs are publicly accessible.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
"video": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
"mode": "animate",
"resolution": "480p",
"seed": -1
}
JSON
)
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/scail-2" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}")
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL=$(printf '%s' "${TASK}" | jq -r '.urls.get // empty')
if [ -z "${RESULT_URL}" ]; then RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"; fi
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}")
RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
created|processing) sleep 2 ;;
*) printf 'Unexpected status: %s
' "${STATUS}" >&2; exit 1 ;;
esac
doneParameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| image | string | Yes | - | Reference character image (JPG/PNG recommended; avoid WEBP). | |
| video | string | Yes | - | Driving video providing the motion. | |
| prompt | string | No | - | Optional positive prompt describing the desired output. | |
| mode | string | No | animate | animate, replace | Generation mode. animate: drive the reference character with the input video's motion. replace: swap the input video's subject with the reference character. |
| resolution | string | No | 480p | 480p, 720p | Output resolution tier (the reference image is rescaled to ~0.5 MP for 480p or ~1.0 MP for 720p). |
| seed | integer | No | -1 | - | Random seed. -1 for a random seed. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to poll for the prediction result |
| data.status | string | Status: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |