Our GPUsText to videoImage to video
Wan 2.2 5B
wan-2.2
Wan-AI's Wan 2.2 TI2V-5B on VelvetAPI's own GPUs: 720p clips at 24 fps, up to 5 seconds, from text or from a still as the first frame.
Made with Wan 2.2 by Alibaba
The full showcaseUnedited outputs. Open one to read its motion prompt, the still it started from, size and seed.
Inputs
Send these in the task's input object. Only required fields are needed; GET /v1/models/wan-2.2 returns them as a JSON Schema.
| Field | Type | Default | Details |
|---|---|---|---|
promptrequired | string | — | What happens in the clip: subject, action, setting, camera movement and light. Wan reads the first ~512 tokens. up to 4,000 characters |
reference_images | array of URLs | [] | One image to animate, used as the first frame and cropped to the aspect ratio: one of your outputs, an upload (POST /v1/uploads) or an HTTPS image URL, which is imported and screened first. Leave it out for text to video. up to 1 items |
duration_s | number | 5 | Clip length in seconds, at 24 frames per second. The price is per second of this length. 1 to 5 |
aspect_ratio | string | "16:9" | 16:9 is 1280 × 704, 9:16 is 704 × 1280 and 1:1 is 960 × 960. one of 16:9, 9:16, 1:1 |
resolution | string | "720p" | one of 720p |
seed | integer | — | 0 to 2,147,483,647 |
Example
Create a task with your API key, then poll it or pass a webhook_url. user is your own id for the end user who asked for the image.
curl https://api.velvetapi.dev/v1/tasks \
-H "Authorization: Bearer $VELVET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-2.2",
"user": "user-123",
"input": {
"prompt": "A slow dolly shot through a candlelit jazz lounge at night. A woman in a plum velvet evening dress turns from the bar toward the camera and smiles, warm bokeh lights behind her, cinematic 35mm look."
}
}'import { VelvetAPI } from "@velvetapi/sdk";
const velvet = new VelvetAPI({ apiKey: process.env.VELVET_API_KEY });
const task = await velvet.tasks.create({
model: "wan-2.2",
user: "user-123",
input: {
prompt: "A slow dolly shot through a candlelit jazz lounge at night. A woman in a plum velvet evening dress turns from the bar toward the camera and smiles, warm bokeh lights behind her, cinematic 35mm look.",
},
});
const done = await velvet.tasks.wait(task.id);
console.log(done.state, done.outputs.map((output) => output.url));import os
from velvetapi import VelvetAPI
client = VelvetAPI(api_key=os.environ["VELVET_API_KEY"])
task = client.tasks.create(
model="wan-2.2",
user="user-123",
input={
"prompt": "A slow dolly shot through a candlelit jazz lounge at night. A woman in a plum velvet evening dress turns from the bar toward the camera and smiles, warm bokeh lights behind her, cinematic 35mm look.",
},
)
done = client.tasks.wait(task["id"])
print(done["state"], [output["url"] for output in done["outputs"]])Response 202 Accepted
{
"id": "0b9c6c2e-4d3f-4a51-9a8e-2f7d1c3b5a90",
"object": "task",
"model": "wan-2.2",
"state": "queued",
"user": "user-123",
"price_usd": 0.3,
"outputs": [],
"error": null,
"meta": {},
"created_at": "2026-10-20T06:31:00.000Z",
"started_at": null,
"finished_at": null
}Next: tasks and webhooks, errors and the API reference.









