[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [PixVerse Swap](https://spiral.ai/integrations/n8n/pixverse-swap)

# How to Use PixVerse Swap in n8n

PixVerse Swap replaces a person, object, or background in existing footage using a reference image. Use it to revise a performance or product shot while retaining the source motion and camera work.

|  |  |
| --- | --- |
| Model | PixVerse Swap |
| Available through | fal |
| Category | Video |
| Price | Up to $0.52 per run at the default inputs for 60 seconds of input. `resolution`: 360p $0.39, 540p $0.39, 720p (default) $0.52. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with PixVerse Swap in n8n

- Every Monday, use PixVerse Swap to make product placement previews from the five-second clips and product images in my review queue. Replace only the assigned object and label each result with its product name.
- Each morning, use PixVerse Swap on new dance edit requests that include a source clip and character image. Process clips no longer than 30 seconds and collect the results for review.
- Every Friday, use PixVerse Swap to test the approved background image for each presenter clip in my queue. Make 720p previews and keep each result paired with its source.
- Once a week, use PixVerse Swap to create two prop alternatives for each five-second shot in the creative queue. Use the assigned reference images and the same source keyframe for both.
- Each afternoon, use PixVerse Swap to revisit edits where no target was detected. Try a clearer frame with the target fully visible, keep the assigned replacement image, and report unresolved clips.

## How to set up PixVerse Swap in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run PixVerse Swap in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds PixVerse Swap, prices it and runs it each time the step fires.

### 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 PixVerse Swap**: 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/pixverse/swap",
    "input": {
      "video_url": "https://v3b.fal.media/files/b/lion/k_RpEIZ4YZtwZklzXz7Gb_output.mp4",
      "image_url": "https://v3b.fal.media/files/b/elephant/Lu7lo2dpxVPD-NrNZzx42_56dc797a1f764c98a4f075a8c0332bf0.jpg"
    }
  }'
```

Then paste one of the prompts above: n8n finds PixVerse Swap on Spiral, shows the price and runs it.

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

## PixVerse Swap tools and prices

- [PixVerse Swap](https://spiral.ai/tools/fal/fal-ai/pixverse/swap) (fal): Up to $0.52 per run at the default inputs for 60 seconds of input. `resolution`: 360p $0.39, 540p $0.39, 720p (default) $0.52.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| mode | person, object, background | person | The swap mode to use |
| keyframe_id | 1 to … | 1 | The keyframe ID to use for face/object mapping. The input video is normalized to 24 FPS before processing, so keyframe 1 = first frame, keyframe 24 = 1 second in, etc. Valid range: 1 to (duration_seconds * 24). |
| resolution | 360p, 540p, 720p | 720p | The output resolution (1080p not supported) |
| seed |  | — | Random seed for generation |
| original_sound_switch |  | true | Whether to keep the original audio |

## What can you do with PixVerse Swap in n8n?

Turn recurring creative briefs into a batch of targeted video revisions. A scheduled agent can pair each source clip with its assigned replacement image and organize the results for review.

### Product placement previews

Replace a featured object with a product reference to explore how it looks within an existing shot.

### Prop alternatives

Try a different bag, phone, or tabletop prop in the same footage before choosing a creative direction.

### Character casting previews

Use a character reference to explore a replacement performer within an existing scene.

### Dance edits

Replace the dancer's appearance using a character image, with the original choreography as the motion source.

### Background studies

Try a different setting behind the subject using a reference image of the intended environment.

### Short scene remakes

Rework a brief scene through a subject or background replacement while using the original action and framing.

## Overview

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

## PixVerse Swap in other agents

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

## More n8n guides

- [PixVerse Sound Effects](https://spiral.ai/integrations/n8n/pixverse-sound-effects)
- [PixVerse V3.5 Image to Video](https://spiral.ai/integrations/n8n/pixverse-v3-5-image-to-video)
- [PixVerse Lipsync](https://spiral.ai/integrations/n8n/pixverse-lipsync)
- [PixVerse V3.5 Image to Video Fast](https://spiral.ai/integrations/n8n/pixverse-v3-5-image-to-video-fast)
- [PixVerse Extend Fast](https://spiral.ai/integrations/n8n/pixverse-extend-fast)
- [PixVerse V3.5 Text to Video](https://spiral.ai/integrations/n8n/pixverse-v3-5-text-to-video)

## Questions about PixVerse Swap in n8n

**Can n8n use PixVerse Swap?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run PixVerse Swap like any built-in tool.

**How much does PixVerse Swap cost in n8n?**

Up to $0.52 per run at the default inputs for 60 seconds of input. `resolution`: 360p $0.39, 540p $0.39, 720p (default) $0.52. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need a fal account to use PixVerse Swap in n8n?**

You need no fal account. n8n uses one Spiral API key for every tool, and Spiral runs PixVerse Swap on its own fal account.

**How long does it take to set up PixVerse Swap in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while PixVerse Swap runs?**

PixVerse Swap runs in the background. n8n starts the run, checks on it and gives you the video when it's ready.

**What is PixVerse Swap good for?**

Use it to replace a person, product, prop, or background in footage you already have. It suits revisions where the source performance and camera work are worth keeping.

**Can PixVerse Swap create a video from a written description?**

PixVerse Swap works from a source video and a replacement image. Give your agent a clear editing instruction, then use the image to define the replacement's appearance.

**How long can the source video be?**

PixVerse documents a maximum source duration of 30 seconds. Choose a short section that contains the action you want to revise.

**Can PixVerse Swap output 1080p?**

The maximum supported output is 720p. A higher-resolution source does not enable 1080p output.

**How do I choose a useful reference image?**

Use a clear, high-quality image of the replacement. Also choose a source keyframe where the target is fully visible, so the edit has an identifiable starting point.

