tongflow-api-deepseek

July 24, 2026 · View on GitHub

Official TongFlow plugin. Routes text generation through the DeepSeek V4 API — an OpenAI-compatible, text-only model family.

Capabilities

Implements these ABI slots (runs locally as a Python process, no GPU):

  • Generate / rewrite text (gen-text) — create or edit copy from a prompt.
  • Combine text (combine-text) — merge multiple text inputs into one.
  • Split long text (split-text) — break a long passage into chunks.
  • Arrange & batch groups (arrange-group) — group and arrange batches.
  • Filter or drop clips (drop-video) — drop unwanted clips by rule.

Models

Each text node exposes a model dropdown with four choices:

SelectionModelThinking
deepseek-v4-flash (default)deepseek-v4-flashoff
deepseek-v4-prodeepseek-v4-prooff
deepseek-v4-flash-thinkingdeepseek-v4-flashon
deepseek-v4-pro-thinkingdeepseek-v4-proon

With a *-thinking selection the completion is streamed and the model's reasoning appears live in an auto-scrolling bubble beside the node; the final answer is returned as the node output.

Credentials

Add in TongFlow Settings (gear icon, top-right):

KeyRequiredNotes
DEEPSEEK_API_KEYCreate one at platform.deepseek.com/api_keys.
DEEPSEEK_BASE_URLoptionalOverride the endpoint (defaults to https://api.deepseek.com).

Values are stored locally and take effect without a restart.

Development

Requires tongflow>=0.2.17 (the streaming thinking bubble uses progress(..., thinking=True)). Install into a clean venv and type-check:

pip install "tongflow==0.2.17"
pyright entry.py