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

opencode · VideoReleased 2025-06-18

How to Use Hailuo 02 Standard Image to Video in opencode

Hailuo 02 Standard Image to Video animates stills into six- or ten-second shots at 512p or 768p. Compared with Hailuo 02 Fast Image to Video, it adds a 768p output option for reviewing more image detail.

Prompts to try with Hailuo 02 Standard Image to Video in opencode

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

Use Hailuo 02 Standard Image to Video with assets/landscape.png to make a ten-second 768p motion study. Show the river flowing while the camera stays still, then add the clip to the prototype.

Hailuo 02 Standard Image to Videoopencode
Try asking
  • Use Hailuo 02 Standard Image to Video to animate assets/product.png into a six-second 512p draft. Show steam rising from the cup with a slow camera move forward, and save the result with the project's video assets.

  • Use Hailuo 02 Standard Image to Video to animate the storyboard image in assets into a six-second 1080p shot. The cyclist moves forward while the camera follows; disable automatic prompt rewriting.

  • Animate the image I attach with Hailuo 02 Standard 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 Hailuo 02 Standard Image to Video.

How to set up Hailuo 02 Standard Image 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 Hailuo 02 Standard 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": "fal-ai/minimax/hailuo-02/standard/image-to-video",
        "input": {
          "prompt": "Man walked into winter cave with polar bear",
          "image_url": "https://storage.googleapis.com/falserverless/model_tests/minimax/1749891352437225630-389852416840474630_1749891352.png"
        }
      }'

Then paste one of the prompts above: opencode finds Hailuo 02 Standard Image to Video on Spiral, shows the price and runs it.

Hailuo 02 Standard Image to Video providers and prices

Spiral runs Hailuo 02 Standard Image to Video through fal. Open a card for today's price, with every fee included.

falVideo
MiniMax Hailuo 02 Standard · Image to Video
fal-ai/minimax/hailuo-02/standard/image-to-video

Settings you can ask for

Hailuo 02 Standard Image to Video works from your prompt, image URL, and end image URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Duration6 or 106

The duration of the video in seconds. 10 seconds videos are not supported for 1080p resolution.

Prompt optimizeron or offon

Whether to use the model's prompt optimizer

Resolution512P or 768P768P

The resolution of the generated video.

Every API field of MiniMax Hailuo 02 Standard · Image to Video is on its tool page: open its card above.

What can you do with Hailuo 02 Standard Image to Video in opencode?

Create short motion assets for a website, game, or prototype with Hailuo 02. A coding agent can use the project's visual brief to plan takes and place a selected clip in the build.

Product shot concepts

Try a short product reveal with one camera move. Review the framing and pacing before planning the rest of an ad.

Action shot planning

Test one movement as a short take, then decide whether its timing and camera treatment fit the planned sequence.

Background footage for an edit

Create individual landscape or atmosphere shots to review alongside the main footage.

Social video story beats

Build a short visual beat for a social edit, such as a reveal, arrival, or change in the scene.

Camera treatment comparisons

Generate separate takes of a scene with different camera directions. Compare them before committing to an edit.

Still image animation

Use an existing still as the basis for a short motion study, then review how the subject and scene develop.

Questions about Hailuo 02 Standard Image to Video in opencode

Can opencode use Hailuo 02 Standard Image to Video?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Hailuo 02 Standard Image to Video like any built-in tool.

How much does Hailuo 02 Standard Image to Video cost in opencode?

`resolution`: 512P $0.022113, 768P (default) $0.0585 per second. Billed on `duration`, default 6. 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 Hailuo 02 Standard Image to Video in opencode?

No. Spiral runs Hailuo 02 Standard 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 Hailuo 02 Standard Image to Video in opencode?

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

Does opencode wait while Hailuo 02 Standard Image to Video runs?

Hailuo 02 Standard 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 use Hailuo 02 for?

Use it for short shots that let you review an action or camera idea. Start with one shot, judge the result, and revise before building a longer edit.

Can I build a longer video with Hailuo 02?

Plan the edit as separate short shots. A six-second shot is a useful starting point across Hailuo 02, with longer sequences assembled afterward.

How should I describe a shot?

Name the subject, describe what happens, and state how the camera should move. Keep the first attempt focused enough that you can identify which instruction needs revision.

When should I disable automatic prompt rewriting?

Disable it when you have a carefully written shot description and want more precise control. That is especially useful when comparing changes to one instruction.

Should I generate a whole sequence at once?

Start with one action in one short shot, then generate the next shot separately. This gives you individual takes to review and arrange in an edit.

Get started

Start using Hailuo 02 Standard 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 opencode

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