Call it
curl https://api.peume.com/v1/call/reference-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"resolution": "480p"
}
}'const res = await fetch("https://api.peume.com/v1/call/reference-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"resolution": "480p"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reference-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"resolution": "480p"
}
},
)
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: reference-to-video.
Parameters
promptRequiredstringWhat to generate. Name references by position: <Picture 1>, <Picture 2> … for images, <Video 1> … for videos, <Audio 1> … for audio, e.g. '<Picture 1> walks through the street in <Video 1>'. Up to 16,000 characters.
resolutionRequiredstringOutput resolution: 480p, 768p, 1080p or 2k. Sets the per-second price.
480p · 768p · 1080p · 2k
durationstringClip length in whole seconds, 5–15, or auto to fit the quoted dialogue (8 seconds minimum, billed at the resolved length). Default 5.
aspect_ratiostringadaptive (default: follows the first reference image, else the first video), 21:9, 16:9, 4:3, 1:1, 3:4 or 9:16. At 1080p and 2k set 16:9 or 9:16.
21:9 · 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · adaptive
prompt_enhancementstringHow rewrites the prompt before generating: quality (default), turbo, ultraquality, or disabled (use your text as written).
quality · turbo · ultraquality · disabled
seedintegerGeneration seed for repeatable output; random when omitted.
reference_imagesarrayUp to 9 reference images (PNG or JPEG); the first two are free, each { "type": "url", "url": "" }.
reference_videosarrayUp to 3 reference videos; the first 5 seconds of each are used and billed, each { "type": "url", "url": "" }.
reference_audioarrayUp to 3 reference audio clips (free), each { "type": "url", "url": "" }.
