File size: 3,357 Bytes
40648c0
 
485879a
 
 
40648c0
485879a
40648c0
 
485879a
 
 
40648c0
 
485879a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: H3 Script Studio
emoji: 🎬
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 6.20.0
app_file: app.py
pinned: false
tags:
  - ml-intern
short_description: Structured pre-production β†’ shot prompts β†’ MiniMax-H3 clips
---

# H3 Script Studio

A structured, no-LLM pre-production pipeline and prompt builder for **[MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3)** video generation β€” the writing half of a shot-by-shot movie workflow, built to drive a render backend Space.

**Pipeline tabs:** Concept (title, logline, genre, style, tone, palette β†’ a *style bible* reused in every prompt) β†’ Characters (locked word-for-word appearance strings, the mechanism that keeps a character on-model across shots) β†’ Locations β†’ Story beats (one per line) β†’ Shots (camera, lens, lighting, audio, canvas, duration, seed β†’ composed H3 prompt) β†’ Keyframes (FLUX.1-schnell stills or uploads for first/last frames) β†’ Render & assemble (delegated clip generation + ffmpeg concat) β†’ Project JSON export/import.

## How rendering works

This Space runs on free CPU β€” it delegates all heavy work:

- **Video clips** β†’ any Space exposing the ShotCraft-style `/generate` API (prompt, first/last keyframes, canvas, duration, steps, seed, upsample, LoRA). Default backend: [`swimmerzeromaybe/ShotCraft-Movie-Production`](https://hf.co/spaces/swimmerzeromaybe/ShotCraft-Movie-Production), which also provides `/stitch` for assembling the sequence. Note: the official [`MiniMaxAI/MiniMax-H3-Turbo-Lora`](https://hf.co/spaces/MiniMaxAI/MiniMax-H3-Turbo-Lora) demo was rewritten to a `gr.Workflow` canvas and no longer exposes `/generate` to clients.
- **Stills** β†’ [`black-forest-labs/FLUX.1-schnell`](https://huggingface.co/black-forest-labs/FLUX.1-schnell) via the HF Inference router. Add an `HF_TOKEN` secret to this Space (Settings β†’ Variables and secrets) to enable it.
- **Canvas table and duration snapping** mirror the backend exactly (H3's video VAE decodes `17Β·n+5` frames at 24 fps, 2–14 s clips), so no composed setting is ever rejected by the conditioner.

## Setup

1. (Optional) Add `HF_TOKEN` as a Space secret for FLUX stills and for calling private backends.
2. Set the backend Space id on the Render tab. Its GPU quota applies to renders.

## Workflow tips

- Keep each beat filmable in 2–14 s: one place, one action, one moment of light.
- Reuse the *exact* character appearance string in every shot β€” paraphrasing breaks consistency.
- Generate 4–6 still options per keyframe and pick the best; the same seed + prompt gives the same frame.
- Export the project JSON often; keyframe images are session files and are not saved into the export.

Built with ML Intern β€” try:

<div style="display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 2em"><a href="https://hf.co/chat?mode=ml-intern"><img src="https://hf.co/datasets/huggingface/badges/resolve/main/built-with-ml-intern-lg.svg" alt="Built with ML Intern" style="margin:0"></a><a href="https://hf.co/chat?mode=ml-intern&prompt=Render%20a%20test%20clip%20from%20swimmerzeromaybe%2FH3-Script-Studio" style="display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border:1.5px solid #eee;border-radius:16px;background:#f9fbfc;color:#c2410c;font-weight:600;font-size:14px;text-decoration:none">Render a test clip β€Ί</a></div>