Call it
curl https://api.peume.com/v1/call/revise-cut \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"run_id": "your run id"
}
}'const res = await fetch("https://api.peume.com/v1/call/revise-cut", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"run_id": "your run id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/revise-cut",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"run_id": "your run id"
}
},
)
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: revise-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.
promptstringWhat should be different, in plain words.
footagearrayFootage to add: https links or file_ upload ids. Send an image here to show a marked-up frame. Video and audio added are charged per minute; a file_ id already used is not charged again.
referencesarrayUp to 5 videos to make the Cut look like: https links or file_ upload ids. Charged per minute; a file_ id already used is not charged again.
max_pricenumberUSD. The most this revision may cost; over it, the revision fails and costs nothing. On /videos/revise it is also the amount held for the run; left out there, the hold and the ceiling are $0.70, plus $0.60 when footage or references are added.
filenamestringName of the downloaded file, 1 to 120 characters; makes it end in.mp4. Left out, the revised Cut keeps the Video's name. Later files of the same Video get -2, -3 and so on before.mp4.
