[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [DreamActor V2](https://spiral.ai/integrations/codex/dreamactor-v2)

# How to Use DreamActor V2 in Codex

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.

|  |  |
| --- | --- |
| Model | DreamActor V2 |
| Available through | fal |
| Category | Video |
| Price | Up to $3.90 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with DreamActor V2 in Codex

- 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.
- 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 Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 DreamActor V2**: 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/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: Codex finds DreamActor V2 on Spiral, shows the price and runs it.

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

## DreamActor V2 tools and prices

- [Bytedance Dreamactor V2](https://spiral.ai/tools/fal/fal-ai/bytedance/dreamactor/v2) (fal): $0.065 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim_first_second |  | true | 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. |

## What can you do with DreamActor V2 in Codex?

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.

## Overview

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

## DreamActor V2 in other agents

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

## More Codex guides

- [Depth Anything Video](https://spiral.ai/integrations/codex/depth-anything-video)
- [ElevenLabs Dubbing](https://spiral.ai/integrations/codex/elevenlabs-dubbing)
- [DWPose Video](https://spiral.ai/integrations/codex/dwpose-video)
- [FFmpeg](https://spiral.ai/integrations/codex/ffmpeg)
- [CassetteAI Video Sound Effects Generator](https://spiral.ai/integrations/codex/cassetteai-video-sound-effects-generator)
- [FILM Video Interpolation](https://spiral.ai/integrations/codex/film-video-interpolation)

## Questions about DreamActor V2 in Codex

**Can Codex use DreamActor V2?**

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

**How much does DreamActor V2 cost in Codex?**

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 Codex plan is separate.

**Do I need a fal account to use DreamActor V2 in Codex?**

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 Codex?**

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

**Does Codex wait while DreamActor V2 runs?**

DreamActor V2 runs in the background. Codex 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.

