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

opencode · VideoReleased 2026-06-09

How to Use Luma Ray 3.2 Text to Video in opencode

Luma Ray 3.2 Text to Video creates shots from a written scene description, useful for testing action, lighting, and camera direction. Unlike Luma Ray 3.2 Image to Video, it starts without a source image.

Prompts to try with Luma Ray 3.2 Text to Video in opencode

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

Read the project's creative brief and use Luma Ray 3.2 Text to Video to create a 5-second, 1080p establishing shot: a slow dolly through a sunlit greenhouse, leaves moving gently, calm pacing.

Luma Ray 3.2 Text to Videoopencode
Try asking
  • Use Luma Ray 3.2 Text to Video to create three separate 5-second, 720p lighting tests for the project's ceramic vase concept: soft daylight, hard side light, and moonlight. Keep the camera direction and pacing the same.

  • Estimate, then generate a 5-second 9:16 clip with Luma Ray 3.2 Text to Video: a paper boat drifting down a rainy street. Save the result in ./assets.

  • Make a 10-second product teaser with Luma Ray 3.2 Text to Video for a smartwatch, slow orbit shot, studio lighting.

  • Generate three 5-second b-roll clips of a busy coffee shop with Luma Ray 3.2 Text to Video and list what each cost.

How to set up Luma Ray 3.2 Text to Video 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 Luma Ray 3.2 Text 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": "luma/agent/ray/v3.2/text-to-video",
        "input": {
          "prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun, their manes flying in the wind; wide tracking shot."
        }
      }'

Then paste one of the prompts above: opencode finds Luma Ray 3.2 Text to Video on Spiral, shows the price and runs it.

Luma Ray 3.2 Text to Video providers and prices

Spiral runs Luma Ray 3.2 Text to Video through fal. Open a card for today's price, with every fee included.

falVideo
Luma Ray 3.2 Text to Video
luma/agent/ray/v3.2/text-to-video

Settings you can ask for

Luma Ray 3.2 Text to Video works from your prompt. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Aspect ratio3:4, 4:3, 1:1, 9:16, 16:9, or 21:916:9

Aspect ratio of the generated video.

Resolution540p, 720p, or 1080p540p

Resolution of the generated video. Higher resolutions cost more.

Duration5s or 10s5s

Duration of the generated video.

Loopon or offoff

Generate a seamless loop. Only valid for 5s, standard-dynamic-range generations without an end frame.

HDRon or offoff

Generate an HDR-encoded MP4. Requires HDR access on the account and a resolution of 720p or 1080p; not supported with 10s or loop.

Exr exporton or offoff

Also export an EXR file alongside the MP4. Requires hdr=true and HDR access.

Every API field of Luma Ray 3.2 Text to Video is on its tool page: open its card above.

What can you do with Luma Ray 3.2 Text to Video in opencode?

Turn a project's creative brief into short video assets with directed motion and lighting. A coding agent can use Ray3.2 to develop shots and place the results into the project's review workflow.

Product ad concepts

Explore a short product shot from a written brief, animate a product still, or restyle an existing product take.

Atmospheric B-roll

Develop a short establishing shot with deliberate camera movement and lighting, using a description, a still, or existing footage as the starting point.

Short film look tests

Explore how a scene reads in a chosen visual style before committing to a longer edit.

Lighting studies

Create separate short shots to compare soft daylight, hard side lighting, and a moonlit treatment.

Questions about Luma Ray 3.2 Text to Video in opencode

Can opencode use Luma Ray 3.2 Text to Video?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Luma Ray 3.2 Text to Video like any built-in tool.

How much does Luma Ray 3.2 Text to Video cost in opencode?

$0.65 per run at the default inputs. `resolution`: 540p (default) $0.65, 720p $1.30, 1080p $2.60. 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 Luma Ray 3.2 Text to Video in opencode?

No. Spiral runs Luma Ray 3.2 Text 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 Luma Ray 3.2 Text to Video in opencode?

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

Does opencode wait while Luma Ray 3.2 Text to Video runs?

Luma Ray 3.2 Text to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

What resolution can Ray3.2 produce?

Ray3.2 supports output up to 1080p. Use that resolution when you need a clip for a finished edit.

How should I write a Ray3.2 prompt?

Describe the subject, motion, camera movement, lighting, and pacing. For example, specify a slow camera push toward a ceramic vase under soft window light.

What video format does Ray3.2 return?

Ray3.2 delivers MP4 video. EXR output is also available for color grading and compositing.

What is Ray3.2 useful for in post-production?

Its native 16-bit HDR generation and EXR export support color grading and compositing. That makes it useful when a generated shot needs further work in a finishing pipeline.

How long should a Ray3.2 shot be?

A 5-second shot is a supported starting point. Plan a clear visual action and camera direction for that time, such as a slow reveal of a product.

Get started

Start using Luma Ray 3.2 Text 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 opencode

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