A ComfyUI custom node for ByteDance's Seedream 4 image generation model via the Replicate API. Generate high-quality images with advanced control over aspect ratios, multi-image generation, and seed management.
![]() |
![]() |
![]() |
- Clone this repository into your ComfyUI custom_nodes folder:
git clone https://github.com/Saganaki22/ComfyUI-Seedream4_Replicate.git
- Install dependencies:
pip install -r requirements.txt
-
Get your Replicate API token from replicate.com/account/api-tokens
-
Restart ComfyUI
Parameter | Type | Description |
---|---|---|
API Key | String | Your Replicate API token (starts with r8_) |
Prompt | String | Text description of what you want to generate |
Size Preset | Dropdown | Common aspect ratios (1:1, 4:3, 16:9, etc.) or Custom |
Width | Integer | Custom width in pixels (1024-4096, used with Custom preset) |
Height | Integer | Custom height in pixels (1024-4096, used with Custom preset) |
Max Images | Integer | Maximum images to generate (1-15, only with Sequential mode) |
Sequential Generation | Dropdown | disabled (single image) or auto (let AI decide multiple) |
Seed | Integer | Random seed for reproducible results (-1 for random) |
Control After Generate | Dropdown | Seed behavior after generation (fixed/increment/decrement/randomize) |
Image Input | Image | Optional reference image for image-to-image generation |
- Multiple aspect ratios with preset sizes
- Sequential image generation for related image sets
- Image-to-image support with reference images
- Seed control for reproducible results
- Real-time progress tracking with 4-stage progress updates
- Automatic cancellation support with ComfyUI's cancel button
- Error handling with content policy detection
- Use Sequential mode with prompts like "story sequence" or "character variations" for multiple related images
- Custom dimensions work best for specific use cases outside standard ratios
- Seed control lets you iterate on prompts while maintaining composition
- Large input images may exceed data URL limits (shows warning)
MIT License - see LICENSE file for details