All models
Alibaba
Video
Available
Wan 2.2 A14B Speech to Video Turbo
Generate videos using Wan's advanced AI model
Image to Video
Text to Video
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | The text prompt used for video generation (Max length: 5000 characters) max length 5000 |
image_urlRequired |
string | URL of the input image. (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB) format: uri |
audio_urlRequired |
string | The URL of the audio file (File URL after upload, not file content; Accepted types: audio/mp3, audio/wav, audio/ogg, audio/m4a, audio/flac, audio/aac, audio/x-ms-wma, audio/mpeg; Max size: 10.0MB) format: uri |
num_frames |
number | Number of frames to generate. Must be between 40 to 120, (must be multiple of 4) (Min: 40, Max: 120, Step: 4) (step: 4) min 40 · max 120 · default 80 |
frames_per_second |
number | Frames per second of the generated video. Must be between 4 to 60. (Min: 4, Max: 60, Step: 1) (step: 1) min 4 · max 60 · default 16 |
resolution |
string | Resolution of the generated video (480p, 580p, or 720p) one of: "480p", "580p", "720p" · default "480p" |
negative_prompt |
string | Negative prompt for video generation (Max length: 500 characters) max length 500 |
seed |
integer | Optional. Omit for a random seed. |
num_inference_steps |
number | Number of inference steps for sampling. Higher values give better quality but take longer (Min: 2, Max: 40, Step: 1) (step: 1) min 2 · max 40 · default 27 |
guidance_scale |
number | Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality (Min: 1, Max: 10, Step: 0.1) (step: 0.1) min 1 · max 10 · default 3.5 |
shift |
number | Shift value for the video. Must be between 1.0 and 10.0 (Min: 1, Max: 10, Step: 0.1) (step: 0.1) min 1 · max 10 · default 5 |
nsfw_checker |
boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "wan-2.2-a14b-speech-to-video-turbo",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"audio_url": "https://example.com/input.png",
"num_frames": 80,
"frames_per_second": 16,
"resolution": "480p",
"num_inference_steps": 27,
"guidance_scale": 3.5,
"shift": 5
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "wan-2.2-a14b-speech-to-video-turbo",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"audio_url": "https://example.com/input.png",
"num_frames": 80,
"frames_per_second": 16,
"resolution": "480p",
"num_inference_steps": 27,
"guidance_scale": 3.5,
"shift": 5,
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "wan-2.2-a14b-speech-to-video-turbo",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"audio_url": "https://example.com/input.png",
"num_frames": 80,
"frames_per_second": 16,
"resolution": "480p",
"num_inference_steps": 27,
"guidance_scale": 3.5,
"shift": 5
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "wan-2.2-a14b-speech-to-video-turbo",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"audio_url": "https://example.com/input.png",
"num_frames": 80,
"frames_per_second": 16,
"resolution": "480p",
"num_inference_steps": 27,
"guidance_scale": 3.5,
"shift": 5
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "wan-2.2-a14b-speech-to-video-turbo",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}