[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Kling 2.6 Pro Image to Video](https://spiral.ai/integrations/opencode/kling-2-6-pro-image-to-video)

# How to Use Kling 2.6 Pro Image to Video in opencode

Kling 2.6 Pro Image to Video animates a still into a short clip with speech, sound effects, and ambience. Unlike Kling 2.6 Pro Text to Video, it starts with an image to establish the visual direction.

|  |  |
| --- | --- |
| Model | Kling 2.6 Pro Image to Video |
| Available through | fal |
| Category | Video |
| Price | $0.091 per second. Billed on `duration`, default 5. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kling 2.6 Pro Image to Video in opencode

- Use Kling 2.6 Pro Image to Video to animate the product hero image in this project into a 5-second clip. Slowly move toward the product, add a soft mechanical hum, and include no speech.
- Use Kling 2.6 Pro Image to Video with the character illustration in this project. Make a 10-second greeting in which the character waves and says, in a warm English voice, "welcome back. let's begin."
- Animate the image I attach with Kling 2.6 Pro Image to Video: slow push-in, leaves moving in the wind. Save the result in ./assets.
- Turn this product photo into a 5-second rotating shot with Kling 2.6 Pro Image to Video.
- Bring this portrait to life with Kling 2.6 Pro Image to Video: a subtle smile and a blink.

## How to set up Kling 2.6 Pro Image to Video 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 2.6 Pro Image to Video**: 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/v2.6/pro/image-to-video",
    "input": {
      "prompt": "A king walks slowly and says \"My people, here I am! I am here to save you all\"",
      "start_image_url": "https://v3b.fal.media/files/b/0a84ab29/BSJXz9Ht-jgRgMf4IGxLU_upscaled.png"
    }
  }'
```

Then paste one of the prompts above: opencode finds Kling 2.6 Pro Image to Video on Spiral, shows the price and runs it.

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

## Kling 2.6 Pro Image to Video tools and prices

- [Kling Video v2.6 Image to Video](https://spiral.ai/tools/fal/fal-ai/kling-video/v2.6/pro/image-to-video) (fal): $0.091 per second. Billed on `duration`, default 5.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| duration | 5, 10 | 5 | The duration of the generated video in seconds |
| negative_prompt |  | blur, distort, and low quality |  |
| generate_audio |  | true | Whether to generate native audio for the video. Supports Chinese and English voice output. Other languages are automatically translated to English. For English speech, use lowercase letters; for acronyms or proper nouns, use uppercase. |
| voice_ids |  | — | Optional Voice IDs for video generation. Reference voices in your prompt with <<<voice_1>>> and <<<voice_2>>> (maximum 2 voices per task). Get voice IDs from the kling video create-voice endpoint: https://fal.ai/models/fal-ai/kling-video/create-voice |
| end_image_url |  | — | URL of the image to be used for the end of the video |

## What can you do with Kling 2.6 Pro Image to Video in opencode?

Turn project briefs into short video scenes with speech and environmental sound. A coding agent can use project copy and artwork to prepare a focused scene and place the generated clip in the project.

### Narrated product ads

Create a short product scene with one spoken benefit and matching action sounds. Use a written scene or an existing product image as the starting point.

### Two-person comedy scenes

Build a brief setup and reply with clearly labeled speakers, contrasting voices, and an explicit handoff between lines.

### Film scene previews

Test a short dramatic moment with character dialogue and environmental sound before planning a larger production.

### Ambient scene inserts

Generate a rain-soaked street, windy coast, or quiet cafe with environmental audio for a short scene insert.

### Action and sound previews

Pair a visible action with its sound, such as footsteps in a hallway, turning gears, or a crackling fire.

### Original music snippets

Try a short sung line or rap couplet with a specified performance style. Keep the lyrics brief enough for a 10-second clip.

### Animated campaign artwork

Turn an existing campaign still into a short scene with motion, narration, and ambience.

## Overview

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

## Kling 2.6 Pro Image to Video in other agents

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

## More opencode guides

- [Kling 2.6 Motion Control Standard](https://spiral.ai/integrations/opencode/kling-2-6-motion-control-standard)
- [Kling 2.6 Pro Text to Video](https://spiral.ai/integrations/opencode/kling-2-6-pro-text-to-video)
- [Kling 2.6 Motion Control Pro](https://spiral.ai/integrations/opencode/kling-2-6-motion-control-pro)
- [Kling 3.0 4K Image to Video](https://spiral.ai/integrations/opencode/kling-3-0-4k-image-to-video)
- [Kling 2.5 Turbo Standard Image to Video](https://spiral.ai/integrations/opencode/kling-2-5-turbo-standard-image-to-video)
- [Kling 3.0 4K Text to Video](https://spiral.ai/integrations/opencode/kling-3-0-4k-text-to-video)

## Questions about Kling 2.6 Pro Image to Video in opencode

**Can opencode use Kling 2.6 Pro Image to Video?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kling 2.6 Pro Image to Video like any built-in tool.

**How much does Kling 2.6 Pro Image to Video cost in opencode?**

$0.091 per second. Billed on `duration`, default 5. 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 2.6 Pro Image to Video in opencode?**

No. Spiral runs Kling 2.6 Pro Image to Video 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 2.6 Pro Image to Video in opencode?**

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

**Does opencode wait while Kling 2.6 Pro Image to Video runs?**

Kling 2.6 Pro Image to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

**Does Kling 2.6 generate sound with the video?**

Yes. It can generate speech, sound effects, and ambient audio alongside the visuals, including dialogue, narration, singing, and rap.

**Which spoken languages does Kling 2.6 support?**

Chinese and English. Speech requested in other languages is automatically translated into English, so it is a poor fit when the original spoken language must be preserved.

**How long can a Kling 2.6 clip be?**

Each generation lasts 5 or 10 seconds. Kling recommends 10 seconds for dialogue or singing to give the performance more room.

**What resolution does Kling 2.6 Pro support?**

Kling 2.6 Pro supports 1080p output.

**How should I write dialogue for Kling 2.6?**

Give each speaker a consistent label, describe the speaker's action, then write the line and vocal delivery. State who speaks next so the exchange has a clear order.

