[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Kling O1 Reference to Video Pro](https://spiral.ai/integrations/opencode/kling-o1-reference-to-video-pro)

# How to Use Kling O1 Reference to Video Pro in opencode

Kling O1 Reference to Video Pro builds 1080p scenes around reference characters, products, and settings. Unlike Kling O1 Image to Video Pro, it uses references to guide appearances rather than define both endpoints.

|  |  |
| --- | --- |
| Model | Kling O1 Reference to Video Pro |
| Available through | fal |
| Category | Video |
| Price | $0.1456 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 O1 Reference to Video Pro in opencode

- Use Kling O1 Reference to Video Pro with the character and workshop images in assets/storyboard to create a five-second scene. The character places a wooden toy on the bench; use a medium shot with warm window light.
- Estimate, then generate a 5-second 9:16 clip with Kling O1 Reference to Video Pro: a paper boat drifting down a rainy street. Save the result in ./assets.
- Make a 10-second product teaser with Kling O1 Reference to Video Pro for a smartwatch, slow orbit shot, studio lighting.
- Generate three 5-second b-roll clips of a busy coffee shop with Kling O1 Reference to Video Pro and list what each cost.
- Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with Kling O1 Reference to Video Pro.

## How to set up Kling O1 Reference to Video Pro 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 O1 Reference to Video Pro**: 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/o1/reference-to-video",
    "input": {
      "prompt": "Take @Image1 as the start frame. Start with a high-angle satellite view of the ancient greenhouse ruin surrounded by nature. The camera swoops down and flies…"
    }
  }'
```

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

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

## Kling O1 Reference to Video Pro tools and prices

- [Kling O1 Reference Image to Video Pro · Reference I2V](https://spiral.ai/tools/fal/fal-ai/kling-video/o1/reference-to-video) (fal): $0.1456 per second. Billed on `duration`, default 5.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_urls |  | — | Additional reference images for style/appearance. Reference in prompt as @Image1, @Image2, etc. Maximum 7 total (elements + reference images + start image). |
| elements |  | — | Elements (characters/objects) to include in the video. Reference in prompt as @Element1, @Element2, etc. Maximum 7 total (elements + reference images + start image). |
| duration | 3, 4, 5, 6, 7, 8, 9, 10 | 5 | Video duration in seconds. |
| aspect_ratio | 16:9, 9:16, 1:1 | 16:9 | The aspect ratio of the generated video frame. |

## What can you do with Kling O1 Reference to Video Pro in opencode?

Turn project artwork into short motion assets and revise existing clips with Kling O1. A coding agent can use the project's images, footage, and creative brief to prepare shots and place the results in the application.

### Product showcase clips

Animate a product still with a slow camera move, or use product references to place the item in a new scene. Keep each shot focused on one feature, such as the handle, finish, or silhouette.

### Fashion lookbook shots

Turn an outfit image into a short walking or turning shot. Use a composed still to anchor the opening, or reference images to guide the model's appearance and clothing.

### Storyboard motion studies

Explore how a storyboard scene could move before production. Animate a board with a defined camera move, or use character and setting references to develop a short scene.

### Character introduction shots

Create a short entrance, glance, or turn from character artwork. Anchor the shot with an opening frame or guide the character's appearance with reference images.

## Overview

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

## Kling O1 Reference to Video Pro in other agents

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

## More opencode guides

- [Kling O1 Reference Standard](https://spiral.ai/integrations/opencode/kling-o1-reference-standard)
- [Kling O1 Reference to Video Standard](https://spiral.ai/integrations/opencode/kling-o1-reference-to-video-standard)
- [Kling O1 Reference Pro](https://spiral.ai/integrations/opencode/kling-o1-reference-pro)
- [Kling O1 Video Edit Pro](https://spiral.ai/integrations/opencode/kling-o1-video-edit-pro)
- [Kling O1 Image to Video Standard](https://spiral.ai/integrations/opencode/kling-o1-image-to-video-standard)
- [Kling O1 Video Edit Standard](https://spiral.ai/integrations/opencode/kling-o1-video-edit-standard)

## Questions about Kling O1 Reference to Video Pro in opencode

**Can opencode use Kling O1 Reference to Video Pro?**

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

**How much does Kling O1 Reference to Video Pro cost in opencode?**

$0.1456 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 O1 Reference to Video Pro in opencode?**

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

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

**Does opencode wait while Kling O1 Reference to Video Pro runs?**

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

**What is Kling O1 useful for?**

Kling O1 suits short visual sequences where you want control over recognizable subjects, composition, or an existing shot. Practical uses include product videos, storyboard animation, and visual revisions.

**Can Kling O1 make a full minute in one generation?**

No. Kling O1 outputs at most 10 seconds per generation, so plan longer videos as separate shots and assemble them afterward.

**What resolution does Kling O1 produce?**

Standard outputs 720p video, and Pro outputs 1080p. Choose the output size around where the finished shot will appear.

**How should I write a Kling O1 prompt?**

Name the subject and its action first. Then describe the setting, camera movement, and visual style so each instruction has a clear job.

**What should I plan around before using Kling O1?**

The 10-second ceiling makes Kling O1 better suited to individual shots than uninterrupted long scenes. Decide what each shot must accomplish before generating it.

