Call it
curl https://api.peume.com/v1/call/start-video-upload \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"filename": "your filename",
"file_size": 10,
"content_type": "your content type",
"title": "your title"
}
}'const res = await fetch("https://api.peume.com/v1/call/start-video-upload", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"filename": "your filename",
"file_size": 10,
"content_type": "your content type",
"title": "your title"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/start-video-upload",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"filename": "your filename",
"file_size": 10,
"content_type": "your content type",
"title": "your title"
}
},
)
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: start-video-upload.
Parameters
filenameRequiredstringThe file's name, e.g. 'launch.mp4'.
file_sizeRequiredintegerThe file's exact size in bytes, at most 20,000,000,000. It must equal the bytes you upload: a mismatch fails the upload at /uploads/complete.
content_typeRequiredstringThe video's MIME type, e.g. 'video/mp4'.
titleRequiredstringThe video's title.
descriptionstringThe video's description.
tagsarrayUp to 50 tags.
