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

Gemini CLI · VideoReleased 2026-11-10

How to Use LTX 2.5 Alpha Gen in Gemini CLI

LTX 2.5 Alpha Gen extracts foreground mattes from existing footage, including hair and soft edges. It produces a grayscale matte and a transparent ProRes cutout for compositing.

Prompts to try with LTX 2.5 Alpha Gen in Gemini CLI

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

Use LTX 2.5 Alpha Gen on the presenter clip in this project. Save the matte and cutout beside the source, then prepare an edge-review preview.

LTX 2.5 Alpha GenGemini CLI
Try asking
  • Process the product video in our assets directory with LTX 2.5 Alpha Gen. Prepare a composite over our existing background image and flag any incorrect foreground selection.

  • Use LTX 2.5 Alpha Gen on the generated character clip in this project. Preserve the original video and organize the resulting compositing assets by shot.

  • Run LTX 2.5 Alpha Gen on our logo animation video. Create a preview over the project's title background so I can inspect the extracted shape.

  • Use LTX 2.5 Alpha Gen on the animal footage in this project. Prepare a review of fur edges and motion blur, and retain the source audio separately.

How to set up LTX 2.5 Alpha Gen in Gemini CLI

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

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI 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 LTX 2.5 Alpha Gen

    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": "lightricks/ltx-2.5/alpha-gen",
        "input": {
          "video_url": "<video_url>"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds LTX 2.5 Alpha Gen on Spiral, shows the price and runs it.

LTX 2.5 Alpha Gen providers and prices

Spiral runs LTX 2.5 Alpha Gen through fal. Open a card for today's price, with every fee included.

falVideo
LTX 2.5 Alpha Gen
lightricks/ltx-2.5/alpha-gen

What can you do with LTX 2.5 Alpha Gen in Gemini CLI?

Turn project footage into foreground assets for video edits and compositing. A coding agent can process source clips and organize the matte and cutout files for review.

Presenter background replacement

Extract a presenter from recorded footage, then composite the cutout over a branded background. Inspect hair and shoulder edges before delivery.

Product video cutouts

Separate a product from an existing video for placement over a new backdrop. Check that Alpha Gen selected the intended object.

Animal footage composites

Create foreground mattes from animal footage for a new scene. Review fur edges and movement before using the composite.

Generated character reuse

Extract a character from generated footage and place the cutout over a different background in your editor.

Logo animation extraction

Pull a foreground matte from an existing logo animation for compositing over another video or background.

Matte preparation for VFX

Produce a grayscale matte from a shot for compositing work. Review translucent areas, motion blur, and occlusions before the final render.

Questions about LTX 2.5 Alpha Gen in Gemini CLI

Can Gemini CLI use LTX 2.5 Alpha Gen?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run LTX 2.5 Alpha Gen like any built-in tool.

How much does LTX 2.5 Alpha Gen cost in Gemini CLI?

Up to $78.00 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

Do I need a fal account to use LTX 2.5 Alpha Gen in Gemini CLI?

No. Spiral runs LTX 2.5 Alpha Gen on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up LTX 2.5 Alpha Gen in Gemini CLI?

About two minutes: add the server, then sign in, then check it.

Does Gemini CLI wait while LTX 2.5 Alpha Gen runs?

LTX 2.5 Alpha Gen runs in the background. Gemini CLI starts the run, checks on it and gives you the video when it's ready.

What is LTX 2.5 Alpha Gen useful for?

Use it to separate foreground subjects from existing footage for background replacement and compositing. It is particularly useful when hair and soft edges need partial transparency.

Can I tell it which person or object to keep?

Alpha Gen chooses the foreground from the source video. Text instructions and masks cannot select a particular person or object.

What do white, black, and gray mean in the matte?

White keeps the foreground visible, black makes an area transparent, and gray preserves partial transparency. Check that the matte keeps the subject you intended before compositing.

What files does Alpha Gen produce?

It produces a grayscale matte MP4 and a ProRes 4444 MOV cutout with straight alpha. Both outputs are silent, so keep the original audio for your edit.

Which shots need the closest inspection?

Review fine edges, translucent materials, motion blur, subjects passing behind objects, and cuts. Treat the output as a matte to inspect before your final composite.

Get started

Start using LTX 2.5 Alpha Gen in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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