[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Kling O3 Reference Video to Video 4K](https://spiral.ai/integrations/opencode/kling-o3-reference-video-to-video-4k)

# How to Use Kling O3 Reference Video to Video 4K in opencode

Kling O3 Reference Video to Video 4K creates new footage guided by a reference clip for projects that need 4K delivery. Unlike Kling O3 Reference Video to Video Pro, it generates native 4K output without a separate upscale.

|  |  |
| --- | --- |
| Model | Kling O3 Reference Video to Video 4K |
| Available through | fal |
| Category | Video |
| Price | Up to $32.76 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kling O3 Reference Video to Video 4K in opencode

- Use Kling O3 Reference Video to Video 4K to create a six-second landscape video for this project's landing page. Follow the supplied reference clip's slow push-in toward a ceramic cup on a wooden table, leaving open space above the cup.
- Use Kling O3 Reference Video to Video 4K with the camera reference and bottle photos in this project's media folder. Create a five-second tabletop reveal with a slow lateral track, one bottle centered, and soft side lighting.
- Read the project's storyboard and use Kling O3 Reference Video to Video 4K to create its eight-second opening shot. Use the supplied clip for camera style and the character images for appearance; show the character entering the station and stopping.
- Use Kling O3 Reference Video to Video 4K to test the camera direction in the project's creative brief. Generate two separate five-second shots of the same backpack, using the supplied clip as the movement reference and changing only the setting.
- Use Kling O3 Reference Video to Video 4K with the project's character references and camera clip. Create a six-second shot of the character walking toward a window and pausing; review the result for changes in clothing and unnatural foot contact.

## How to set up Kling O3 Reference Video to Video 4K in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Kling O3 Reference Video to Video 4K**: One request; the result comes back by polling or a webhook.

```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": "fal-ai/kling-video/o3/4k/video-to-video/reference",
    "input": {
      "prompt": "Integrate @Element1 in the scene. Style video should be following watercolor style of @Image1",
      "video_url": "https://storage.googleapis.com/falserverless/example_inputs/kling-o3/pro-v2v-reference/video_reference.mp4"
    }
  }'
```

Then paste one of the prompts above: opencode finds Kling O3 Reference Video to Video 4K on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Kling O3 Reference Video to Video 4K tools and prices

- [Kling Video 4K Video to Video · Videto to Video Reference 4K](https://spiral.ai/tools/fal/fal-ai/kling-video/o3/4k/video-to-video/reference) (fal): $0.546 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_urls |  | — | Reference images for style/appearance. Reference in prompt as @Image1, @Image2, etc. Maximum 4 total (elements + reference images) when using video. |
| keep_audio |  | true | Whether to keep the original audio from the reference video. |
| elements |  | — | Elements (characters/objects) to include. Reference in prompt as @Element1, @Element2. |
| shot_type |  | customize | The type of multi-shot video generation. |
| aspect_ratio | auto, 16:9, 9:16, 1:1 | auto | Aspect ratio. |
| duration | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | — | Video duration in seconds (3-15s for reference video). |

## What can you do with Kling O3 Reference Video to Video 4K in opencode?

Create reference-guided video assets for a project's pages, demos, or presentations. A coding agent can use the project's creative brief and media assets to draft shot instructions and review the generated footage in context.

### Product shot concepts

Use a reference clip's camera movement and product photos to explore a five-second tabletop reveal before planning a shoot.

### Adjacent film shots

Create a short scene to follow an existing shot, using the original clip to guide camera style and character references to guide appearance.

### Camera movement studies

Explore how a reference clip's slow push-in or lateral tracking move would look with a different subject and setting.

### Character scene tests

Pair a camera reference with character images to test a simple entrance, pause, or reaction in a new location.

### Social campaign concepts

Build short product or character scenes around a shared reference clip so a campaign has a consistent approach to camera movement.

### Storyboard motion previews

Turn a planned scene into an eight-second motion preview, specifying framing and action while using an existing clip as the camera reference.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Kling O3 Reference Video to Video 4K in other agents

- [Amp](https://spiral.ai/integrations/amp/kling-o3-reference-video-to-video-4k)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/kling-o3-reference-video-to-video-4k)
- [Claude](https://spiral.ai/integrations/claude-desktop/kling-o3-reference-video-to-video-4k)
- [Claude Code](https://spiral.ai/integrations/claude-code/kling-o3-reference-video-to-video-4k)
- [Cline](https://spiral.ai/integrations/cline/kling-o3-reference-video-to-video-4k)
- [Codex](https://spiral.ai/integrations/codex/kling-o3-reference-video-to-video-4k)
- [Cursor](https://spiral.ai/integrations/cursor/kling-o3-reference-video-to-video-4k)
- [Devin](https://spiral.ai/integrations/devin/kling-o3-reference-video-to-video-4k)
- [dots](https://spiral.ai/integrations/dots/kling-o3-reference-video-to-video-4k)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/kling-o3-reference-video-to-video-4k)
- [Gemini](https://spiral.ai/integrations/gemini/kling-o3-reference-video-to-video-4k)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/kling-o3-reference-video-to-video-4k)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/kling-o3-reference-video-to-video-4k)
- [goose](https://spiral.ai/integrations/goose/kling-o3-reference-video-to-video-4k)
- [Grok](https://spiral.ai/integrations/grok/kling-o3-reference-video-to-video-4k)
- [Grok Build](https://spiral.ai/integrations/grok-build/kling-o3-reference-video-to-video-4k)
- [Hermes](https://spiral.ai/integrations/hermes/kling-o3-reference-video-to-video-4k)
- [Instinct](https://spiral.ai/integrations/instinct/kling-o3-reference-video-to-video-4k)
- [Manus](https://spiral.ai/integrations/manus/kling-o3-reference-video-to-video-4k)
- [Muse](https://spiral.ai/integrations/muse/kling-o3-reference-video-to-video-4k)
- [Muse Code](https://spiral.ai/integrations/muse-code/kling-o3-reference-video-to-video-4k)
- [n8n](https://spiral.ai/integrations/n8n/kling-o3-reference-video-to-video-4k)
- [Notion](https://spiral.ai/integrations/notion/kling-o3-reference-video-to-video-4k)
- [OpenClaw](https://spiral.ai/integrations/openclaw/kling-o3-reference-video-to-video-4k)
- [Perplexity](https://spiral.ai/integrations/perplexity/kling-o3-reference-video-to-video-4k)
- [Raycast](https://spiral.ai/integrations/raycast/kling-o3-reference-video-to-video-4k)
- [VS Code](https://spiral.ai/integrations/vscode/kling-o3-reference-video-to-video-4k)
- [Windsurf](https://spiral.ai/integrations/windsurf/kling-o3-reference-video-to-video-4k)
- [Zapier](https://spiral.ai/integrations/zapier/kling-o3-reference-video-to-video-4k)

## More opencode guides

- [Kling O3 Pro Video Editing](https://spiral.ai/integrations/opencode/kling-o3-pro-video-editing)
- [Kling O3 Reference Video to Video Pro](https://spiral.ai/integrations/opencode/kling-o3-reference-video-to-video-pro)
- [Kling O3 Pro Text to Video](https://spiral.ai/integrations/opencode/kling-o3-pro-text-to-video)
- [Kling O3 Reference Video to Video Standard](https://spiral.ai/integrations/opencode/kling-o3-reference-video-to-video-standard)
- [Kling O3 Pro Reference to Video](https://spiral.ai/integrations/opencode/kling-o3-pro-reference-to-video)
- [Kling O3 Standard Image to Video](https://spiral.ai/integrations/opencode/kling-o3-standard-image-to-video)

## Questions about Kling O3 Reference Video to Video 4K in opencode

**Can opencode use Kling O3 Reference Video to Video 4K?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kling O3 Reference Video to Video 4K like any built-in tool.

**How much does Kling O3 Reference Video to Video 4K cost in opencode?**

Up to $32.76 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use Kling O3 Reference Video to Video 4K in opencode?**

No. Spiral runs Kling O3 Reference Video to Video 4K on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Kling O3 Reference Video to Video 4K in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Kling O3 Reference Video to Video 4K runs?**

Kling O3 Reference Video to Video 4K runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

**What is Kling O3 Reference Video to Video good for?**

It creates new shots guided by an existing clip's motion and camera style. That makes it useful for planning adjacent scenes, testing product shots, and carrying a visual approach across a short sequence.

**How long can the generated video be?**

A generated clip can run from 3 to 15 seconds. For a longer sequence, plan several short shots and assemble them in an editor.

**What reference video can I use?**

Use an MP4 or MOV clip between 3 and 15 seconds, with a documented resolution range of 720 to 3840 pixels and a maximum size of 200 MB. Trim longer footage to the camera move or action you want to reference.

**Can it generate new dialogue from a reference video?**

Native audio generation is unavailable when a reference video is supplied. Plan newly written dialogue as a separate audio step.

**How should I write a shot prompt?**

State the shot length, framing, perspective, subject action, and camera movement. For multiple shots, describe each shot separately and give it a time allocation.

