PeumeAPI

AI generation · Gemini

Reference to Video

Reference-guided video generation with Gemini Omni Flash.

From $0.06 per call

Call it

curl https://api.peume.com/v1/call/gemini-reference-to-video \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "image_urls": [],
    "video_urls": [],
    "resolution": "360p",
    "aspect_ratio": "16:9",
    "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-reference-to-video.

Parameters

promptRequiredstring

Text prompt. Bind references with tags: <IMAGE_REF_0>, <IMAGE_REF_1>,... for images and <VIDEO_REF_0>,... for clips (0-based, in input order).

image_urlsarray

Public https:// reference image URLs (subjects, objects, style); up to 6.

Example: []

video_urlsarray

Public https:// reference clip URLs (character or object likeness; audio is ignored); up to 3 clips of at most 3 seconds.

Example: []

resolutionRequiredstring

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

360p · 720p · 1080p · 4k

aspect_ratiostring

Aspect ratio of the output: 16:9 (default) or 9:16.

16:9 · 9:16

Example: 16:9

durationinteger

Output length in seconds (3-10). Default 10. Billed per second.

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.