How to Use MiniMax H3 Max Recast in opencode
MiniMax H3 Max Recast replaces people in existing footage using reference photos. Use it when the cast needs to change while the original performance, camera movement, cuts, and audio stay.
Prompts to try with MiniMax H3 Max Recast in opencode
Copy an example into opencode, or ask in your own words.
Use MiniMax H3 Max Recast on assets/demo.mp4 with assets/presenter.jpg. First check that the clip is 5 to 30 seconds and no shot exceeds 15 seconds, then replace only the central presenter and preserve the demonstration and audio.
Create two casting previews with MiniMax H3 Max Recast from assets/intro.mp4, using assets/cast-a.jpg and assets/cast-b.jpg in separate renders. Keep the same performance and cuts, and place the previews beside the source for review.
Use MiniMax H3 Max Recast on assets/dialogue.mp4. Replace the speaker on the right with assets/new-speaker.jpg, explicitly preserve the speaker on the left, and save a 1080p result.
Inspect the videos in assets/training and use MiniMax H3 Max Recast on clips that meet the 5 to 30-second total and 15-second shot limits. Replace the instructor with assets/instructor.jpg and flag clips that need editing first.
Use MiniMax H3 Max Recast to replace the host in assets/tour.mp4 with assets/host.jpg at 768p. Prepare a comparison view that lets me check the room details, handwritten signs, background people, and original audio.
How to set up MiniMax H3 Max Recast 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 MiniMax H3 Max Recast
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": "minimax/h3-max/recast", "input": { "video_url": "https://v3b.fal.media/files/b/0aac8cc6/lOHY4Mitfg5x1UDerR3RB_dw9Hs7ChHU-Fqwzz0W9cq_video.mp4", "reference_image_urls": [ "<reference_image_urls>" ] } }'
Then paste one of the prompts above: opencode finds MiniMax H3 Max Recast on Spiral, shows the price and runs it.
MiniMax H3 Max Recast providers and prices
Spiral runs MiniMax H3 Max Recast through fal. Open a card for today's price, with every fee included.
Up to $24.725855 per run at the default inputs for 60 seconds of input. resolution: 768P $18.095855, 1080P (default) $24.725855. $28.60 per 1M input tokens.
Settings you can ask for
MiniMax H3 Max Recast works from your video URL, reference image URLs, and prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Resolution | 768P or 1080P | 1080P | |
| Seed | a whole number from 0 | Random seed. Leave empty for a random one. | |
| Enhance realism | on or off | off | More natural skin textures and better blending of the new people into the scene. Off unless set. |
Every API field of H3 Max Recast is on its tool page: open its card above.
What can you do with MiniMax H3 Max Recast in opencode?
Recast presenters in project videos while preserving the recorded performance and edit. A coding agent can inspect clip lengths, prepare explicit replacement instructions, and organize source-and-result comparisons.
Compare casting choices
Try different reference portraits on the same short performance. Compare the casting choices while keeping the source timing and edit.
Refresh a product presenter
Replace the presenter in an existing product demonstration. Explicitly ask to preserve the demonstration, product details, camera movement, and soundtrack.
Update training footage
Recast the instructor in a short training scene using a replacement portrait. Keep the original explanation and action timing, then review the result against the source.
Recast a property tour
Change the person presenting a room while requesting that the room finishes, walkthrough motion, camera path, and audio stay.
Replace one person in a dialogue
Map a reference portrait to one speaker in a short conversation. Explicitly identify the other speaker as someone to preserve.
Change a cast across cuts
Recast a short sequence with several shots using one reference photo per replacement person. Keep the total between 5 and 30 seconds and every shot at 15 seconds or less.
More on MiniMax H3 Max Recast and opencode
Overview
MiniMax H3 Max Recast in other agents
Questions about MiniMax H3 Max Recast in opencode
Can opencode use MiniMax H3 Max Recast?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run MiniMax H3 Max Recast like any built-in tool.
How much does MiniMax H3 Max Recast cost in opencode?
Up to $24.725855 per run at the default inputs for 60 seconds of input. `resolution`: 768P $18.095855, 1080P (default) $24.725855. $28.60 per 1M input tokens. 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 MiniMax H3 Max Recast in opencode?
No. Spiral runs MiniMax H3 Max Recast on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up MiniMax H3 Max Recast in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while MiniMax H3 Max Recast runs?
MiniMax H3 Max Recast runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.
What is MiniMax H3 Max Recast good for?
Changing who appears in a finished clip while retaining its motion, camera movement, cuts, and audio. Suggested uses include presenter replacements, casting comparisons, and refreshed training footage.
How long can a clip be, and what resolution can it return?
The source must run from 5 to 30 seconds, and each individual shot must be 15 seconds or shorter. Output is available at 768p or 1080p.
How many people can I replace?
Supply up to four reference photos, one per replacement person. For scenes with several people, explicitly state which photo replaces which person.
Does replacing a presenter change their voice or spoken language?
The result keeps the source sound, including the original voice and spoken language. Plan any dubbing or translation as a separate task.
What should I put in the prompt?
State who becomes whom, then identify what should stay. For example: replace the presenter on the right with the person in reference photo 1; keep the other presenter, camera movement, room, and audio unchanged.
Start using MiniMax H3 Max Recast 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


