Call it
curl https://api.peume.com/v1/call/gemini-text-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"resolution": "360p",
"aspect_ratio": "16:9",
"duration": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/gemini-text-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"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-text-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"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-text-to-video.
Parameters
promptRequiredstringText prompt: scene, camera, lighting, audio ("no dialogue", "calm background music"), timing ("after 3 seconds..."). Ask for "a single continuous shot" to avoid scene cuts.
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
