Call it
curl https://api.peume.com/v1/call/deinterlace-and-upscale-old-footage \
-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,
"output_width": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/deinterlace-and-upscale-old-footage", {
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,
"output_width": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/deinterlace-and-upscale-old-footage",
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,
"output_width": 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: deinterlace-and-upscale-old-footage.
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_widthRequiredintegerOutput width in pixels, e.g. 1920 (HD), 3840 (4K), 1080 (portrait HD). Keep the source aspect ratio.
output_heightRequiredintegerOutput height in pixels, e.g. 1080 (HD), 2160 (4K), 1920 (portrait HD). With the source size it sets the credits; see the pricing notes.
modelstringModel: dtv-4 (Dione TV, interlaced broadcast footage); ddv-3 (Dione DV, interlaced camcorder footage); dtd-4 (Dione Robust, interlaced and heavily degraded); dtvs-2 (Dione Dehalo, interlaced with light halos); dtds-2 (Dione Robust Dehalo, interlaced and degraded with halos). Default dtv-4.
dtv-4 · ddv-3 · dtd-4 · dtvs-2 · dtds-2
Example: dtv-4
keep_audiobooleanCopy the source audio track into the output (AAC). Default true; a silent source stays silent.
Example: true
