Call it
curl https://api.peume.com/v1/call/gemini-reference-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"image_urls": [],
"video_urls": [],
"resolution": "360p",
"aspect_ratio": "16:9",
"duration": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/gemini-reference-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"image_urls": [],
"video_urls": [],
"resolution": "360p",
"aspect_ratio": "16:9",
"duration": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/gemini-reference-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"image_urls": [],
"video_urls": [],
"resolution": "360p",
"aspect_ratio": "16:9",
"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-reference-to-video.
Parameters
promptRequiredstringText prompt. Bind references with tags: <IMAGE_REF_0>, <IMAGE_REF_1>,... for images and <VIDEO_REF_0>,... for clips (0-based, in input order).
image_urlsarrayPublic https:// reference image URLs (subjects, objects, style); up to 6.
Example: []
video_urlsarrayPublic https:// reference clip URLs (character or object likeness; audio is ignored); up to 3 clips of at most 3 seconds.
Example: []
resolutionRequiredstringOutput resolution (360p | 720p | 1080p | 4k; 1080p and 4k are upscaled) — also the price selector.
360p · 720p · 1080p · 4k
aspect_ratiostringAspect ratio of the output: 16:9 (default) or 9:16.
16:9 · 9:16
Example: 16:9
durationintegerOutput length in seconds (3-10). Default 10. Billed per second.
Example: 10
