ComfyUI Extension: Seedance 2.0 (Sjinn.ai)

Authored by steptonite

Created

Updated

2 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Run ByteDance Seedance 2.0 video generation in ComfyUI via Sjinn.ai API. Supports up to 6 image, 3 video and 2 audio references. Outputs native VIDEO plus first frame, last frame and frame batch.

Looking for a different extension?

Custom Nodes (1)

README

License ComfyUI

🎬 Seedance 2.0 ComfyUI Node β€” Sjinn.ai API

Run ByteDance Seedance 2.0 video generation directly in ComfyUI via the Sjinn.ai API.

Connect reference images, videos and audio clips, write a prompt, click Run. The node handles uploads, task creation and polling β€” you get back a native VIDEO output plus frame previews.

Workflow Preview


✨ Features

| | | |--|--| | πŸ–ΌοΈ Reference images | Up to 6 β€” connect any Load Image node | | πŸŽ₯ Reference videos | Up to 3 β€” connect vanilla Load Video node (≀720P, β‰₯2s) | | 🎡 Reference audio | Up to 2 β€” connect Load Audio node | | πŸ“ Aspect ratios | 16:9 Β· 9:16 Β· 1:1 Β· 4:3 Β· 3:4 | | ⏱️ Duration | 4–15 seconds | | ⚑ Speed mode | pro = quality Β· fast = speed | | 🎲 Seed | Fixed or random | | πŸ›‘οΈ Smart rescue | Auto-rewrites prompt if content policy blocks it | | πŸ“Š Progress bar | Real ComfyUI progress during uploads + generation | | 🎞️ Frame outputs | first_frame, last_frame, frames (IMAGE batch for VHS nodes) |


πŸ“¦ Requirements

  • ComfyUI v0.14+ (native VIDEO and AUDIO types)
  • Sjinn.ai Pro+ account β€” https://sjinn.ai
  • opencv-python β€” auto-installed via requirements.txt

πŸš€ Installation

Via ComfyUI Manager (recommended):

  1. Manager β†’ Install via Git URL
  2. Paste: https://github.com/steptonite/seedance2-sjinn-comfyui
  3. Install β†’ restart ComfyUI

Manual:

cd ComfyUI/custom_nodes/
git clone https://github.com/steptonite/seedance2-sjinn-comfyui

# Mac / Linux
../../python/bin/python -m pip install -r seedance2-sjinn-comfyui/requirements.txt

# Windows portable
..\..\python_embeded\python.exe -m pip install -r seedance2-sjinn-comfyui/requirements.txt

Restart ComfyUI.


πŸ”‘ Credentials

Two credentials from sjinn.ai are required.

API Key

Profile β†’ API Keys β†’ Create β†’ copy the key β†’ paste into api_key field.

Session Token

  1. Open https://sjinn.ai/tools/seedance20-video (must be logged in, Pro+)
  2. F12 β†’ Application β†’ Cookies β†’ https://sjinn.ai
  3. Find cookie: __Secure-next-auth.session-token
  4. Click the row β†’ copy the full value from the bottom panel (starts with eyJ, ~500 chars)
  5. Paste into session_token field

⚠️ Token expires when your browser session ends. On 401 errors β€” grab a fresh one.


πŸ•ΉοΈ How to Use

Find 🎬 Seedance 2.0 (Sjinn.ai) in the Sjinn.ai category (or search "Seedance").

  1. Connect images β†’ image_1 … image_6
  2. Connect videos β†’ video_1 … video_3 (must be ≀720P and β‰₯2 seconds)
  3. Connect audio β†’ audio_1 / audio_2
  4. Write prompt β€” reference inputs with @Image1, @Image2, @Video1:
    @Image1 is the character. @Video1 is the camera motion reference.
    Cinematic slow motion, natural lighting.
    
  5. Set ratio, duration, speed_mode, seed
  6. Enter session_token and api_key
  7. Queue Prompt β€” progress bar shows upload β†’ generation β†’ done

Outputs: video (VIDEO) Β· first_frame Β· last_frame Β· frames (IMAGE batch)


πŸ“‹ Parameters

| Parameter | Default | Description | |-----------|---------|-------------| | session_token | β€” | Browser cookie from sjinn.ai | | api_key | β€” | Sjinn.ai API key (for polling) | | prompt | β€” | Generation prompt | | image_1..6 | β€” | Reference images | | video_1..3 | β€” | Reference videos (≀720P, β‰₯2s) | | audio_1..2 | β€” | Reference audio clips | | ratio | 16:9 | Aspect ratio | | duration | 5 | Output length in seconds (4–15) | | speed_mode | pro | pro quality / fast speed | | accelerate_real_face | True | Preserve face consistency across frames | | smart_rescue | True | Auto-fix prompt on content policy block | | seed | -1 | -1 = random Β· fixed int = reproducible |


πŸ’° Cost

100 credits per second of output. A 5-second video = 500 credits. Credits are refunded if the task fails content policy.


πŸ’‘ Tips

  • Videos must be ≀720P β€” resize upstream if needed
  • Videos must be β‰₯2 seconds
  • speed_mode: fast for iteration, pro for finals
  • smart_rescue: off if you want the prompt used verbatim
  • Use @Image1, @Video1 etc. to explicitly assign roles in the prompt

πŸ” Local Credentials File (optional)

Create sjinn_config.py in the node folder to pre-fill fields:

SJINN_API_KEY = "your-key"
SJINN_SESSION_TOKEN = "your-token"

Already in .gitignore β€” never commit this file.


πŸ› οΈ Troubleshooting

| Issue | Fix | |-------|-----| | 401 on upload/task | Session token expired β€” grab fresh cookie | | "Service temporarily unavailable" | Sjinn.ai server load β€” retry | | Task failed (status=2) | Enable smart_rescue or soften prompt | | Video too short error | Reference video must be β‰₯2 seconds | | video_1 / audio_1 socket missing | Update ComfyUI to v0.14+ | | first_frame is black | pip install opencv-python |


πŸ‡ΊπŸ‡¦ Community

Ukrainian ComfyUI community β€” questions, workflows, tips: t.me/comfyui_ua


πŸ“„ License

MIT β€” see LICENSE

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more