Seedream Image Generation 4.0
Image
Seedream Image Generation 4.0
POST
Seedream Image Generation 4.0
Seedream 4.0 is an advanced image generation model that offers flexible image creation capabilities, including support for 4K resolution, and can generate images from text and other images.
Request Headers
Enum:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
Prompt for image generation, supports Chinese and English.Recommended not to exceed 300 Chinese characters or 600 English words. Excessive text may scatter information, causing the model to focus only on key points and potentially omit some elements from the image.
Input Base64-encoded or accessible URL of images to edit. Supports single or multiple image input.
- Image URL: Ensure the image URL is accessible.
-
Base64 encoding: Format must be
data:image/<image format>;base64,<Base64 encoding>.
Input images must meet the following requirements:- Image format: jpeg, png
- Aspect ratio (width/height): Range is [1/3, 3]
- Width and height (pixels): > 14
- Size: Must not exceed 10 MB
- Total pixel count: Must not exceed
6000x6000PX - Supports uploading up to 10 reference images.
Set the specifications of the generated image. Two methods are available, but cannot be used simultaneously.
- Method 1: Specify resolution.
- Possible values:
1K,2K,4K
- Possible values:
- Method 2: Specify the width and height (pixels) of the generated image.
- Default:
2048x2048 - Total pixel range:
[1024x1024, 4096x4096] - Aspect ratio range:
[1/16, 16]
- Default:
| Aspect Ratio | Width and Height Pixels |
|---|---|
| 1:1 | 2048x2048 |
| 4:3 | 2304x1728 |
| 3:4 | 1728x2304 |
| 16:9 | 2560x1440 |
| 9:16 | 1440x2560 |
| 3:2 | 2496x1664 |
| 2:3 | 1664x2496 |
| 21:9 | 3024x1296 |
Controls whether to disable batch generation.
auto: In automatic mode, the model will automatically decide whether to return multiple images and how many images to include based on the user’s prompt.disabled: Disables batch generation. The model will only generate one image.
Specifies the maximum number of images to generate in this request. This parameter is only effective when
sequential_image_generation is set to auto.Range: [1, 15]Add a watermark to the generated image.
false: No watermark added.true: Adds a watermark with “AI generated” text in the bottom-right corner of the image.
Response
Array containing download links for the generated images.