Call it
curl https://api.peume.com/v1/call/generate-multimodal-video-fast \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"resolution": "720P",
"ratio": "adaptive",
"duration": 5,
"audio": true,
"prompt_extend": true,
"watermark": false
}
}'const res = await fetch("https://api.peume.com/v1/call/generate-multimodal-video-fast", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"resolution": "720P",
"ratio": "adaptive",
"duration": 5,
"audio": true,
"prompt_extend": true,
"watermark": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/generate-multimodal-video-fast",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"resolution": "720P",
"ratio": "adaptive",
"duration": 5,
"audio": True,
"prompt_extend": True,
"watermark": False
}
},
)
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: generate-multimodal-video-fast.
Parameters
promptstringText prompt (max 20,000 characters — longer text is silently truncated upstream). In reference mode, refer to media by ordinal — "Image 1", "Video 1", "Audio 1" — numbered per type in media[] order. Either prompt or media is required.
mediaarrayReference material. Either prompt or media is required.
resolutionstringOutput resolution tier (also the price selector). Default 720P.
480P · 720P · 1080P
Example: 720P
ratiostringAspect ratio. "adaptive" (default) picks the best fit from your inputs and intent.
adaptive · 16:9 · 9:16 · 1:1 · 4:3 · 3:4
Example: adaptive
durationstringOutput duration in seconds (2-30), or "auto" to let the model pick the length from your prompt and inputs. Cost note: "auto" holds the price of a 30s video up front — the unused portion is released when the run settles on actual seconds.
Example: 5
audiobooleanInclude an audio track. Default true. No price impact.
Example: true
prompt_extendbooleanRewrite the prompt with an LLM to improve quality (best for short prompts; adds latency). Default true.
Example: true
watermarkbooleanAdd an "AI Generated" watermark. Default false.
Example: false
seedintegerRandom seed for reproducibility. Same seed does not guarantee identical results.
