How to Use Wan 2.7 Video Edit in Codex
Wan 2.7 Video Edit changes existing clips with instructions, from replacing objects to restyling a scene. It works on 2–10 second videos and can use a reference image to guide replacements.
Prompts to try with Wan 2.7 Video Edit in Codex
Copy an example into Codex, or ask in your own words.
Use Wan 2.7 Video Edit on assets/product-demo.mp4, a 6-second clip. Change the blue bottle to matte white while keeping its shape, the table, and the camera movement unchanged; save the result beside the source.
Use Wan 2.7 Video Edit on the 8-second assets/hero.mp4 clip. Replace the plain room background with a plant-filled studio, keep the person's action unchanged, and export landscape footage at 1080p for the landing page.
Use Wan 2.7 Video Edit on assets/walk.mp4, a 5-second clip, with assets/jacket.png as the reference. Replace only the person's jacket with the pictured jacket and save the edited clip for review.
Use Wan 2.7 Video Edit to turn the 4-second assets/intro.mp4 clip into a watercolor treatment with visible paper texture. Keep the scene's composition and action, then add an original-versus-edited comparison to the project's preview page.
Use Wan 2.7 Video Edit on assets/outdoor.mp4, a 10-second clip. Change the background to snowy winter while keeping the foreground subject unchanged, and save a 5-second edit taken from the start.
How to set up Wan 2.7 Video Edit in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex 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 Wan 2.7 Video Edit
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/wan/v2.7/edit-video", "input": { "prompt": "Transform the entire scene into a beautiful watercolor painting style. Soft brushstrokes, flowing paint washes, visible paper texture. Colors should bleed and…", "video_url": "https://v3b.fal.media/files/b/0a940a70/s4jC3lmmbU8Q6xM-SFtWB_m5JJudvy.mp4" } }'
Then paste one of the prompts above: Codex finds Wan 2.7 Video Edit on Spiral, shows the price and runs it.
Wan 2.7 Video Edit providers and prices
Spiral runs Wan 2.7 Video Edit through fal. Open a card for today's price, with every fee included.
Up to $11.70 per run at the default inputs for 60 seconds of input. resolution: 720p $7.80, 1080p (default) $11.70. Per unit of duration: 720p $0.13, 1080p (default) $0.195.
Settings you can ask for
Wan 2.7 Video Edit works from your prompt and video URL. Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Resolution | 720p or 1080p | 1080p | Output video resolution tier. |
| Aspect ratio | 16:9, 9:16, 1:1, 4:3, or 3:4 | Aspect ratio of the generated video. If not provided, uses the aspect ratio of the input video. | |
| Duration | 0, 2, 3, 4, 5, 6, 7, 8 and 2 more | 0 | Output video duration in seconds. Default 0 means match input video duration. When set (2-10), truncates from the start. |
| Audio setting | auto or origin | auto | Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve original audio from input video. |
| Seed | a whole number | Random seed for reproducibility (0-2147483647). |
Every API field of Wan · Edit Video is on its tool page: open its card above.
What can you do with Wan 2.7 Video Edit in Codex?
Create edited footage for a project's landing page, product demo, or visual review. Use Wan 2.7 Video Edit on short source clips, then place the results beside the originals for comparison.
Product color concepts
Use Wan 2.7 Video Edit to change a product's color in a short demonstration clip. Specify that its shape, surroundings, and camera movement should stay the same.
Clothing previews
Use Wan 2.7 Video Edit with an existing clip and a clothing reference image to preview a different outfit on the person in the shot.
Seasonal campaign footage
Ask Wan 2.7 Video Edit to turn a summer setting into a snowy winter scene while retaining the main subject and action.
Background replacements
Use Wan 2.7 Video Edit to place a filmed subject in a different setting, such as moving an exercise demonstration into a gym.
Object removal drafts
Ask Wan 2.7 Video Edit to remove a named distraction from a short shot. Identify its location and explicitly describe what should remain.
Art direction comparisons
Use Wan 2.7 Video Edit to restyle the same footage in watercolor or another artistic treatment for a creative review.
Lighting concepts
Ask Wan 2.7 Video Edit for a warmer or cooler lighting treatment on an existing shot before deciding on the visual direction.
More on Wan 2.7 Video Edit and Codex
Overview
Wan 2.7 Video Edit in other agents
Questions about Wan 2.7 Video Edit in Codex
Can Codex use Wan 2.7 Video Edit?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Wan 2.7 Video Edit like any built-in tool.
How much does Wan 2.7 Video Edit cost in Codex?
Up to $11.70 per run at the default inputs for 60 seconds of input. `resolution`: 720p $7.80, 1080p (default) $11.70. $0.195 per unit of `duration`. 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 Wan 2.7 Video Edit in Codex?
No. Spiral runs Wan 2.7 Video Edit on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Wan 2.7 Video Edit in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Wan 2.7 Video Edit runs?
Wan 2.7 Video Edit runs in the background. Codex starts the run, checks on it and gives you the video when it's ready.
What is Wan 2.7 Video Edit good for?
Use it to change an existing shot: replace an object, change the setting, or give the footage a different visual style. A reference image can guide the appearance of a replacement.
Can Wan 2.7 Video Edit handle long videos?
It accepts clips lasting 2–10 seconds. Prepare a short excerpt before requesting an edit; choosing an output duration does not extend the source.
How should I describe an edit?
Name the object or area to change, describe the replacement, and state what should stay the same. For example: remove the red suitcase beside the chair and keep the person, background, and camera movement unchanged.
Can I change the season or lighting?
Yes. Alibaba documents changes to lighting, seasonal colors, and the setting, so you can request a winter background or warmer lighting while specifying the details to preserve.
What are the actual dimensions of 1080p output?
Landscape output is 1920 × 1080, portrait is 1080 × 1920, and square is 1440 × 1440. The 4:3 and 3:4 formats produce 1648 × 1248 and 1248 × 1648, respectively.
Start using Wan 2.7 Video Edit in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


