Call it
curl https://api.peume.com/v1/call/colorize-black-and-white-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,
"keep_audio": true
}
}'const res = await fetch("https://api.peume.com/v1/call/colorize-black-and-white-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,
"keep_audio": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/colorize-black-and-white-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,
"keep_audio": True
}
},
)
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: colorize-black-and-white-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_widthintegerOutput width in pixels. Default: the source width.
output_heightintegerOutput height in pixels. Default: the source height.
keep_audiobooleanCopy the source audio track into the output (AAC). Default true; a silent source stays silent.
Example: true
