PeumeAPI

AI generation

Flash Image to Video

Image-to-video with Kling 4.0 Flash.

$0.141 per call

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
  }
}'

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

promptRequiredstring

Text 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.

mediaRequiredarray

The first frame.

resolutionRequiredstring

Output resolution (720p) — also the price selector.

720p

durationinteger

Output duration in seconds (3-20). Default 5. Billed per second.

Example: 5

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.