# Kling 4.0 Text to Video MCP and API by Kuaishou | FlyMy.AI

> Kling 4.0 from Kuaishou turns a prompt into a 3 to 30 second clip with stereo sound and in-sync dialogue, at 720p or 1080p.

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

MCP / Models / Text to video

# Kling 4.0 Text to Video MCP: scenes with stereo sound

Kling 4.0 from Kuaishou turns a prompt into a 3 to 30 second clip with stereo sound and in-sync dialogue, at 720p or 1080p. Run it from Claude Code, Codex, Cursor or any MCP client through one FlyMy.AI MCP, or call its API.

[Use Kling 4.0 Text to Video](https://flymy.ai/mcp/models/kling-4-0-text-to-video/#start) [Inputs and price](https://flymy.ai/mcp/models/kling-4-0-text-to-video/#inputs)

No API key, from $0.157 / s, Text to video, Kuaishou, Commercial use

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use Kling 4.0 Text 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/mcp/models/kling-4-0-text-to-video.md. Help me connect the FlyMy.AI MCP to this assistant, then run Kling 4.0 Text to Video (flymyai/kling-4_0-text-to-video) for this task: Make a 10-second 9:16 video of a skateboarder carving through an empty pool with Kling 4.0 Text to Video at 1080p.
```

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

## What Kling 4.0 Text to Video does

Kling 4.0 is the fourth generation of Kling AI's video model. Describe the subject, the action, the camera and the sound in prompt, up to 26,000 characters; voices and dialogue stay in sync with the picture, in English, Chinese, Japanese, Korean, Spanish, Portuguese, German, French, Hindi and other languages. duration runs from 3 to 30 seconds (5 by default), resolution is 720p or 1080p (1080p by default) and aspect_ratio is 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Output: video. It takes no per-shot prompts, reference videos, elements or voices, renders no 4K and does not edit or extend a video.

## Kling 4.0 Text to Video inputs

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

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/mcp/models/kling-4-0-text-to-video/#input-prompt) `prompt` | string required Describe the video: the scene, the action, the camera, what people say and the sound |
| [#](https://flymy.ai/mcp/models/kling-4-0-text-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/mcp/models/kling-4-0-text-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/mcp/models/kling-4-0-text-to-video/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: 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 |

## Ask your agent

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

**“Make a 10-second 9:16 video of a skateboarder carving through an empty pool with Kling 4.0 Text to Video at 1080p.”** runs `flymyai/kling-4_0-text-to-video`

**“Write and render a short ad for a plant-based protein bar with Kling 4.0 Text to Video: three quick shots ending on the product.”** runs `flymyai/kling-4_0-text-to-video`

**“Generate a calm, slow-camera clip of a barista pouring latte art in a busy cafe with Kling 4.0 Text to Video.”** runs `flymyai/kling-4_0-text-to-video`

## Kling 4.0 Text 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 |

[See usage pricing →](https://flymy.ai/pricing/)

## Call Kling 4.0 Text to Video from code

The same model, from an agent or from your own code. Keys stay in your FlyMy.AI account.

### From an agent, through the MCP

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

```
{
  "endpoint_id": "flymyai/kling-4_0-text-to-video",
  "input": {
    "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
  }
}
```

### From your code, over HTTP

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-text-to-video/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/kling-4_0-text-to-video/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in'
```

## Questions about Kling 4.0 Text to Video

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

No. Kling 4.0 Text 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 Text 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.

**How do I use Kling 4.0 Text 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: "Make a 10-second 9:16 video of a skateboarder carving through an empty pool with Kling 4.0 Text to Video at 1080p." Your agent reads the inputs with get_model_schema and runs flymyai/kling-4_0-text-to-video with run_model.

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

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

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

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

## More text to video models

A written scene becomes a clip, many with sound generated in the same pass.

### Kling 4.0 Flash Text to Video

The fast Kling 4.0 tier: 720p drafts and social clips with sound, up to 20 seconds.

Text to video / $0.094 / s

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

### Kling 3.0 Text to Video

Kuaishou's Kling 3.0 from text: directed shots, camera moves and native audio.

Text to video / from $0.084 / s

Link: https://flymy.ai/mcp/models/kling-3-0-t2v/

### FLUX 3 Max Text to Video

Post-trained FLUX 3 Video: cinematic clips up to 20 seconds with native sound.

Text to video / from $0.17 / s

Link: https://flymy.ai/mcp/models/flux-3-max-text-to-video/

### FLUX 3 Video Text to Video

Black Forest Labs' video model from text: 5 to 20 second clips with spoken lines, plus cheap drafts.

Text to video / from $0.15 / s

Link: https://flymy.ai/mcp/models/flux-3-video-t2v/

### Grok Imagine Video 1.5

xAI's video model: 1 to 15 seconds with lip-synced sound from text, a first frame or up to 14 references.

Text and image to video / from $0.08 / s

Link: https://flymy.ai/mcp/models/grok-imagine-video-1-5/

### HeyGen Video 1 Text to Video

HeyGen's video model: presenter, product and training clips with sound, up to 30 s.

Text to video / from $0.02 / s

Link: https://flymy.ai/mcp/models/heygen-video-1-text-to-video/

## Go to the source

[Kling 4.0 Text to Video in the playground →](https://app.flymy.ai/models/flymyai/kling-4_0-text-to-video), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Text to video guide →](https://docs.flymy.ai/guides/generate-videos), [Every model on FlyMy.AI →](https://flymy.ai/mcp/models/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog), [Usage pricing →](https://flymy.ai/pricing/)

From the FlyMy.AI model catalog of 2026-11-18: inputs from the 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.
