How to Use FLUX 3 First/Last Frame to Video in opencode
FLUX 3 First/Last Frame to Video connects two stills with generated motion, making it useful for reveals and planned transitions. Unlike FLUX 3 Image to Video, it lets you define where the shot ends.
Prompts to try with FLUX 3 First/Last Frame to Video in opencode
Copy an example into opencode, or ask in your own words.
Use FLUX 3 First/Last Frame to Video with the project's opening and closing storyboard images. Make a 10-second reveal that connects those compositions with a slow camera movement.
Estimate, then generate a 5-second 9:16 clip with FLUX 3 First/Last Frame to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
Make a 10-second product teaser with FLUX 3 First/Last Frame to Video for a smartwatch, slow orbit shot, studio lighting.
Generate three 5-second b-roll clips of a busy coffee shop with FLUX 3 First/Last Frame to Video and list what each cost.
Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with FLUX 3 First/Last Frame to Video.
How to set up FLUX 3 First/Last Frame 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 FLUX 3 First/Last Frame 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": "blackforestlabs/flux-3/first-last-frame-to-video", "input": { "prompt": "A red panda walks along a mossy log in a sunlit forest, one continuous unbroken shot. Ambient birdsong and rustling leaves.", "start_image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-1.jpeg", "end_image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-2.jpeg" } }'
Then paste one of the prompts above: opencode finds FLUX 3 First/Last Frame to Video on Spiral, shows the price and runs it.
FLUX 3 First/Last Frame to Video providers and prices
Spiral runs FLUX 3 First/Last Frame to Video through fal. Open a card for today's price, with every fee included.
$1.105 per run at the default inputs. resolution: 720p (default) $1.105, 1080p $1.885, 1440p $2.08, 2160p $3.055.
Settings you can ask for
FLUX 3 First/Last Frame to Video works from your prompt, start image URL, and end image URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Aspect ratio | auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, or 9:16 | auto | Aspect ratio of the generated video. |
| Resolution | 720p, 1080p, 1440p, or 2160p | 720p | Resolution of the generated video. |
| Duration | 5 to 20 | 5 | Duration of the generated video in seconds. An explicit duration is required to place the end frame. |
| Generate audio | on or off | on | Whether to generate audio for the video. |
| Safety tolerance | 0 to 4 | 2 | The safety tolerance level for the generated video. 0 is the strictest and 4 is the most permissive. |
Every API field of FLUX 3 First/Last Frame to Video is on its tool page: open its card above.
What can you do with FLUX 3 First/Last Frame to Video in opencode?
Create short video assets for a website, app, or game from a project brief. Have the agent turn each visual idea into a concrete shot with action and sound.
Product ad concepts
Create a short product reveal with a clear action and matching sound effects. Use the clip to compare creative directions before planning a shoot.
Animated explainers
Show one idea through a brief animated sequence, such as a seed sprouting or water moving through a landscape.
Storyboard motion studies
Turn a planned scene into a moving shot to assess framing, action, and pacing before production.
Localized presenter clips
Create short on-camera lines in different languages, with a named speaker and exact dialogue. Review pronunciation and speaker attribution before publishing.
Titles within a scene
Build a short sequence around a sign, title, or other typography placed inside the picture.
Stylized social clips
Explore an illustrated or animated look for a short social post, with motion and sound directed around one clear visual idea.
Planned before-and-after transitions
Supply the opening and ending compositions for a transformation, then describe the motion that connects them.
More on FLUX 3 First/Last Frame to Video and opencode
Overview
FLUX 3 First/Last Frame to Video in other agents
Questions about FLUX 3 First/Last Frame to Video in opencode
Can opencode use FLUX 3 First/Last Frame to Video?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FLUX 3 First/Last Frame to Video like any built-in tool.
How much does FLUX 3 First/Last Frame to Video cost in opencode?
$1.105 per run at the default inputs. `resolution`: 720p (default) $1.105, 1080p $1.885, 1440p $2.08, 2160p $3.055. 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 FLUX 3 First/Last Frame to Video in opencode?
No. Spiral runs FLUX 3 First/Last Frame 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 FLUX 3 First/Last Frame to Video in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while FLUX 3 First/Last Frame to Video runs?
FLUX 3 First/Last Frame to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.
How long can a FLUX 3 video be?
A clip can run from 5 to 20 seconds, in whole-second increments. Plan longer pieces as separate shots.
Does FLUX 3 generate sound and speech?
Yes. It generates lip-synced speech, sound effects, and ambience alongside the picture, and supports multiple languages and accents.
Can FLUX 3 create several shots in one clip?
Yes. A generation can contain scene changes and different camera angles. Describe the shots in order and make each transition explicit.
Is FLUX 3 limited to realistic footage?
No. You can request animation, motion design, or stylized artistic looks. It can also render typography inside a scene.
How should I prompt dialogue in FLUX 3?
Put the exact spoken words in quotation marks and identify the person speaking on camera. For an off-screen line, explicitly call it a voiceover.
Start using FLUX 3 First/Last Frame 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


