PeumeAPI

AI generation · Gemini

Extend Video

Video continuation with Gemini Omni Flash.

From $0.06 per call

Call it

curl https://api.peume.com/v1/call/gemini-extend-video \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "video_url": "your video url",
    "image_urls": [],
    "resolution": "360p",
    "duration": 10
  }
}'

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-extend-video.

Parameters

promptRequiredstring

How the scene continues ("Extend this video: the camera pans across the mountains"). Timestamps count from the start of the extension. Reference images can be bound with <IMAGE_REF_N>.

video_urlRequiredstring

Public https:// URL of the source clip to continue (max 10 seconds).

image_urlsarray

Optional public https:// reference image URLs introducing new characters or elements into the continuation; up to 3.

Example: []

resolutionRequiredstring

Output resolution (360p | 720p | 1080p | 4k; 1080p and 4k are upscaled) — also the price selector.

360p · 720p · 1080p · 4k

durationinteger

Length of the appended continuation in seconds (3-10). Default 10.

Example: 10

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.