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

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

Revise existing footage with text instructions and optional visual references in native 4K. Unlike Kling O3 4K Reference to Video, it starts with a video you want to change.

|  |  |
| --- | --- |
| Model | Kling O3 4K Video Editing |
| 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 4K Video Editing in opencode

- Use Kling O3 4K Video Editing on this project's 5-second courtyard clip. Change the weather to a rainy evening, preserve the person's appearance and walking action, and retain the original sound.
- Estimate, then generate a 5-second 9:16 clip with Kling O3 4K Video Editing: a paper boat drifting down a rainy street. Save the result in ./assets.
- Make a 10-second product teaser with Kling O3 4K Video Editing for a smartwatch, slow orbit shot, studio lighting.
- Generate three 5-second b-roll clips of a busy coffee shop with Kling O3 4K Video Editing and list what each cost.
- Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with Kling O3 4K Video Editing.

## How to set up Kling O3 4K Video Editing 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 4K Video Editing**: 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/edit",
    "input": {
      "prompt": "Change environment to be fully snow as @Image1. Replace animal with @Element1",
      "video_url": "https://storage.googleapis.com/falserverless/example_inputs/kling-o3/pro-v2v-edit/video_reference.mp4"
    }
  }'
```

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

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

## Kling O3 4K Video Editing tools and prices

- [Kling Video 4K Edit · Video to Video](https://spiral.ai/tools/fal/fal-ai/kling-video/o3/4k/video-to-video/edit) (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. |

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

Turn a project's creative brief and visual assets into short scenes or footage revisions with Kling O3. Keep the intended action and visual direction beside the project so each result can be reviewed against the brief.

### Product reveal concepts

Create or revise a short product scene to test framing, lighting, and the reveal before committing to a campaign.

### Storyboard scene tests

Explore a scene's blocking, composition, and visual direction through generated shots or revisions to existing footage.

### Stylized short scenes

Develop a brief illustrated or anime scene, either by generating footage or restyling a supplied clip.

### Setting and mood studies

Test how a short scene reads in different environments, weather, or lighting before selecting its visual direction.

### Recognizable character and product scenes

Use visual references to direct recognizable subjects in a new scene or replace subjects in existing footage.

### Targeted footage revisions

Change a subject, background, color, weather, or visual style in a supplied short clip.

## Overview

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

## Kling O3 4K Video Editing in other agents

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

## More opencode guides

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

## Questions about Kling O3 4K Video Editing in opencode

**Can opencode use Kling O3 4K Video Editing?**

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

**How much does Kling O3 4K Video Editing 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 4K Video Editing in opencode?**

No. Spiral runs Kling O3 4K Video Editing 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 4K Video Editing in opencode?**

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

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

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

**What is Kling O3 useful for?**

Use Kling O3 for short advertising scenes, storyboard experiments, and visual storytelling. Choose a concrete scene to create or revise, such as a product reveal or a character entering a room.

**How long should I plan each scene?**

Plan around short clips: generation supports 3 to 15 seconds, and video editing accepts footage within that range. Break a longer story into separate scenes.

**What should a Kling O3 prompt describe?**

Describe the subject, visible action, setting, lighting, and camera intention. When revising footage, state the exact change and what you want preserved.

**What should I review before using a clip?**

Watch the entire clip and check whether the intended action, appearance, and camera direction hold throughout. Treat requests to preserve details as instructions to verify during review.

**Is Kling O3 the same as Kling VIDEO 3.0 Omni?**

Yes. Kling O3 is the name used for VIDEO 3.0 Omni, which follows Kling O1.

