Product ad videos with MiniMax H3 on Colab
Notebook: https://colab.research.google.com/github/rwang23/colab-h3-video/blob/main/notebooks/colab_h3_product_ad.ipynb. It turns keyframes into 5 s shots: H3 first/last-frame generation with sound → SeedVR2 upscale to 1080×1920 → RIFE to 30 fps → Google Drive. Prompt templates: references/prompts.md. Hand-off message: references/handoff.md.
Use it for requests like 做 AI 商品广告视频, product ad clips or Reels/TikTok/Shorts footage from product photos, or "run H3 on Colab". Not for text or image-only ads, talking-head avatars, or long narrated explainers.
Rules
- Product truth first. Colours, materials, piece count and size come from the user's product facts or photos. Never invent features, reviews, results or people. No real people or brands unless the user supplies them and has the rights.
- One main action per shot, 5 s each, 3 shots per ad by default. Shots without a last frame are fine; a last frame gives a controlled ending.
- Spending compute units needs the user's go-ahead. State the estimate before any GPU run.
- Never leave a runtime connected. Closing the tab does not stop billing; the last notebook cell (or Runtime › Disconnect and delete runtime) does.
- Licence check. MiniMax H3's community licence excludes the US, the EU, the UK and South Korea, and companies above US$20M annual revenue need a written licence. Ask where the ads will run; if a market is excluded, say so before producing anything for it.
Steps
-
Brief (5 lines): audience, pain the product photo cannot show, hook for the first 3 s, proof shot, closing shot for the CTA.
-
Storyboard: a table of shots with purpose, keyframes (first, optional last) and the one action. Hook first: frame 0 must already show the product and the start of the action.
-
Keyframes (on the user's computer, image model of their choice; Gemini is included with Google AI Pro):
- Make or pick one hero image that locks the product's look; every later image uses it as a reference.
- Make each last frame by editing its first frame and changing only the thing that moves. Any extra prop in a last frame will appear from nowhere in the video.
- Write prompts with
references/prompts.md(camera, one light source, contact shadows, small real-world imperfections, explicit negatives). - Review the frames side by side: same room, light, props and product.
-
Video prompts: one per shot with timed beats (
[0-1.5s] ... [1.5-3.5s] ... [3.5-5s] ...), what stays still, real ambient sounds only, and the standard negatives. -
Shot table: write the
SHOTSlist for notebook cell 6 —(name, first_file, last_file_or_None, prompt, seed), one seed per shot — and the file names to upload toMyDrive/colab-ads/<PROJ_NAME>/keyframes/. -
Budget (L4, measured Nov 2026; Colab changes rates, the View resources panel is the truth):
Item Time Compute units Setup per runtime (install, 48 GB download, start) ~6 min ~0.2 Per shot: generate / upscale / interpolate ~8.5 / 6.5 / 6 min ~0.34 / 0.26 / 0.24 Per shot total ~21 min ~0.84 3-shot ad ~1 h ~2.5 GPU rates per hour, approx.: T4 cannot run it (16 GB); L4 2.3; A100 5.3 (often unavailable); G4 8.9 and H100 18 (Ultra only). Budget one reroll per ad. Pro has 200 units a month (about 80 ads), Ultra 1,000 or 2,000.
-
Run:
- If you can execute code on a Colab runtime (for example through a Colab MCP server or CLI), check the runtime has ≥ 20 GB of GPU memory, run cells 1–5, then cell 6 with
RUN='shot1', show the user shot 1, and continue withRUN='all'after their OK. Run cell 7 when done or on any error you cannot fix. - Otherwise hand off with the message in
references/handoff.md: the notebook link, the GPU choice, the keyframe files and where to put them, theSHOTSblock for cell 6, and the reminder to run cell 7.
- If you can execute code on a Colab runtime (for example through a Colab MCP server or CLI), check the runtime has ≥ 20 GB of GPU memory, run cells 1–5, then cell 6 with
-
QC and edit hand-off: sample frames from each
*_30fps.mp4; check product colour, piece count, props appearing or vanishing, and morphing. Reroll a failed shot with a new seed. Then the edit happens off-GPU: light grain, captions from frame 0, CTA, voice-over or music, loudness about -15 LUFS, export 1080×1920 at 30 fps, and a check on a phone.
Report back
The brief, the storyboard table, the keyframe prompts, the SHOTS block, the compute-unit estimate, what was run (or the hand-off instructions), and the QC findings with any shots to reroll.