How to Use PixVerse Swap in Windsurf
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.
Prompts to try with PixVerse Swap in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use PixVerse Swap with assets/demo.mp4 and assets/bottle.png to replace the featured bottle. Use object replacement, choose a frame where the bottle is fully visible, and save a 720p review clip.
Use PixVerse Swap to replace the performer in assets/dance.mp4 with assets/character.png. Work with the first five seconds and save the result beside the source for comparison.
Use PixVerse Swap to replace the background in assets/presenter.mp4 with assets/studio.png. Process a five-second excerpt at 720p and add it to the project's media review page.
Use PixVerse Swap to test assets/bag-a.png and assets/bag-b.png as replacements for the bag in assets/walk.mp4. Keep the same source excerpt and keyframe for both edits.
Use PixVerse Swap on assets/prop-test.mp4 with assets/new-prop.png. Inspect the normalized 24 FPS timeline, select a frame where the prop is visible, and record that selection with the output.
How to set up PixVerse Swap in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run PixVerse Swap
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/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: Windsurf finds PixVerse Swap on Spiral, shows the price and runs it.
PixVerse Swap providers and prices
Spiral runs PixVerse Swap through fal. Open a card for today's price, with every fee included.
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
PixVerse Swap works from your video URL and image URL. Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Mode | person, object, or background | person | The swap mode to use |
| Keyframe ID | a whole number from 1 | 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, or 720p | 720p | The output resolution (1080p not supported) |
| Seed | a whole number | Random seed for generation | |
| Original sound switch | on or off | on | Whether to keep the original audio |
Every API field of PixVerse Swap is on its tool page: open its card above.
What can you do with PixVerse Swap in Windsurf?
Create alternate video assets for a project by replacing a performer, prop, or setting in existing footage. Your coding agent can pair project clips with reference images and keep each edit tied to its source.
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.
More on PixVerse Swap and Windsurf
Overview
PixVerse Swap in other agents
Questions about PixVerse Swap in Windsurf
Can Windsurf use PixVerse Swap?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run PixVerse Swap like any built-in tool.
How much does PixVerse Swap cost in Windsurf?
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 Windsurf plan is separate.
Do I need a fal account to use PixVerse Swap in Windsurf?
No. Spiral runs PixVerse Swap on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up PixVerse Swap in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while PixVerse Swap runs?
PixVerse Swap runs in the background. Windsurf 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.
Start using PixVerse Swap in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


