import requests response = requests.post( "https://api.aimlapi.com/v2/video/generations", headers={ "Authorization": "Bearer <YOUR_AIMLAPI_KEY>", "Content-Type": "application/json", }, json={'model': 'alibaba/wan-3-0-video', 'prompt': 'Describe what you want the model to generate.', 'image_url': 'https://example.com/input.jpg', 'duration': 5}, ) print(response.json())
const response = await fetch('https://api.aimlapi.com/v2/video/generations', {
method: 'POST',
headers: {
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "alibaba/wan-3-0-video",
"prompt": "Describe what you want the model to generate.",
"image_url": "https://example.com/input.jpg",
"duration": 5
}),
});
console.log(await response.json());
curl --request POST \ --url 'https://api.aimlapi.com/v2/video/generations' \ --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \ --header 'Content-Type: application/json' \ --data '{"model": "alibaba/wan-3-0-video", "prompt": "Describe what you want the model to generate.", "image_url": "https://example.com/input.jpg", "duration": 5}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Output | |
480p $0.065/sec, 720p $0.13/sec, 1080p $0.26/sec.
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Wan 3.0 Video This page | All-in-one video generation | |||
| Video generation | ||||
| Video generation | ||||
| Video generation | ||||
| Cinematic video + native audio |