Call it
curl https://api.peume.com/v1/call/wan-3-0-image-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "example/wan-3.0",
"prompt": "Bring the scene to life with a slow camera push.",
"frame_images": [],
"duration": 2,
"resolution": "480p",
"aspect_ratio": "16:9"
}
}'const res = await fetch("https://api.peume.com/v1/call/wan-3-0-image-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "example/wan-3.0",
"prompt": "Bring the scene to life with a slow camera push.",
"frame_images": [],
"duration": 2,
"resolution": "480p",
"aspect_ratio": "16:9"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/wan-3-0-image-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "example/wan-3.0",
"prompt": "Bring the scene to life with a slow camera push.",
"frame_images": [],
"duration": 2,
"resolution": "480p",
"aspect_ratio": "16:9"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: wan-3-0-image-to-video.
Parameters
modelRequiredstringalibaba/wan-3.0
Example: example/wan-3.0
promptRequiredstringExample: Bring the scene to life with a slow camera push.
frame_imagesRequiredarrayimage objects with type image_url, an image_url.url, and frame_type first_frame.
durationintegerExample: 2
resolutionstring480p · 720p · 1080p
Example: 480p
aspect_ratiostring16:9 · 4:3 · 1:1 · 3:4 · 9:16
Example: 16:9
generate_audiobooleanExample: true
