Skip to main content
Back

HBAI-Ltd's Toonflow Turns Any Novel Into an Animated Drama for $18

Toonflow is an open-source, multi-agent pipeline that turns raw novel text into animated short dramas — scriptwriting, storyboarding, and video generation included

Repo, Full Access
  • What it is: Toonflow is an open-source, multi-agent AI pipeline that converts novels or scripts into animated short dramas end-to-end.
  • How it works: A three-layer agent system (Decision, Execution, Supervision) orchestrates LLMs, image models, and video models across five automated stages.
  • Cost to run: A full 2-minute demo drama costs roughly $18 in API calls; community runs have come in under $1 using free-tier models.
  • Model-agnostic: Supports OpenAI, Claude, DeepSeek, Qwen, Sora, Seedance 2.0, and more — swap providers via TypeScript config with no code changes.
  • Known issues: Gemini tool-calling is unreliable; SQLite init script has a silent bug that skips table creation; setup requires bringing your own API keys.
  • Market context: China produced 470 AI short dramas per day in January 2026; the global microdrama market hit $11B in 2025 and is growing fast.

Toonflow is an open-source AI workbench that takes a novel or script as input and outputs a short-form animated drama, handling character extraction, scriptwriting, storyboarding, and video synthesis in one automated pipeline. Built by HBAI-Ltd and released under Apache 2.0, it has crossed 9,000 GitHub stars and 1,700 forks.

A market worth understanding

China's short drama industry generated 470 AI-produced titles every day in January 2026, and by March, roughly 50,000 AI-native episodes had hit Douyin in a single month. The global microdrama market reached $11 billion in 2025, projected to grow to $14 billion by end of 2026. The economics are equally striking: AI video tools have compressed three-to-four month production timelines to under a month, cutting series costs from roughly $200,000 to between $7,000 and $14,000. Some platforms report per-drama costs dropping from $150,000–$300,000 to $2,000–$5,000. Toonflow is the open-source bet that this workflow should be accessible to solo creators, not just well-funded studios.

What it actually does

Toonflow acts as an AI agent orchestration engine rather than shipping its own models. It coordinates three types of external AI services across a five-stage pipeline:

  1. Event extraction — An LLM reads the novel and pulls characters, relationships, and plot events into a structured graph.
  2. Script generation — Novel passages are transformed into structured scripts with dialogue, scene descriptions, and stage directions.