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

opencode · Video

How to Use DreamActor V2 in opencode

DreamActor V2 transfers a recorded performance onto a character image, including facial expressions and lip movements. It supports cartoons, animals, and multiple characters, making it useful for mascot clips, dance animation, and portrait reactions.

Prompts to try with DreamActor V2 in opencode

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

Use DreamActor V2 to animate assets/mascot.png with the wave in assets/welcome-motion.mp4. Use the first 6 seconds of the recording and add the result to the welcome page preview.

DreamActor V2opencode
Try asking
  • Use DreamActor V2 with art/hero.png and motion/dance.mp4 to make a 10-second character dance preview. Save the result beside the character artwork.

  • Use DreamActor V2 to animate portraits/guide.png with the facial expressions in motion/reaction.mp4. Use an 8-second segment and make a preview beside the original portrait.

  • Use DreamActor V2 with art/cast.png and motion/ensemble.mp4 to test a 12-second coordinated performance. Add the result to the project's animation review page.

  • Use DreamActor V2 to animate art/cartoon-cat.png with motion/cat-performance.mp4. Use a 5-second segment, crop the opening transition, and save the result for review.

How to set up DreamActor V2 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 DreamActor V2

    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/bytedance/dreamactor/v2",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman.png",
          "video_url": "https://storage.googleapis.com/falserverless/example_outputs/omnihuman_output.mp4"
        }
      }'

Then paste one of the prompts above: opencode finds DreamActor V2 on Spiral, shows the price and runs it.

DreamActor V2 providers and prices

Spiral runs DreamActor V2 through fal. Open a card for today's price, with every fee included.

falVideo
Bytedance Dreamactor V2
fal-ai/bytedance/dreamactor/v2

Settings you can ask for

DreamActor V2 works from your image URL and video URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Trim first secondon or offon

Whether to crop the first second of the output video. The output has a 1-second transition at the beginning; enable this to remove it.

Every API field of Bytedance Dreamactor V2 is on its tool page: open its card above.

What can you do with DreamActor V2 in opencode?

Turn character artwork in your project into performed video assets with DreamActor V2. A coding agent can pair images with recorded motion, prepare short clips, and place the results in a preview.

Mascot greeting clips

Animate a mascot illustration with a recorded wave or welcoming gesture for an event introduction.

Character dance previews

Transfer a short dance recording onto a character image to preview how the design looks in motion.

Portrait reaction clips

Use a close-up performance to give a portrait a smile, surprised expression, or head movement.

Illustrated story performances

Pair a story character illustration with a recorded performance to test gestures and facial expressions for a scene.

Animated animal characters

Bring an animal image or cartoon pet into motion using a short driving video.

Ensemble animation tests

Transfer a coordinated performance onto an image containing several characters to explore a shared gesture or dance.

Questions about DreamActor V2 in opencode

Can opencode use DreamActor V2?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run DreamActor V2 like any built-in tool.

How much does DreamActor V2 cost in opencode?

Up to $3.90 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 DreamActor V2 in opencode?

No. Spiral runs DreamActor V2 on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up DreamActor V2 in opencode?

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

Does opencode wait while DreamActor V2 runs?

DreamActor V2 runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

How does DreamActor V2 control the animation?

The driving video supplies the performance, including motion, facial expressions, and lip movements. Choose a recording that already contains the action you want the character to perform.

Can DreamActor V2 animate cartoons and animals?

Yes. It supports realistic people, stylized cartoons, and animals, although the maker warns that overly abstract subjects may fail to generate.

Can DreamActor V2 animate several characters together?

Yes. The researchers demonstrate synchronized motion across multiple characters, including transferring a performance to a new cast.

How long can the driving video be?

The driving video can be up to 30 seconds long. For a longer performance, divide the recording into separate clips before generating.

What resolution and frame rate does DreamActor V2 produce?

The maker documents 720p MP4 video at 25 frames per second.

Get started

Start using DreamActor V2 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