Call it
curl https://api.peume.com/v1/call/slow-motion-and-frame-rate-conversion \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"video_url": "your video url",
"frame_count": 10,
"frame_rate": 10,
"width": 10,
"height": 10,
"model": "apo-8"
}
}'const res = await fetch("https://api.peume.com/v1/call/slow-motion-and-frame-rate-conversion", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"video_url": "your video url",
"frame_count": 10,
"frame_rate": 10,
"width": 10,
"height": 10,
"model": "apo-8"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/slow-motion-and-frame-rate-conversion",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"video_url": "your video url",
"frame_count": 10,
"frame_rate": 10,
"width": 10,
"height": 10,
"model": "apo-8"
}
},
)
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: slow-motion-and-frame-rate-conversion.
Parameters
video_urlRequiredstringPublic https:// URL of the source video; the path must end with a video extension (.mp4,.mov,.mkv,.webm,...). downloads it directly. Max 100 GB.
frame_countRequiredintegerTotal frames in the source video, e.g. 120 for a 5-second 24 fps clip. needs it to size the job; it also sets the credit hold.
frame_rateRequirednumberSource frame rate in frames per second, e.g. 24, 25, 30.
widthRequiredintegerSource width in pixels, e.g. 1280.
heightRequiredintegerSource height in pixels, e.g. 720.
output_widthintegerOutput width in pixels. Default: the source width.
output_heightintegerOutput height in pixels. Default: the source height.
modelstringModel: apo-8 (, the default for smooth slow motion and exact 2x/4x/8x); apf-2 ( Fast, simpler motion at half the credits); chr-2 (Chronos, fast action and layered motion); chf-3 (Chronos Fast, half the credits); aion-1 (Aion, extreme slow motion and heavy parallax). Default apo-8.
apo-8 · apf-2 · chr-2 · chf-3 · aion-1
Example: apo-8
keep_audiobooleanCopy the source audio track into the output (AAC). Default true; a silent source stays silent.
Example: true
slowmointegerSlow-motion factor: 2 makes the clip twice as long at the same frame rate. Default 1 (no slow motion).
Example: 1
fpsnumberTarget frame rate, e.g. 60 to convert 30 fps to 60 fps. Default: the source frame rate. Combines with slowmo.
duplicatebooleanDetect and drop duplicate source frames before interpolating. Default false.
Example: false
