# ByteDance Image Node

The ByteDance Image node generates images using ByteDance models through an API based on text prompts. It allows you to select a model, specify image dimensions, and control various generation parameters like seed and guidance scale. The node connects to ByteDance's image generation service and returns the created image.

## Inputs

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `model` | The ByteDance model to use for image generation. Currently only one model option is available. | STRING | Yes | `"seedream-3-0-t2i-250415"` |
| `prompt` | The text prompt used to generate the image. Must be at least 1 character long after stripping whitespace. | STRING | Yes | - |
| `size_preset` | Pick a recommended size. Select Custom to use the width and height below. Available presets are defined by the `RECOMMENDED_PRESETS` list. | STRING | Yes | See description |
| `width` | Custom width for the image. This value is only used when `size_preset` is set to `Custom`. Default: 1024. | INT | Yes | 512 to 2048 (step 64) |
| `height` | Custom height for the image. This value is only used when `size_preset` is set to `Custom`. Default: 1024. | INT | Yes | 512 to 2048 (step 64) |
| `seed` | Seed to use for generation. Default: 0. | INT | No | 0 to 2147483647 (step 1) |
| `guidance_scale` | Higher value makes the image follow the prompt more closely. Default: 2.5. | FLOAT | No | 1.0 to 10.0 (step 0.01) |
| `watermark` | Whether to add an "AI generated" watermark to the image. Default: False. This is an advanced parameter. | BOOLEAN | No | True / False |

**Note on size parameters:** The `width` and `height` parameters are only used when `size_preset` is set to `Custom`. If a preset size is selected, the preset's dimensions override the custom width and height values. Both width and height must be between 512 and 2048 pixels when using custom dimensions.

## Outputs

| Output Name | Description | Data Type |
|-------------|-------------|-----------|
| `IMAGE` | The generated image returned from the ByteDance API as a tensor. | IMAGE |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ByteDanceImageNode/en.md)

---
**Source fingerprint (SHA-256):** `0b40c75ca43ef3cccbc644e64822f701a0d772decacd813c58d7d5ac60c230a1`
