How to Use Kling 4.0 Flash Image to Video in opencode
Kling 4.0 Flash Image to Video turns a starting image into a short motion study at 720p. Unlike Kling 4.0 Image to Video, it stops at 20 seconds and does not support an ending frame.
Prompts to try with Kling 4.0 Flash Image to Video in opencode
Copy an example into opencode, or ask in your own words.
Use the product image in this project with Kling 4.0 Flash Image to Video to make an 8-second 1080p shot. Keep the product centered as the camera moves slowly to the right.
Animate the image I attach with Kling 4.0 Flash Image to Video: slow push-in, leaves moving in the wind. Save the result in ./assets.
Turn this product photo into a 5-second rotating shot with Kling 4.0 Flash Image to Video.
Bring this portrait to life with Kling 4.0 Flash Image to Video: a subtle smile and a blink.
Animate this illustration with Kling 4.0 Flash Image to Video: clouds drifting, a slow camera pan to the right.
How to set up Kling 4.0 Flash Image to Video in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Flash Image to Video
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/flash/image-to-video", "input": { "start_image_url": "https://v3b.fal.media/files/b/0aad8e98/IExjfxS5kaUm5jnqK5yfB_image_1.png" } }'
Then paste one of the prompts above: opencode finds Kling 4.0 Flash Image to Video on Spiral, shows the price and runs it.
Kling 4.0 Flash Image to Video providers and prices
Spiral runs Kling 4.0 Flash Image to Video through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Kling 4.0 Flash Image to Video works from your prompt and start image URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Duration | 3 to 20 | 5 | Video duration in seconds (3-20). |
| Resolution | 720p | 720p | Output resolution. Flash is 720p only. |
Every API field of Kling 4.0 Flash Image to Video is on its tool page: open its card above.
What can you do with Kling 4.0 Flash Image to Video in opencode?
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.
Animate a product image
Start with a product image and request a slow camera move that reveals its shape, surface, or packaging.
More on Kling 4.0 Flash Image to Video and opencode
Overview
Kling 4.0 Flash Image to Video in other agents
Questions about Kling 4.0 Flash Image to Video in opencode
Can opencode use Kling 4.0 Flash Image to Video?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kling 4.0 Flash Image to Video like any built-in tool.
How much does Kling 4.0 Flash Image to Video cost in opencode?
$0.1222 per second. Billed on `duration`, default 5. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a fal account to use Kling 4.0 Flash Image to Video in opencode?
No. Spiral runs Kling 4.0 Flash Image to Video 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 Flash Image to Video in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Kling 4.0 Flash Image to Video runs?
Kling 4.0 Flash Image to Video runs in the background. opencode 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 Flash Image to Video in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


