# Kling 4.0 Reference to Video - API, Playground & Pricing

> Run Kling 4.0 Reference to Video by Kuaishou via API, Playground, or MCP from $0.157 per second - no provider API key needed. Up to ten reference pictures kept consistent in a Kling 4.0 clip of up to 30 seconds.

Page: https://flymy.ai/models/kling-4-0-reference-to-video/

Models / Image to video

Kling 4.0 makes a 3 to 30 second clip with stereo sound from a prompt and up to ten pictures of your characters, products or places. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Kuaishou API key: runs are billed to your FlyMy.AI balance.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/kling-4_0-reference-to-video) [<> Get API](https://flymy.ai/models/kling-4-0-reference-to-video/#api)

**Provider**

[Kuaishou](https://flymy.ai/models/provider/kuaishou/)

**Category**

[Image to video](https://flymy.ai/models/image-to-video/) / Reference to video

**Price**

from $0.157 / s (about $1.18 at the defaults)

**Resolution**

720p, 1080p

**Aspect ratio**

16:9, 9:16, 1:1, 4:3, 3:4, 21:9

**Length**

3 to 30 seconds

**Returns**

`video`

**Commercial use**

Allowed

**Model ID**

`flymyai/kling-4_0-reference-to-video`

![Kling 4.0 Reference to Video by Kuaishou: reference to video sample, ten references, one scene](https://flymy.ai/img/models/kling-4-0-reference-to-video.jpg)

Kling 4.0 Reference to Video sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use Kling 4.0 Reference to Video in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

```
Read https://flymy.ai/skill.md and https://flymy.ai/models/kling-4-0-reference-to-video.md. Help me connect the FlyMy.AI MCP to this assistant, then run Kling 4.0 Reference to Video (flymyai/kling-4_0-reference-to-video) for this task: Use Kling 4.0 Reference to Video to make a clip of the character in my reference images walking along a rainy neon street at night.
```

[Open FlyMy.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/models/kling-4-0-reference-to-video.md)

## What Kling 4.0 Reference to Video does

This is Kling 4.0's Omni Reference mode. Send images, one to ten pictures of characters, products, places or a style, and name them in prompt as @Image1, @Image2 and so on; the clip keeps them consistent. start_image_url and end_image_url fix the first and the last frame, and a request holds at most ten pictures in all. duration runs from 3 to 30 seconds, resolution is 720p or 1080p, and aspect_ratio auto follows the references. Output: video with stereo sound. It takes pictures only (no reference videos, elements or voices), renders no 4K and does not edit or extend a video.

## Kling 4.0 Reference to Video inputs

Every input of `flymyai/kling-4_0-reference-to-video` as its live schema lists them. Returns `video` (array).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-prompt) `prompt` | string required Describe the video and name the pictures in it as @Image1, @Image2,... in the order you send them |
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-images) `images` | string required One to ten reference pictures (characters, products, places, a style), links or uploads: at least 300 pixels a side, up to 30 MB, aspect ratio 0.4-2.5 |
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-start_image_url) `start_image_url` | file optional Allowed: image file, as a URL or upload Optional first frame of the video; counts toward the ten pictures |
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-end_image_url) `end_image_url` | file optional Allowed: image file, as a URL or upload Optional last frame of the video; counts toward the ten pictures |
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-duration) `duration` | integer optional Allowed: 3 to 30 Default: `5` Length of the clip in seconds, 3-30; the price is per second |
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-resolution) `resolution` | string optional Allowed: 720p, 1080p Default: `1080p` 720p ($0.157 a second) or 1080p ($0.235 a second) |
| [#](https://flymy.ai/models/kling-4-0-reference-to-video/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 Default: `16:9` Shape of the video: 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9, or auto to follow the references |

## Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

**“Use Kling 4.0 Reference to Video to make a clip of the character in my reference images walking along a rainy neon street at night.”** runs `flymyai/kling-4_0-reference-to-video`

**“Keep my product from these three photos and show it on a snowy cabin window sill with Kling 4.0 Reference to Video.”** runs `flymyai/kling-4_0-reference-to-video`

**“Make a short ad with Kling 4.0 Reference to Video where the person from my references unboxes a reusable water bottle.”** runs `flymyai/kling-4_0-reference-to-video`

## Kling 4.0 Reference to Video price

From $0.157 per second of duration, depending on resolution. A run at the default settings costs about $1.18. A run costs $0.471 to $7.05, depending on duration and resolution. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

| Setting | Price |
|---|---|
| resolution 720p | $0.157 per second |
| resolution 1080p | $0.235 per second |

[Every model's price →](https://flymy.ai/models/pricing/) [Usage pricing →](https://flymy.ai/pricing/)

## Kling 4.0 Reference to Video vs similar models

Popular image to video models beside it, with prices from billing and settings from each live schema.

| Model | Provider | Kind | Price | Default run | Resolution | Length |
|---|---|---|---|---|---|---|
| **Kling 4.0 Reference to Video** | Kuaishou | Reference to video | from $0.157 / s | about $1.18 | 720p, 1080p | 3 to 30 seconds |
| [Wan 3.0 Reference to Video](https://flymy.ai/models/wan-3-0-ref2v/) | Alibaba | Reference to video | from $0.05 / s | $0.50 | 480P, 720P, 1080P | 1 to 30 seconds |
| [Seedance 2.5 Reference to Video](https://flymy.ai/models/bytedance-seedance-2-5-reference-to-video/) | ByteDance | Reference to video | from $0.10794 / s | about $1.22 | 480p, 720p, 1080p | 4 to 30 seconds |
| [Kling 4.0 Image to Video](https://flymy.ai/models/kling-4-0-image-to-video/) | Kuaishou | Image to video | from $0.157 / s | about $1.18 | 720p, 1080p | 3 to 30 seconds |

## Kling 4.0 Reference to Video API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the `X-API-KEY` header; [get a key](https://app.flymy.ai/developers) in your account.

### cURL

Form fields, not JSON; files go as uploads or public URLs. The answer is a `prediction_id`; read the result at `https://api.flymy.ai/api/v1/flymyai/kling-4_0-reference-to-video/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/kling-4_0-reference-to-video/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Keep the subject and its motion, set the scene on a beach at golden hour' \
  -F 'images=["https://example.com/front.jpg", "https://example.com/back.jpg"]'
```

### Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
task = fma.predict_async_task(
    model="flymyai/kling-4_0-reference-to-video",
    payload={
        "prompt": "Keep the subject and its motion, set the scene on a beach at golden hour",
        "images": [
            "https://example.com/front.jpg",
            "https://example.com/back.jpg"
        ]
    },
)
# a long run: wait for its result (up to 15 minutes here)
result = task.result(timeout=900)
print(result.inference_responses[0].output_data)
```

### JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "prompt": "Keep the subject and its motion, set the scene on a beach at golden hour",
    "images": [
      "https://example.com/front.jpg",
      "https://example.com/back.jpg"
    ]
  },
  "flymyai/kling-4_0-reference-to-video",
);
console.log(response.output_data);
```

### MCP

Your agent calls `get_model_schema`, then `run_model` with:

```
{
  "endpoint_id": "flymyai/kling-4_0-reference-to-video",
  "input": {
    "prompt": "Keep the subject and its motion, set the scene on a beach at golden hour",
    "images": [
      "https://example.com/front.jpg",
      "https://example.com/back.jpg"
    ]
  }
}
```

## Questions about Kling 4.0 Reference to Video

**Do I need a Kuaishou API key for Kling 4.0 Reference to Video?**

No. Kling 4.0 Reference to Video runs on FlyMy.AI's account, so you need no Kuaishou key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

**How much does Kling 4.0 Reference to Video cost?**

From $0.157 per second of duration, depending on resolution. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

**Can I try Kling 4.0 Reference to Video before I write code?**

Yes. Open Kling 4.0 Reference to Video in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/kling-4_0-reference-to-video, fill in its inputs and run it; the same run is one API call later, billed the same way.

**How do I use Kling 4.0 Reference to Video in Claude Code, Codex or Cursor?**

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Use Kling 4.0 Reference to Video to make a clip of the character in my reference images walking along a rainy neon street at night." Your agent reads the inputs with get_model_schema and runs flymyai/kling-4_0-reference-to-video with run_model.

**What does Kling 4.0 Reference to Video need as input?**

Kling 4.0 Reference to Video requires prompt and images; it also takes 5 optional inputs, each listed on this page with its allowed values and default.

**Can I call Kling 4.0 Reference to Video from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/kling-4_0-reference-to-video/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

## More reference video, editing and lip sync models

Keep characters and products from references, edit, extend, reframe or upscale a clip, dub it into another language, sync lips to a voice, make a photo talk or time a video to your audio.

### Kling 4.0 Video Edit

Restyle a real clip or swap what is in it, with references and keyframes, up to 30 seconds.

Video editing / from $0.564 / run

Link: https://flymy.ai/models/kling-4-0-video-to-video-edit/

### Kling 4.0 Flash Reference to Video

Fast Kling 4.0 clips that keep your characters and products from up to ten pictures.

Reference to video / $0.094 / s

Link: https://flymy.ai/models/kling-4-0-flash-reference-to-video/

### Kling 4.0 Flash Video Edit

Quick 720p restyles and swaps of a real clip, up to 20 seconds.

Video editing / from $0.378 / run

Link: https://flymy.ai/models/kling-4-0-flash-video-to-video/

### Wan 3.0 Reference to Video

Wan 3.0 from references: the same cast, location and voice across 30 seconds.

Reference to video / from $0.05 / s

Link: https://flymy.ai/models/wan-3-0-ref2v/

### Seedance 2.5 Reference to Video

Seedance 2.5 from many references: keep a cast consistent, or edit and extend a clip.

Reference to video / from $0.10794 / s

Link: https://flymy.ai/models/bytedance-seedance-2-5-reference-to-video/

### OmniHuman 2.0

One photo plus a voice track: a presenter, singer or character that moves in sync.

Talking video / $0.07 / s

Link: https://flymy.ai/models/bytedance-omnihuman-2-0/

## Go to the source

[Kling 4.0 Reference to Video in the playground →](https://app.flymy.ai/models/flymyai/kling-4_0-reference-to-video), [Image to video models →](https://flymy.ai/models/image-to-video/), [Kuaishou models →](https://flymy.ai/models/provider/kuaishou/), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Every model on FlyMy.AI →](https://flymy.ai/models/), [Model prices →](https://flymy.ai/models/pricing/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog)

From the FlyMy.AI model catalog of 2026-11-18: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
