Call it
curl https://api.peume.com/v1/call/gemini-extend-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"video_url": "your video url",
"image_urls": [],
"resolution": "360p",
"duration": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/gemini-extend-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"video_url": "your video url",
"image_urls": [],
"resolution": "360p",
"duration": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/gemini-extend-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"video_url": "your video url",
"image_urls": [],
"resolution": "360p",
"duration": 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: gemini-extend-video.
Parameters
promptRequiredstringHow the scene continues ("Extend this video: the camera pans across the mountains"). Timestamps count from the start of the extension. Reference images can be bound with <IMAGE_REF_N>.
video_urlRequiredstringPublic https:// URL of the source clip to continue (max 10 seconds).
image_urlsarrayOptional public https:// reference image URLs introducing new characters or elements into the continuation; up to 3.
Example: []
resolutionRequiredstringOutput resolution (360p | 720p | 1080p | 4k; 1080p and 4k are upscaled) — also the price selector.
360p · 720p · 1080p · 4k
durationintegerLength of the appended continuation in seconds (3-10). Default 10.
Example: 10
