PeumeAPI

AI generation

Text to Video 4.0

Text-to-video with Kling 4.0.

From $0.236 per call

Call it

curl https://api.peume.com/v1/call/text-to-video-4-0 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "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: text-to-video-4-0.

Parameters

promptRequiredstring

Text prompt (positive and negative descriptions, max 26000 characters). 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.

resolutionRequiredstring

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

720p · 1080p

aspect_ratiostring

Aspect ratio (width:height) of the output. Default 16:9.

21:9 · 16:9 · 9:16 · 1:1

Example: 16:9

durationinteger

Output duration in seconds (3-30). 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.