[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [MiniMax H3 Max Recast](https://spiral.ai/integrations/claude-code/minimax-h3-max-recast)

# How to Use MiniMax H3 Max Recast in Claude Code

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.

|  |  |
| --- | --- |
| Model | MiniMax H3 Max Recast |
| Available through | fal |
| Category | Video |
| Price | 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. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MiniMax H3 Max Recast in Claude Code

- 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 Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run MiniMax H3 Max Recast**: One request; the result comes back by polling or a webhook.

```bash
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: Claude Code finds MiniMax H3 Max Recast on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## MiniMax H3 Max Recast tools and prices

- [H3 Max Recast](https://spiral.ai/tools/fal/minimax/h3-max/recast) (fal): 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

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| prompt |  | — | Optional: who becomes whom, or what else to keep or change. |
| resolution | 768P, 1080P | 1080P |  |
| seed | 0 to … | — | Random seed. Leave empty for a random one. |
| enhance_realism |  | false | More natural skin textures and better blending of the new people into the scene. Off unless set. |

## What can you do with MiniMax H3 Max Recast in Claude Code?

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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## MiniMax H3 Max Recast in other agents

- [Amp](https://spiral.ai/integrations/amp/minimax-h3-max-recast)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/minimax-h3-max-recast)
- [Claude](https://spiral.ai/integrations/claude-desktop/minimax-h3-max-recast)
- [Cline](https://spiral.ai/integrations/cline/minimax-h3-max-recast)
- [Codex](https://spiral.ai/integrations/codex/minimax-h3-max-recast)
- [Cursor](https://spiral.ai/integrations/cursor/minimax-h3-max-recast)
- [Devin](https://spiral.ai/integrations/devin/minimax-h3-max-recast)
- [dots](https://spiral.ai/integrations/dots/minimax-h3-max-recast)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/minimax-h3-max-recast)
- [Gemini](https://spiral.ai/integrations/gemini/minimax-h3-max-recast)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/minimax-h3-max-recast)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/minimax-h3-max-recast)
- [goose](https://spiral.ai/integrations/goose/minimax-h3-max-recast)
- [Grok](https://spiral.ai/integrations/grok/minimax-h3-max-recast)
- [Grok Build](https://spiral.ai/integrations/grok-build/minimax-h3-max-recast)
- [Hermes](https://spiral.ai/integrations/hermes/minimax-h3-max-recast)
- [Instinct](https://spiral.ai/integrations/instinct/minimax-h3-max-recast)
- [Manus](https://spiral.ai/integrations/manus/minimax-h3-max-recast)
- [Muse](https://spiral.ai/integrations/muse/minimax-h3-max-recast)
- [Muse Code](https://spiral.ai/integrations/muse-code/minimax-h3-max-recast)
- [n8n](https://spiral.ai/integrations/n8n/minimax-h3-max-recast)
- [Notion](https://spiral.ai/integrations/notion/minimax-h3-max-recast)
- [OpenClaw](https://spiral.ai/integrations/openclaw/minimax-h3-max-recast)
- [opencode](https://spiral.ai/integrations/opencode/minimax-h3-max-recast)
- [Perplexity](https://spiral.ai/integrations/perplexity/minimax-h3-max-recast)
- [Raycast](https://spiral.ai/integrations/raycast/minimax-h3-max-recast)
- [VS Code](https://spiral.ai/integrations/vscode/minimax-h3-max-recast)
- [Windsurf](https://spiral.ai/integrations/windsurf/minimax-h3-max-recast)
- [Zapier](https://spiral.ai/integrations/zapier/minimax-h3-max-recast)

## More Claude Code guides

- [MiniMax H3 Image to Video LoRA](https://spiral.ai/integrations/claude-code/minimax-h3-image-to-video-lora)
- [MiniMax H3 Reference to Video](https://spiral.ai/integrations/claude-code/minimax-h3-reference-to-video)
- [MiniMax H3 Image to Video](https://spiral.ai/integrations/claude-code/minimax-h3-image-to-video)
- [MiniMax H3 Reference to Video LoRA](https://spiral.ai/integrations/claude-code/minimax-h3-reference-to-video-lora)
- [Marey Realism V1.5 Text to Video](https://spiral.ai/integrations/claude-code/marey-realism-v1-5-text-to-video)
- [MiniMax H3 Text to Video](https://spiral.ai/integrations/claude-code/minimax-h3-text-to-video)

## Questions about MiniMax H3 Max Recast in Claude Code

**Can Claude Code use MiniMax H3 Max Recast?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run MiniMax H3 Max Recast like any built-in tool.

**How much does MiniMax H3 Max Recast cost in Claude Code?**

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 Claude Code plan is separate.

**Do I need a fal account to use MiniMax H3 Max Recast in Claude Code?**

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 Claude Code?**

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

**Does Claude Code wait while MiniMax H3 Max Recast runs?**

MiniMax H3 Max Recast runs in the background. Claude Code 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.

