Spiral gives your agent every tool with one account. Browse the tools →

opencode · Video

How to Use Kling O1 Reference Pro in opencode

Kling O1 Reference Pro creates follow-up shots that carry over a reference clip's motion and camera style. Choose its 1080p output when you need more resolution than Kling O1 Reference Standard's 720p.

Prompts to try with Kling O1 Reference Pro in opencode

Copy an example into opencode, or ask in your own words.

Read the project's shot list and use Kling O1 Reference Pro to create its next eight-second shot from the approved reference clip.

Kling O1 Reference Proopencode
Try asking
  • Use Kling O1 Reference Pro with the project's character references and scene clip to create a six-second close-up as the detective notices the envelope.

  • Use Kling O1 Reference Pro with assets/establishing.mp4 to generate a five-second follow-up: the cyclist reaches the bridge, keeping the reference's tracking movement.

  • Use Kling O1 Reference Pro with the project's product image and camera reference to create a five-second orbit around the bottle.

  • Use Kling O1 Reference Pro to create two separate five-second camera studies from assets/reference.mp4, changing only the new scene's subject.

How to set up Kling O1 Reference 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    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 Pro

    One request; the result comes back by polling or a webhook.

    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/video-to-video/reference",
        "input": {
          "prompt": "Based on @Video1, generate the next shot. keep the style of the video",
          "video_url": "https://v3b.fal.media/files/b/panda/oVdiICFXY03Vbam-08Aj8_output.mp4"
        }
      }'

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

Kling O1 Reference Pro providers and prices

Spiral runs Kling O1 Reference Pro through fal. Open a card for today's price, with every fee included.

falVideo
Kling O1 Reference Video to Video Pro · Reference V2V
fal-ai/kling-video/o1/video-to-video/reference

Settings you can ask for

Kling O1 Reference Pro works from your prompt, video URL, and image URLs. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Keep audioon or offoff

Whether to keep the original audio from the video.

Aspect ratioauto, 16:9, 9:16, or 1:1auto

The aspect ratio of the generated video frame. If 'auto', the aspect ratio will be determined automatically based on the input video, and the closest aspect ratio to the input video will be used.

Duration3 to 105

Video duration in seconds.

Every API field of Kling O1 Reference Video to Video Pro · Reference V2V is on its tool page: open its card above.

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

Turn project footage into follow-up shots and camera studies with Kling O1 Reference. A coding agent can use the project's shot list and assets to prepare consistent briefs for each clip.

Follow-up scene

Generate the next shot after an establishing clip, carrying its camera style into a closer view of the action.

Previous-shot storyboard

Use an existing scene as a reference for the shot that leads into it, such as an approach to a doorway before an interior scene.

Product camera study

Combine a product image with a reference clip to explore how an orbit, push-in, or tracking move could present the product.

Character coverage

Use character references and an existing scene to request another shot featuring the same character, costume, and props.

Action rehearsal

Reference a short performance clip to explore the same action with a different character or setting.

Campaign shot series

Use one approved reference clip to guide camera movement across separate product shots for a campaign.

Questions about Kling O1 Reference Pro in opencode

Can opencode use Kling O1 Reference Pro?

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

How much does Kling O1 Reference Pro cost in opencode?

$0.2184 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 Pro in opencode?

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

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

Does opencode wait while Kling O1 Reference Pro runs?

Kling O1 Reference 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 Reference good at?

Creating a new shot that follows an existing clip's camera style and motion. Use it for follow-up scenes, alternate coverage, or a new subject filmed with similar camera movement.

Does Kling O1 Reference edit the original footage?

Reference generation creates new shots guided by the footage. Treat requests to remove an object from the original clip as editing work; Kling's documentation distinguishes reference generation from direct video editing.

How long can a generated shot be?

Kling O1 generates clips from 3 to 10 seconds. For a longer sequence, plan separate shots and assemble them afterward.

How do Standard and Pro differ?

Kling O1 Reference Standard outputs 720p; Kling O1 Reference Pro outputs 1080p. Choose based on the resolution your finished video needs.

What reference footage should I prepare?

Use a 3 to 10 second MP4 or MOV under 200 MB, with width and height between 720 and 2160 pixels. Choose a clip whose camera movement or action clearly demonstrates what you want to carry into the new shot.

Get started

Start using Kling O1 Reference Pro in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options