Call it
curl https://api.peume.com/v1/call/upscale-video \
-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/upscale-video", {
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/upscale-video",
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: upscale-video.
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: prob-4 (Proteus, the general-purpose default); pnat-1 (Proteus Natural, softer with no over-sharpening, 2x only); rhea-1 (Rhea, 4x upscaling that preserves fine detail and faces); thd-3 (Theia Fine Tune Detail, aggressive detail extraction); thf-4 (Theia Fine Tune Fidelity, stable and conservative). Default prob-4.
prob-4 · pnat-1 · rhea-1 · thd-3 · thf-4
Example: prob-4
keep_audiobooleanCopy the source audio track into the output (AAC). Default true; a silent source stays silent.
Example: true
