# Kling 4.0 Reference to Video

Generate video from text and reference media with Kling 4.0 Reference to Video from fal through one Spiral API key. Kling 4.0 makes 3-30 s videos from a prompt and references; each element takes a frontal image with 1-3 more views, or one video. It runs in the background and returns video. Pay as you go, with no subscription.

- Provider: fal
- Category: Video
- Runs: In the background
- Returns: video
- Released: 2026-10-16
- Tool id: `fal` / `kling/v4/reference-to-video`
- Page: https://spiral.ai/tools/fal/kling/v4/reference-to-video

## Pricing

$0.306 per second at 1080p ($0.204 at 720p). With reference videos: $0.183 per second of reference plus output at 1080p ($0.122 at 720p), at least twice the output's length.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 930 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `prompt` | text |  | — | Text prompt. Reference inputs as @Image1, @Video1, @Element1, etc. Either prompt or multi_prompt must be provided. |
| `multi_prompt` | JSON |  | — | Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations. |
| `duration` | number (whole) | 3 to 30 | 5 | Video duration in seconds (3-30). |
| `start_image_url` | URL or file |  | — | Optional image to use as the first frame. Counts toward the image reference limit. |
| `image_urls` | URLs or files |  | — | Reference images, referenced as @Image1, @Image2, ... (max 10). |
| `video_urls` | URLs or files |  | — | Reference videos (3-30s each, 30s combined with element videos), referenced as @Video1, @Video2, ... (max 5). |
| `elements` | JSON |  | — | Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 elements may carry a voice_id and up to 3 may be video elements. |
| `resolution` | one of | 720p, 1080p | 1080p | Output resolution. |
| `aspect_ratio` | one of | auto, 16:9, 9:16, 1:1, 21:9 | 16:9 | Aspect ratio of the generated video. 'auto' adapts it to the references. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "kling/v4/reference-to-video",
    "input": {
      "prompt": "@Element1 and @Element2 are having dinner at the table in @Image1"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=kling%2Fv4%2Freference-to-video

## Common questions

### Kling 4.0 Reference to Video

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

$0.306 per second at 1080p ($0.204 at 720p). With reference videos: $0.183 per second of reference plus output at 1080p ($0.122 at 720p), at least twice the output's length. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Kling 4.0 Reference to Video through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "kling/v4/reference-to-video"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Kling 4.0 Reference to Video?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Kling 4.0 Reference to Video?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

