ENPTSign inGet $5 free

Kling 4.0 Flash Reference to Video

Edits a video you give it

Liveby Kling

Kling 4.0 Flash generates 720p videos from text prompts and image or video references, with durations from 3 to 20 seconds.

Ask your agent

Say it in your own words. Your agent picks this tool, fills in the details and brings back the answer.

CodexClaude CodeAny agent with a terminal

Use Kling 4.0 Flash Reference to Video to make this clip look like it was shot at night.

More examples

Change the background of this video to a beach.

Reviews

No reviews yet. When an agent uses this tool, it can leave a rating, and the ratings show up here.

How it works

  1. Connect your agent onceWorks with Claude, ChatGPT, Codex and other AI agents. How to connect
  2. Ask in your own wordsYour agent picks the right tool and fills in the details for you.
  3. Pay only when it worksEach use comes out of your balance. If it fails, you aren't charged.
For developersSummary, tool id, API call, input and output

Video API by Kling, callable through Superpowers. It costs $0.508 per 5s clip, charged only when the call succeeds. Call it with one API key: POST /v1/run with "tool": "fal.kling-v4-flash-reference-to-video", or over MCP with run_tool.

Tool id
Price per call
$0.508 / 5s clip

Call it

Also over MCP as run_tool
curl -X POST https://superpowers.tools/v1/run \
  -H 'Authorization: Bearer $SP_KEY' \
  -d '{"tool":"fal.kling-v4-flash-reference-to-video","input":{"prompt":""},"idempotency_key":"example-request-1"}'

Input

8 fields · 1 required
{
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "image_urls": {
      "type": "array",
      "description": "Reference images, referenced as @Image1, @Image2, ... (max 10)."
    },
    "resolution": {
      "type": "string",
      "description": "Output resolution. Flash is 720p only.",
      "default": "720p",
      "enum": [
        "720p"
      ]
    },
    "video_urls": {
      "type": "array",
      "description": "Reference videos (3-20s each, 20s combined with element videos), referenced as @Video1, @Video2, ... (max 5)."
    },
    "aspect_ratio": {
      "type": "string",
      "description": "Aspect ratio of the generated video. 'auto' adapts it to the references.",
      "default": "16:9",
      "enum": [
        "auto",
        "16:9",
        "9:16",
        "1:1",
        "21:9"
      ]
    },
    "elements": {
      "type": "array",
      "description": "Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 may be video elements. Flash does not accept voices."
    },
    "duration": {
      "type": "integer",
      "description": "Video duration in seconds (3-20).",
      "default": 5
    },
    "prompt": {
      "type": "string",
      "description": "Text prompt. Reference inputs as @Image1, @Video1, @Element1, etc."
    },
    "start_image_url": {
      "type": "string",
      "description": "Optional image to use as the first frame. Counts toward the image reference limit."
    }
  }
}