Seedream Image Generation 4.0
Images
Seedream Image Generation 4.0
POST
Seedream Image Generation 4.0
Seedream 4.0 is an advanced image generation model that provides flexible image creation capabilities, including support for 4K resolution and generating images from text and other images.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
The prompt used to generate the image. Chinese and English are supported.It is recommended to use no more than 300 Chinese characters or 600 English words. If the text is too long, the information may become scattered, and the model may ignore details and focus only on the main points, causing some elements to be missing from the image.
The Base64 encoding or accessible URL of the image to be edited. You can input one or more images.
- Image URL: Ensure the image URL is accessible.
-
Base64 encoding: The format must be
data:image/<图像格式>;base64,<Base64 编码>.
Input images must meet the following requirements:- Image formats: jpeg, png
- Aspect ratio (width/height): range [1/3, 3]
- Width and height (pixels): > 14
- Size: no more than 10 MB
- Total pixels: no more than
6000×6000PX - Supports uploading up to 10 reference images.
Set the specifications of the generated image. There are two available methods, but they cannot be used at the same time.
- Method 1: Specify the resolution.
- Optional values:
1K,2K,4K
- Optional values:
- Method 2: Specify the width and height (pixels) of the generated image.
- Default value:
2048x2048 - Total pixel range:
[1024x1024, 4096x4096] - Aspect ratio range:
[1/16, 16]
- Default value:
| Aspect Ratio | Width and Height in 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 batch generation is disabled.
auto: In automatic mode, the model automatically decides whether to return multiple images and how many images to include based on the user’s prompt.disabled: Disables batch generation. The model will generate only one image.
Specifies the maximum number of images to generate in this request. This parameter is only valid when
sequential_image_generation is set to auto.Value range: [1, 15]Add a watermark to the generated image.
false: Do not add a watermark.true: Add a watermark with the text “AI generated” in the lower-right corner of the image.
Response Information
An array containing download links for the generated images.