--- 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:
Built with ML InternRender a test clip โ€บ