How to Use Kling 4.0 Video Edit in Codex
Kling 4.0 Video Edit revises source footage using text instructions and optional image references. Compared with Kling 4.0 Flash Video Edit, it supports longer edits up to 30 seconds and output at 1080p.
Prompts to try with Kling 4.0 Video Edit in Codex
Copy an example into Codex, or ask in your own words.
Estimate, then generate a 5-second 9:16 clip with Kling 4.0 Video Edit: a paper boat drifting down a rainy street. Save the result in ./assets.
Make a 10-second product teaser with Kling 4.0 Video Edit for a smartwatch, slow orbit shot, studio lighting.
Generate three 5-second b-roll clips of a busy coffee shop with Kling 4.0 Video Edit and list what each cost.
Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with Kling 4.0 Video Edit.
Write three video ideas for our launch, then make the best one with Kling 4.0 Video Edit and show me the cost first.
How to set up Kling 4.0 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 Kling 4.0 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": "kling/v4/video-to-video/edit", "input": { "prompt": "Change the background to a tropical island at sunset.", "video_url": "<video_url>" } }'
Then paste one of the prompts above: Codex finds Kling 4.0 Video Edit on Spiral, shows the price and runs it.
Kling 4.0 Video Edit providers and prices
Spiral runs Kling 4.0 Video Edit through fal. Open a card for today's price, with every fee included.
$0.183 per second of source plus output at 1080p ($0.122 at 720p), at least twice the output's length.
Settings you can ask for
Kling 4.0 Video Edit works from your prompt, video URL, and image URLs. Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Duration | 3 to 30 | Output duration in seconds (3-30). Defaults to the source video's length. | |
| Resolution | 720p or 1080p | 1080p | Output resolution. |
Every API field of Kling 4.0 Video Edit is on its tool page: open its card above.
What can you do with Kling 4.0 Video Edit in Codex?
Turn a project's creative brief into short video assets and controlled shot tests. Use project files to keep the subject, visual direction, and review criteria consistent.
Product shot tests
Create or revise a short product shot to compare lighting, camera movement, and presentation before choosing a direction.
Social video hooks
Develop short opening shots with a clear visual action, then compare different ways to introduce a product or character.
Film previsualization
Create or revise a scene to test character blocking, camera coverage, and the timing of a visible action before a shoot.
Visual style studies
Explore a short scene through specific materials, lighting, and color choices, using a written brief or suitable source assets.
Revise an existing shot
Use source footage to explore a different background, subject, or visual treatment while specifying the details to retain.
More on Kling 4.0 Video Edit and Codex
Overview
Kling 4.0 Video Edit in other agents
Questions about Kling 4.0 Video Edit in Codex
Can Codex use Kling 4.0 Video Edit?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Kling 4.0 Video Edit like any built-in tool.
How much does Kling 4.0 Video Edit cost in Codex?
$0.183 per second of source plus output at 1080p ($0.122 at 720p), at least twice the output's length. 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 Kling 4.0 Video Edit in Codex?
No. Spiral runs Kling 4.0 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 Kling 4.0 Video Edit in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Kling 4.0 Video Edit runs?
Kling 4.0 Video Edit runs in the background. Codex starts the run, checks on it and gives you the video when it's ready.
What should I include in a Kling 4.0 prompt?
Describe the subject, visible action, setting, lighting, and camera movement. Give concrete details, such as a bottle catching side light, instead of asking for a premium look.
Should I use long negative prompts?
Keep them brief. Kling recommends describing what should appear and warns that negative prompts can increase errors.
How do I describe a visual style clearly?
Translate the style into visible details. For a vintage room, describe worn furniture, yellowed walls, and warm incandescent light.
How can I reduce ambiguity in an action prompt?
Describe the pose and movement you want to see. For example, ask for a person shown in profile during a phone call instead of listing views to avoid.
What should I change when a result misses the brief?
Replace vague instructions with observable details about the missed action, framing, or lighting. Revise one part of the brief at a time so you can judge the effect.
Start using Kling 4.0 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


