PeumeAPI

AI generation

Reference to Video

Reference-based character video generation with Wan 2.7.

From $0.15 per call

Call it

curl https://api.peume.com/v1/call/reference-to-video-2 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "media": [],
    "resolution": "720P",
    "ratio": "16:9",
    "duration": 5,
    "prompt_extend": true
  }
}'

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

Parameters

promptRequiredstring

Text prompt (max 5,000 characters). Refer to references by ordinal — "Image 1", "Video 1" — numbered per type in media[] order (images and videos count separately).

negative_promptstring

Elements to exclude from the video (max 500 characters).

mediaRequiredarray

Reference assets: at least one reference_image or reference_video; images + videos <= 5 combined.

resolutionstring

Output resolution tier (also the price selector). Default 720P.

720P · 1080P

Example: 720P

ratiostring

Aspect ratio. Ignored when a first_frame is provided (the output follows that image).

16:9 · 9:16 · 1:1 · 4:3 · 3:4

Example: 16:9

durationinteger

Output duration in seconds (2-15). Default 5. Billing is per second.

Example: 5

prompt_extendboolean

Rewrite the prompt with an LLM to improve quality (best for short prompts; adds latency). Default true.

Example: true

watermarkboolean

Add an "AI Generated" watermark. Default false.

Example: false

seedinteger

Random seed for reproducibility. Same seed does not guarantee identical results.

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.