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

opencode · Video

How to Use Kling Avatar 2.0 Pro in opencode

Kling Avatar 2.0 Pro turns character images and recorded audio into talking or singing videos. Compared with Kling Avatar 2.0 Standard, it offers finer facial detail and smoother lip sync for close-up presenters.

Prompts to try with Kling Avatar 2.0 Pro in opencode

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

Use Kling Avatar 2.0 Pro with the instructor portrait and 30-second welcome recording in this project's assets. Request a gentle smile and occasional nods, then add the video to the course introduction.

Kling Avatar 2.0 Proopencode
Try asking
  • Use Kling Avatar 2.0 Pro with the presenter image and approved 45-second release announcement in the project. Request confident delivery with occasional explanatory gestures.

  • Use Kling Avatar 2.0 Pro to animate the singer artwork to the project's 30-second chorus recording. Request expressive singing and gentle swaying, then save the video beside the audio.

  • Estimate, then generate a 5-second 9:16 clip with Kling Avatar 2.0 Pro: a paper boat drifting down a rainy street. Save the result in ./assets.

  • Make a 10-second product teaser with Kling Avatar 2.0 Pro for a smartwatch, slow orbit shot, studio lighting.

How to set up Kling Avatar 2.0 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 Avatar 2.0 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/ai-avatar/v2/pro",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/example_inputs/kling_ai_avatar_input.jpg",
          "audio_url": "https://v3.fal.media/files/rabbit/9_0ZG_geiWjZOmn9yscO6_output.mp3"
        }
      }'

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

Kling Avatar 2.0 Pro providers and prices

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

falVideo
Kling AI Avatar v2 Pro
fal-ai/kling-video/ai-avatar/v2/pro

What can you do with Kling Avatar 2.0 Pro in opencode?

Turn project narration and character artwork into presenter clips for tutorials and product updates. A coding agent can locate the assets, prepare performance directions, and place the resulting videos in the project.

Course introductions

Animate an instructor portrait to a recorded lesson introduction, using a patient expression and occasional explanatory gestures.

Product announcement presenters

Turn a presenter image and approved announcement recording into a speaking video with confident delivery.

Podcast excerpts

Give a recorded solo podcast excerpt an on-screen host by animating a portrait to the speaker's audio.

Singing character clips

Animate a singer or illustrated performer to a recorded song excerpt, with expressions and movement suited to the performance.

Multilingual welcome videos

Pair a host image with separate English, Japanese, Korean, or Chinese recordings to create welcome messages for different audiences.

Illustrated story narrators

Give a drawn narrator a speaking performance using a recorded passage and a warm, expressive delivery prompt.

Mascot announcements

Animate an animal or cartoon mascot to a short announcement recording for community updates.

Employee training introductions

Create a presenter-led opening for a training module from an instructor image and approved narration.

Questions about Kling Avatar 2.0 Pro in opencode

Can opencode use Kling Avatar 2.0 Pro?

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

How much does Kling Avatar 2.0 Pro cost in opencode?

Up to $8.97 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 Avatar 2.0 Pro in opencode?

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

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

Does opencode wait while Kling Avatar 2.0 Pro runs?

Kling Avatar 2.0 Pro runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

What is Kling Avatar 2.0 best for?

Talking presenters, narrated characters, and singing performances driven by recorded audio. Its focus is matching the character's performance to the audio.

How long can a Kling Avatar 2.0 video be?

Kling documents videos up to five minutes. The supplied audio determines the clip's length, so trim the recording to the intended runtime.

Which languages does Kling Avatar 2.0 support?

Kling's guide lists English, Japanese, Korean, and Chinese. Use a recording in the intended language.

Can Kling Avatar 2.0 animate cartoons or animals?

Yes. It supports realistic humans, animals, cartoons, and stylized characters, making illustrated hosts and speaking mascots useful applications.

What should I put in a performance prompt?

Describe the expression and movement you want: a gentle smile, occasional nods, or a restrained hand gesture. Start with one clear delivery style, then refine it after reviewing the result.

Get started

Start using Kling Avatar 2.0 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