█

AI/TLDR

Buy me a coffee
Buy me a coffee

TongFlow

Node canvas for chaining text, image, audio, video and 3D generation steps, with a swappable model plugin behind every node

Video GenerationOpen source
Language
TypeScript
License
AGPL-3.0
$docker run -d -p 3000:3000 \
IN SHORT

What is TongFlow?

TongFlow is an open-source canvas for building generative AI workflows that cross modalities. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in TypeScript and licensed AGPL-3.0. To get started: run it with Docker.

Overview

TongFlow is an open-source canvas for building generative AI workflows that cross modalities. Text, images, audio, video, 3D models, documents and URLs are the materials; you wire them together as nodes, decide how each one is transformed or combined, then choose the model that runs each step. Every output stays on the canvas as a new material, so a generated image can feed an image-to-video node, a transcript can feed the next text step, and you can branch from any result instead of starting over.

TongFlow canvas with two text prompts feeding Text to Image nodes, whose cat and mouse images flow into an Image Fusion node that outputs one combined picture
The README's basic workflow: add text, generate two images, then combine them with an Image Fusion node.TongFlow README ↗

The project calls this approach "modality-first": each step separates three decisions, namely the material you have, the capability you want (understand, generate, transform, combine or split) and the implementation that runs it. Capabilities are defined once in an ABI (a JSON contract of typed input and output slots), and implementations are small Python plugins that bind to those slots with the SDK's `@node_slot` decorator. Several plugins can serve the same slot, so you can swap the model behind one node and keep the rest of the workflow unchanged.

Official plugins cover first-party APIs (OpenAI, Gemini, DeepSeek, ByteDance, xAI, Runway, Qwen-Audio), aggregator routers (OpenRouter, Replicate, fal.ai, CometAPI and others), and open-weight models such as Z-Image, FLUX.2 Klein, Qwen-Image, SAM 3, Whisper, ACE-Step and Docling that run as GPU jobs on Modal. TongFlow runs as a hosted cloud studio (in the browser or a lightweight desktop shell), as a self-hosted Next.js app from source or Docker, or inside an agent: a Claude Code plugin and an MCP server let an agent build `.tongflow.json` workflows that you can open, edit and run again on the canvas. It is dual-licensed under AGPL-3.0 and a commercial licence.

What it does

Cartoon cat and mouse standing together, the fused portrait image produced by the basic TongFlow workflow
Output of the basic workflow above.TongFlow README ↗
  • Visual node canvas where every node is a typed capability: add, transform, combine, or split and batch materials across text, image, audio, video, 3D, documents and URLs
  • Capability catalogue spanning image generation and editing, text- and image-to-video, lip sync, motion transfer, speech synthesis and voice cloning, music generation, stem separation, image-to-3D and document-to-text
  • Plugin ABI that separates what a step does from who runs it, so you can switch the model or provider behind one node without rebuilding the workflow
  • Python plugin SDK (`tongflow` on PyPI): handlers are discovered statically from `@node_slot` annotations, with no manifest or registration list
  • Self-hosting from source or the GHCR Docker image, with SQLite storage, an in-app plugin manager and a key/value Settings dialog for provider credentials
  • Agent integrations: a Claude Code plugin, an MCP server (`tongflow-studio`) and a DeepSeek Harness plugin that create workflows saved next to their outputs

Getting started

There are three ways in, all on the same open-source core: the hosted TongFlow Cloud (desktop app or app.tongflow.com), a self-hosted install, or TongFlow inside an agent. The steps below cover self-hosting, which is local and account-free; you bring your own provider keys or a Modal token.

Run it with Docker

A self-host image is published to GHCR, so no Node, Python or pnpm setup is needed. Everything writable (SQLite database, uploads, settings) lives in the /data volume. Then open http://localhost:3000.

bashbash
docker run -d -p 3000:3000 \
  -v tongflow-data:/data -v tongflow-plugins:/plugins \
  ghcr.io/tong-io/tongflow:latest

Or run it from source

Running from source requires Node with pnpm and Python 3.10+ on your PATH. Plugins run as local Python processes, and TongFlow provisions an isolated venv and installs each plugin's requirements on first use.

bashbash
pnpm install
pnpm plugins:install   # clone official plugins into plugins/
pnpm start:prod        # builds once, then serves at http://localhost:3000

Install plugins and add credentials

A self-hosted instance ships with no plugins. Open the plugin manager (the blocks icon, top-right) and install what you need. To run the preloaded example workflow (text → image → fusion → video), install tongflow-modal-z-image, tongflow-modal-qwen-image-edit and tongflow-modal-minimax-h3, then add MODAL_TOKEN_ID and MODAL_TOKEN_SECRET in Settings (the gear icon). API plugins take keys such as OPENAI_API_KEY or OPENROUTER_API_KEY the same way.

Run the workflow

Run the example node by node, or switch to Execute Mode and press the run button to run the whole graph in one go. Swap the implementation on any node to try a different model for that step.

Or drive it from an agent

In Claude Code, add the marketplace and install the plugin, then ask for what you want to make. Any MCP client can use the same tools through the tongflow-studio server.

texttext
/plugin marketplace add tong-io/tongflow
/plugin install tongflow@tongflow

# any MCP client
{ "mcpServers": { "tongflow": { "command": "npx", "args": ["-y", "tongflow-studio", "mcp"] } } }

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Building a talking-head avatar: write a script, synthesise speech, generate a character image, then lip-sync them into a video
TongFlow Digital Human workflow: text generation nodes write an image prompt and a script, Text to Image and Text to Speech nodes produce a portrait and audio, and a Speech+Image to Video node outputs a talking-head video
The README's intermediate example: script, speech and a character image combined into a lip-synced talking-head video.TongFlow README ↗
  • Producing a music video by chaining generated lyrics and song with character, scene and storyboard images and clip generation
Large TongFlow canvas for a music video, with text nodes branching into many character and scene image nodes and video clips that merge into a final video
The advanced example: lyrics, song, characters, scenes and storyboard combined into a music video.TongFlow README ↗
  • Comparing image, video or speech models on the same pipeline by swapping only the plugin behind one node
  • Letting a coding agent plan a media project while every generated asset stays reproducible as an editable workflow file

How TongFlow compares

TongFlow alongside other open-source video generation tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
MoneyPrinterTurbo★ 147kA self-hosted WebUI, API and CLI that turns one topic or keyword into a finished short video — script, stock or generated footage, voiceover, subtitles and music.
HyperFrames★ 93.2kHeyGen's HTML-to-video renderer: author a composition in HTML, CSS and JS, preview it in a browser, then render the same input to a deterministic MP4 locally or on AWS Lambda.
OpenMontage★ 84.5kAn agentic video production system that gives a coding assistant 12 pipelines and 100+ tools to research, script, generate and render a video end to end.
Open Generative AI★ 37kMIT-licensed desktop and web studio for AI image, video and lip-sync generation that runs hosted models through the Muapi.ai API, with optional local image models in the desktop app.
Hypit★ 31.9kA markup language and compiler that lets a coding agent rebuild a reference video as an editable workflow — footage, captions, B-roll and effects anchored to words rather than timestamps — and render variants in one command.
Toonflow★ 23.3kInfinite-canvas workbench for AI short-drama production, taking a novel through chapter events, script, storyboards and video nodes.
Lemo-Opuscar★ 23.2kA Claude Code skill and library of 59 film styles that has a coding agent make a narrated short film entirely in code — canvas and WebGL frames, scored music and TTS — with no video model.
TongFlow★ 1kNode canvas for chaining text, image, audio, video and 3D generation steps, with a swappable model plugin behind every node