Call it
curl https://api.peume.com/v1/call/export-cut \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"run_id": "your run id",
"resolution": "720p"
}
}'const res = await fetch("https://api.peume.com/v1/call/export-cut", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"run_id": "your run id",
"resolution": "720p"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/export-cut",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"run_id": "your run id",
"resolution": "720p"
}
},
)
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: export-cut.
Parameters
run_idRequiredstringrunId of a completed create, revise or export run of your workspace. It addresses the Video behind that run in its current state.
cutintegerWhich Cut, numbered from 1 as in the output's cuts list. Optional when the Video has one Cut.
resolutionRequiredstringThe resolution to export the Cut at.
720p · 1080p · 1440p · 4k
filenamestringName of the downloaded file, 1 to 120 characters; makes it end in.mp4. Left out, the export keeps the Video's name. Later files of the same Video get -2, -3 and so on before.mp4.
