Call it
curl https://api.peume.com/v1/call/image-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"media": [],
"resolution": "720P",
"duration": 5,
"prompt_extend": true,
"watermark": false
}
}'const res = await fetch("https://api.peume.com/v1/call/image-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"media": [],
"resolution": "720P",
"duration": 5,
"prompt_extend": true,
"watermark": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/image-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"media": [],
"resolution": "720P",
"duration": 5,
"prompt_extend": True,
"watermark": False
}
},
)
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: image-to-video.
Parameters
promptstringText prompt describing the desired motion and style (max 5,000 characters).
negative_promptstringElements to exclude from the video (max 500 characters).
mediaRequiredarrayTask assets. Valid combinations: first_frame (+driving_audio) (+last_frame), or first_clip (+last_frame). Each type at most once.
resolutionstringOutput resolution tier (also the price selector). Default 720P.
720P · 1080P
Example: 720P
durationintegerOutput duration in seconds (2-15). Default 5. Billing is per second.
Example: 5
prompt_extendbooleanRewrite the prompt with an LLM to improve quality (best for short prompts; adds latency). Default true.
Example: true
watermarkbooleanAdd an "AI Generated" watermark. Default false.
Example: false
seedintegerRandom seed for reproducibility. Same seed does not guarantee identical results.
