Spiral gives your agent every tool with one account. Browse the tools →

opencode · VideoReleased 2026-08-04

How to Use FLUX 3 First/Last Frame to Video Draft in opencode

FLUX 3 First/Last Frame to Video Draft previews motion between two supplied images. Unlike FLUX 3 Image to Video Draft, it anchors both the opening and closing composition, making it useful for planned reveals and transformations.

Prompts to try with FLUX 3 First/Last Frame to Video Draft in opencode

Copy an example into opencode, or ask in your own words.

Use FLUX 3 First/Last Frame to Video Draft with the project's opening and closing storyboard images. Preview a 10-second reveal connecting those compositions, with a steady camera move.

FLUX 3 First/Last Frame to Video Draftopencode
Try asking
  • Use FLUX 3 First/Last Frame to Video Draft to make an 8-second preview from the project's campaign brief: a ceramic mug on a windowsill, rain outside, a slow camera push toward rising steam, and rain tapping the glass.

  • Use FLUX 3 First/Last Frame to Video Draft with the product still in this project. Make a 6-second preview with a slow camera move toward the product and a soft piano accompaniment.

  • Use FLUX 3 First/Last Frame to Video Draft to preview a 12-second animated scene for the project's explainer: a paper boat crosses a puddle, passes under a leaf, and reaches the bank, accompanied by water sounds.

  • Use FLUX 3 First/Last Frame to Video Draft with the project's character illustration. Make an 8-second dialogue preview in which the character looks toward the camera and says, 'The next train is ours.' Review the picture and sound.

How to set up FLUX 3 First/Last Frame to Video Draft in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. 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
  2. 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
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run FLUX 3 First/Last Frame to Video Draft

    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/draft",
        "input": {
          "prompt": "A red panda walks along a mossy log in a sunlit forest, one continuous unbroken shot.",
          "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 Draft on Spiral, shows the price and runs it.

FLUX 3 First/Last Frame to Video Draft providers and prices

Spiral runs FLUX 3 First/Last Frame to Video Draft through fal. Open a card for today's price, with every fee included.

falVideo
FLUX 3 First/Last Frame to Video · Fast Preview
blackforestlabs/flux-3/first-last-frame-to-video/draft

Settings you can ask for

FLUX 3 First/Last Frame to Video Draft works from your prompt, start image URL, and end image URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Aspect ratioauto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, or 9:16auto

Aspect ratio of the generated draft. auto lets the model choose.

Duration5 to 205

Draft duration in whole seconds from 5 through 20. An explicit duration pins the two images to the video boundaries.

Generate audioon or offon

Whether to generate audio for the draft video.

Safety tolerance0 to 42

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 · Fast Preview is on its tool page: open its card above.

What can you do with FLUX 3 First/Last Frame to Video Draft in opencode?

Turn project briefs and creative assets into motion previews you can review alongside the work. Use FLUX 3 Draft to compare action, camera movement, and sound before selecting a shot.

Ad concept previews

Compare a product reveal, a close-up, and a wider scene before choosing the direction for an ad.

Storyboard motion tests

Preview how a planned scene moves, where the camera travels, and whether the action fits the allotted time.

Animation style tests

Try an animated or illustrated treatment for a short scene before committing to its visual direction.

Dialogue scene previews

Test a brief spoken exchange with its picture and surrounding sounds, then review the take before choosing it.

Sound and action studies

Preview a visible action with matching effects, such as a cup touching a saucer or rain striking a window.

Still-image animation

Turn a product photo or illustration into a motion preview. Supply a closing image too when the shot needs a planned destination.

Planned visual transitions

Supply the opening and closing compositions to test the motion connecting a reveal or transformation.

Questions about FLUX 3 First/Last Frame to Video Draft in opencode

Can opencode use FLUX 3 First/Last Frame to Video Draft?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FLUX 3 First/Last Frame to Video Draft like any built-in tool.

How much does FLUX 3 First/Last Frame to Video Draft cost in opencode?

$0.078 per second of `duration`, 5 to 20 seconds, 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 FLUX 3 First/Last Frame to Video Draft in opencode?

No. Spiral runs FLUX 3 First/Last Frame to Video Draft 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 Draft 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 Draft runs?

FLUX 3 First/Last Frame to Video Draft runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

What should I use FLUX 3 Draft for?

Use it to compare shot ideas, motion, and pacing before choosing a full-quality render. The preview uses reduced quality, so treat it as a creative decision aid.

How long are FLUX 3 Draft clips, and are they 4K?

Clips can run up to 20 seconds. Draft output is HD only.

Can FLUX 3 Draft create sound with the picture?

Yes. FLUX 3 can generate synchronized speech, sound effects, and environmental ambience alongside the frames.

Can I test several shots in one clip?

Yes. FLUX 3 supports multiple scenes and camera angles within one generation, which makes it useful for testing a short sequence.

Is FLUX 3 Draft useful for animation?

Yes. FLUX 3 supports animation, motion design, and stylized artistic looks, so your preview can explore an illustrated treatment as well as a realistic scene.

Get started

Start using FLUX 3 First/Last Frame to Video Draft in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options