Wan Scail Serverless API

SCAIL generates professional-quality character animations from reference images and motion videos with exceptional pose accuracy.

~429.39s
~$1.929
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/scail"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "prompt": "a cat playing",
12    "reference_image": "https://segmind-resources.s3.amazonaws.com/input/a27216d9-5e6a-497e-a995-392f13e171e3-scail-ref-image.jpg",
13    "input_video": "https://segmind-resources.s3.amazonaws.com/input/4c379a6a-f6af-445b-aa82-8baf4d3c67d4-scail-video.mp4",
14    "seed": 987654321,
15    "resolution": "576p",
16    "base64": false
17}
18
19response = requests.post(url, headers=headers, json=data)
20
21if response.status_code == 200:
22    result = response.json()
23    print(json.dumps(result, indent=2))
24else:
25    print(f"Error: {response.status_code}")
26    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/scail

Parameters

input_videorequired
string (uri)

URL of video to process or enhance. Ensure it matches the scene style.

promptrequired
string

Describe the scene or action to render. Example: 'a cat playing'.

reference_imagerequired
string (uri)

Reference image URL to guide output. Use images matching prompt theme.

base64optional
boolean

Output as base64 for integration. Set true for web embedding.

Default: false
resolutionoptional
string

Choose video resolution. Use 720p for high-quality outputs.

Default: "576p"
Allowed values :
"480p""576p""720p"
seedoptional
integer

Set random seed for consistent results. Try 987654321 for varied images.

Default: 987654321

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out