Call it
curl https://api.peume.com/v1/call/flash-image-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"media": [],
"resolution": "720p",
"duration": 5
}
}'const res = await fetch("https://api.peume.com/v1/call/flash-image-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"media": [],
"resolution": "720p",
"duration": 5
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/flash-image-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"media": [],
"resolution": "720p",
"duration": 5
}
},
)
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: flash-image-to-video.
Parameters
promptRequiredstringText prompt (max 26000 characters). Describe the motion between frames; refer to a frame by the id you gave it: @frame_1. Kling allows 26,000 English or 11,000 non-English characters (mixed text: English / 26,000 + other / 11,000 ≤ 1); only the 26,000 total is checked here, and a longer non-English prompt is rejected by Kling at no charge.
mediaRequiredarrayThe first frame.
resolutionRequiredstringOutput resolution (720p) — also the price selector.
720p
durationintegerOutput duration in seconds (3-20). Default 5. Billed per second.
Example: 5
