A clonable Comfy workflow deployment app and development guide
  • TypeScript 94.1%
  • CSS 5.9%
Find a file
Bryan Wade dc53fc7bf8 Send API key setup directly to the platform
Link key creation to the platform API keys page instead of a documentation page. Use Router onboarding for Cinematic Studio and Comfy API onboarding for Reshoot.

Confidence: high
Scope-risk: narrow
Tested: Platform route and onboarding implementation; README link assertions; git diff --check
Not-tested: Creating a real API key
2026-09-29 16:01:17 -07:00
app Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
build Trim repeated setup and workflow notes 2026-09-29 15:27:09 -07:00
components Make Re-shoot easier to build and recover 2026-09-29 15:16:16 -07:00
lib Explain a missing workflow node as a Build setup issue 2026-09-29 12:52:38 -07:00
samples Give Re-shoot users a ready synthetic clip to try 2026-09-29 13:08:23 -07:00
src/lib/crossview Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
test Make Re-shoot easier to build and recover 2026-09-29 15:16:16 -07:00
THIRD_PARTY_NOTICES Publish Reshoot under the confirmed MIT terms 2026-09-29 15:51:25 -07:00
workflows Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
.env.example Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
.gitignore Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
LICENSE Publish Reshoot under the confirmed MIT terms 2026-09-29 15:51:25 -07:00
next-env.d.ts Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
next.config.ts Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00
package-lock.json Publish Reshoot under the confirmed MIT terms 2026-09-29 15:51:25 -07:00
package.json Publish Reshoot under the confirmed MIT terms 2026-09-29 15:51:25 -07:00
README.md Send API key setup directly to the platform 2026-09-29 16:01:17 -07:00
tsconfig.json Make Re-shoot a runnable guide to Comfy workflow deployments 2026-09-29 12:23:17 -07:00

Comfy Reshoot

A standalone app for reshooting videos with Comfy workflows. Upload an MP4, run depth estimation, adjust the camera preview, then generate a new view.

You need a Comfy Developer Platform account, an API key, and a deployment with the nodes and models listed in build/model-files.md. The workflow was demonstrated on a 96 GB GPU; smaller configurations have not been tested. Generation uses deployment credits.

Run the app

  1. Install Node.js 22.6 or newer. Prepare a Comfy Developer Platform deployment with the custom CrossView nodes, MiniMax H3, MoGe, and CrossView LoRA by following build/model-files.md. Cloning this repo does not create that deployment.

  2. Copy this repository and make local settings:

    git clone https://github.com/Comfy-Org/comfy-reshoot.git
    cd comfy-reshoot
    cp .env.example .env.local
    
  3. Add the API key for the workspace that owns your deployment to COMFY_API_KEY. Set COMFY_BASE_URL to the deployment URL from the Developer Platform; the SDK reads both variables from .env.local on the server.

  4. Install and start the app:

    npm ci
    npm run dev
    
  5. Open http://localhost:3000, choose samples/sunlit-room-test.mp4, and select Analyze depth. When analysis finishes, adjust the camera with the sliders and select Generate new view. The results include the generated video, an original-audio version, and a warp guide. The included five-second clip lets you try the flow without preparing another video.

The first job may take several minutes while the deployment starts and loads its models. The server reads the key from .env.local; do not expose it in a NEXT_PUBLIC_ variable or commit the file.

Comfy workflow

Analyze depth submits workflows/analyze.api.json and returns a .cvgeo depth file for the browser preview. Generate new view submits workflows/generate.api.json, which runs MoGe, CrossView Warp, and MiniMax H3 and saves three videos. lib/comfy.ts maps the uploaded clip to node 1, output settings to node 2, camera values to node 5, and the prompt to node 20. The server downloads the outputs and returns them to the browser.

Change the app

The camera defaults and prompt field are in components/app-runner.tsx. lib/comfy.ts sends those values to nodes 5 and 20.

To edit a workflow, open it in ComfyUI and export Workflow (API). Replace the corresponding file in workflows/. If the change adds a model or custom node, add it to the Comfy build and publish a new release before running the app.

Build the Comfy environment

The deployment Build must include every node and model used by the API workflows. The versions, files, and download commands are in build/model-files.md.

Install the Comfy CLI and sign in to the Comfy account for your deployment. Run these commands from the prepared ComfyUI folder containing models/ and custom_nodes/:

pip install comfy-cli
comfy setup --where cloud
cd /path/to/ComfyUI
comfy build init --name comfy-reshoot --models-dir ./models --custom-nodes-dir ./custom_nodes
comfy build status
comfy build push --release --target linux/nvidia
comfy deploy refs compute

Create a deployment from the released Build, choose an available GPU and region, and put its URL in .env.local. Stop or delete the deployment when you finish to end GPU charges.

These commands package the local ComfyUI install; they do not download model files. After deployment, run Analyze depth and confirm it returns .cvgeo, then run Generate new view and confirm three videos appear.

Limits

  • The sample accepts MP4 files up to 100 MB and uses clips between 5 and 15 seconds.
  • Changing the clip, aspect or output size requires running depth analysis again.
  • The warp preview is an approximation of the generated view; large camera moves reveal areas no source frame captured.
  • Reloading the page clears the current job and results from the UI.

License

MIT. See LICENSE. Third-party license notices are in THIRD_PARTY_NOTICES. Model licenses are separate.