Call it
curl https://api.peume.com/v1/call/edit-footage \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"footage": [],
"effort": "low",
"max_seconds": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/edit-footage", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"footage": [],
"effort": "low",
"max_seconds": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/edit-footage",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"footage": [],
"effort": "low",
"max_seconds": 10
}
},
)
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-footage.
Parameters
footageRequiredarray1 to 200 source files, 5 hours of video in all. Each entry is a public https link (a direct file link, a Google Drive file or folder link, a Dropbox file link, or an Instagram, TikTok or YouTube video link) or a file_ upload id from /uploads/create, reusable in any number of videos and charged on its first use only. Video, images and audio are accepted; at least one entry needs a picture.
promptstringWhat to make. Required unless references is given. Say what the video is and how long, name the files that matter, and say what you do not want (for example 'No music').
referencesarrayUp to 5 videos to make it look like: https links or file_ upload ids. Charged per minute, like footage; a file_ id already used is not charged again.
effortRequiredstringRequired; sets the price. low costs half as much and finishes sooner. high follows a detailed request or a reference more closely.
low · high
max_secondsRequiredintegerRequired; sets the price. The longest the video may run, in whole seconds from 1 to 1800. It is never exceeded. The price is that of the band it falls in: up to 60, 120, 300, 600, 900 or 1800 seconds, so 30 costs the same as 60. Use target_seconds for the length to aim for.
target_secondsintegerThe length to aim for, in seconds, from 1 to max_seconds.
aspect_ratiostringFrame shape. Or send width and height instead. Left out, the editor chooses from the footage and the prompt.
9:16 · 16:9 · 1:1
widthintegerFrame width in pixels, with height: even, 320 to 3840, the shorter side at most 2160. Not with aspect_ratio.
heightintegerFrame height in pixels, with width.
fpsintegerFrames a second, 1 to 60 (default 30).
resolutionstringResolution of the finished file.
720p · 1080p · 1440p · 4k
variationsintegerHow many Cuts to make from the same footage, 1 to 5 (default 1). Each extra Cut adds to the price.
variation_briefstringHow the Cuts differ from each other.
variation_scopestringportion (default): the Cuts differ in one part, such as the hook, and each extra Cut adds 10% of the price. full: each Cut is edited differently throughout and adds 75%.
portion · full
allow_generated_mediabooleantrue lets the editor generate music, voiceover, sound and images, which are charged up to generated_media_budget. Off by default.
generated_media_budgetnumberUSD. The most generated media may add. Left out, $0.30 plus $0.10 for each minute of max_seconds.
max_pricenumberUSD. The most the video may cost in all. If your footage would take it over, the run ends before any editing and costs nothing. On /videos/create it is also the amount held for the run; left out there, the hold and the ceiling are the price for the requested Cuts, the generated-media budget and $0.60 for footage sent.
filenamestringName of the downloaded file, 1 to 120 characters; makes it end in.mp4. Left out, the file is named video.mp4. Later files of the same Video get -2, -3 and so on before.mp4.
