wan3.0-video-prime
wan3.0-video-prime costs $0.068 to $0.28 per second of video on LLM API, depending on resolution (480p to 1080p).
Pricing
Served by Alibaba Cloud, the only provider.
| 480p | $0.068 | per second |
|---|---|---|
| 720p | $0.14 | per second |
| 1080p | $0.28 | per second |
Specifications
- Generates fromText, Image, Reference
- Resolutions480p, 720p, 1080p
Call wan3.0-video-prime
POST /v1/videosVideo jobs run in the background: create one, poll it, then download the file.Videos docs
import os
import time
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
video = client.videos.create(
model="wan3.0-video-prime",
prompt="A paper boat drifting down a rainy street",
)
while video.status in ("queued", "in_progress"):
time.sleep(10)
video = client.videos.retrieve(video.id)
if video.status == "failed":
raise RuntimeError(video.error)
client.videos.download_content(video.id).write_to_file("video.mp4")import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
let video = await client.videos.create({
model: "wan3.0-video-prime",
prompt: "A paper boat drifting down a rainy street",
});
while (video.status === "queued" || video.status === "in_progress") {
await new Promise((r) => setTimeout(r, 10_000));
video = await client.videos.retrieve(video.id);
}
if (video.status === "failed") throw new Error(video.error?.message);
const content = await client.videos.downloadContent(video.id);
fs.writeFileSync("video.mp4", Buffer.from(await content.arrayBuffer()));curl https://api.llmapi.ai/v1/videos \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan3.0-video-prime",
"prompt": "A paper boat drifting down a rainy street"
}'
# Poll GET https://api.llmapi.ai/v1/videos/{id} until "completed",
# then download GET https://api.llmapi.ai/v1/videos/{id}/contentMore from Alibaba
All Alibaba video models
WAN 2.7 Text-to-Videowan2.7-t2v$0.13per second
WAN 2.7 Image-to-Videowan2.7-i2v$0.13per second
WAN 2.6 Image-to-Videowan2.6-i2v$0.13per second
Prices synced .