Wan 3.0 Video (alibaba/wan3.0-video) is a video model from Alibaba. Pricing via AIgateway: $0.050–$0.200 per second by resolution. Call it via https://api.aigateway.sh/v1/videos/generations — set model="alibaba/wan3.0-video".
curl https://api.aigateway.sh/v1/videos/generations \
-H "Authorization: Bearer $AIGATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"alibaba/wan3.0-video","prompt":"a slow drone shot over a mountain lake","duration":5,"resolution":"480P"}'{
"model": "alibaba/wan3.0-video",
"prompt": "A drone shot of a mountain lake at golden hour",
"duration": 5, // seconds, 2-30, or -1 to let the model choose
"aspect_ratio": "adaptive", // adaptive | 16:9 | 9:16 | 4:3 | 3:4 | 1:1
"resolution": "480P", // 480P $0.05/s, 720P $0.10/s, 1080P $0.20/s
"audio": true, // generate a native audio track (dialogue, ambience)
"seed": 42 // reproducibility
}
// optional "image_url" to animate a seed image, plus "last_frame_url" to interpolate to a closing frame
//
// Reference-to-video. The prompt cites these positionally as
// "Image 1", "Video 1", numbered per kind in the order you list them:
// "reference_images": ["https://..."] up to 10
// "reference_videos": ["https://..."] up to 5
// "reference_audios": ["https://..."] up to 5
//
// Context-to-video:
// "file_url": "https://.../deck.pdf"
// "link_url": "https://example.com/article"
//
// References / file / link cannot be combined with image_url or last_frame_url.
// Response is an async job — poll /v1/jobs/<id> until status === "completed".{
"id": "job_abc123",
"status": "queued", // queued | processing | completed | failed
"model": "alibaba/wan3.0-video",
"created": 1776947082
}
// After completion:
{
"id": "job_abc123",
"status": "completed",
"result": {
"url": "https://media.aigateway.sh/video/abc123.mp4",
"duration": 5,
"resolution": "1920x1080"
}
}# See docs at https://aigateway.sh/docs