Call it
curl https://api.peume.com/v1/call/edit-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"media": [],
"resolution": "720P",
"audio_setting": "auto",
"prompt_extend": true,
"watermark": false
}
}'const res = await fetch("https://api.peume.com/v1/call/edit-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"media": [],
"resolution": "720P",
"audio_setting": "auto",
"prompt_extend": true,
"watermark": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/edit-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"media": [],
"resolution": "720P",
"audio_setting": "auto",
"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: edit-video.
Parameters
promptstringEditing instruction (max 5,000 characters), e.g. "Convert the entire scene to a claymation style".
negative_promptstringElements to exclude from the video (max 500 characters).
mediaRequiredarrayExactly one video plus up to four reference images.
resolutionstringOutput resolution tier (also the price selector). Default 720P.
720P · 1080P
Example: 720P
ratiostringAspect ratio. Omit to follow the input video's ratio.
16:9 · 9:16 · 1:1 · 4:3 · 3:4
durationintegerTruncate the output to this many seconds (2-10). Omit to keep the source clip's length. Cost note: omitting holds the price of a 10s output up front and settles on actual seconds.
audio_settingstring"auto" (default): the model decides the audio from the prompt. "origin": keep the input video's original audio.
auto · origin
Example: auto
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.
