> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Image output options and limits

> Control the output with size, response_format, output_format, background and watermark, plus the format, size and count limits of input images.

These parameters control the image output:

| Parameter | Purpose |
| - | - |
| `size` | Output image size |
| `response_format` | How generated images are returned |
| `output_format` | Image file format; in layer decomposition it controls the base image only |
| `background` | Whether image-generation output has an alpha channel |
| `watermark` | Whether the output image has a watermark |

## Image size

`size` has different values and defaults for image generation and for layer decomposition.

### Image generation

Use either a resolution tier or explicit dimensions; do not combine them.

**Method 1: a resolution tier (recommended).** Describe the aspect ratio, image shape or use in `prompt`; the model determines the final dimensions. Default `2K`; values `1K`, `1.5K`, `2K`.

**Method 2: pixel dimensions (`WIDTHxHEIGHT`).**

* Total pixels: 921,600 (`1280x720`) to 4,624,220 (`2048x2048` × 1.1025);
* Aspect ratio: 1/16 to 16.

Both ranges apply; the total-pixel limit applies to the product of width and height, not to either dimension alone. `2880x1440` is valid (4,147,200 pixels, aspect ratio 2); `512x512` is not (262,144 pixels, below the minimum).

```json Method 1 theme={null}
{
  "prompt": "Generate a 16:9 image",
  "size": "2K"
}
```

```json Method 2 theme={null}
{
  "prompt": "Generate an image",
  "size": "2880x1440"
}
```

Common sizes of each tier for Method 1 (the actual size is `data[].size` in the response):

| Tier | 1:1 | 4:3 | 3:4 | 16:9 | 9:16 | 3:2 | 2:3 | 21:9 |
| - | - | - | - | - | - | - | - | - |
| `1K` | 1024x1024 | 1152x864 | 864x1152 | 1424x800 | 800x1424 | 1248x832 | 832x1248 | 1568x672 |
| `1.5K` | 1536x1536 | 1792x1344 | 1344x1792 | 2048x1152 | 1152x2048 | 1872x1248 | 1248x1872 | 2352x1008 |
| `2K` | 2048x2048 | 2368x1776 | 1776x2368 | 2816x1584 | 1584x2816 | 2496x1664 | 1664x2496 | 3136x1344 |

### Layer decomposition

Only resolution tiers are supported: `1K`, `1.5K`, `2K` or `auto`; default `auto`.

* **Base image**: output at the resolution given by `size`, with the aspect ratio of the image being decomposed;
* **Each layer**: a resolution close to `size`, with its own aspect ratio in the source image;
* **`auto`**: the base image and each layer follow their original size. Sizes between `1280x720` and `2048x2048` × 1.1025 are kept, smaller ones are output at 1K and larger ones at 2K, always with the original aspect ratio.

## Response format

* `url` (default): returns an image download link, valid for 24 hours after generation; download the image promptly;
* `b64_json`: returns Base64-encoded image data in the `b64_json` field of the response.

## Output format

* `png` (default)
* `jpeg`

> [!NOTE]
>
> In layer decomposition `output_format` controls the base image only; layers are always output as PNG. With `output_format` `jpeg`, `background` cannot be `transparent`.

## Background

* `auto` (default): the model decides from the prompt and `output_format`; JPEG output has no alpha channel;
* `transparent`: returns an RGBA image with an alpha channel;
* `opaque`: returns an RGB image without an alpha channel.

> [!NOTE]
>
> `background` applies to image generation only; layer decomposition always returns transparent PNG layers and passing it causes an error. With `background` `transparent`, `output_format` must be `png`. See [Native RGBA images](https://docs.dreamto.ai/en/image/models/seedream-5-5/native-rgba.md).

## Watermark

Default `true`.

* `true`: adds an "AI generated" watermark in the lower-right corner;
* `false`: no watermark.

## Usage limits

### Image input

Pass images in either form:

* **Image URL**: make sure the link is publicly reachable;
* **Base64 encoding**: `data:image/<image format>;base64,<Base64 encoding>`, with the image format in lowercase, for example `data:image/png;base64,<base64_image>`.

| Constraint | Image generation | Layer decomposition |
| - | - | - |
| Image formats | jpeg, png, webp, bmp, tiff, gif, heic, heif | png, jpeg |
| Total pixels (width × height) | 196 to 36,000,000 (`6000x6000`) | 262,144 (`512x512`) to 36,000,000 (`6000x6000`) |
| Width and height | Both greater than 14 px | — |
| Aspect ratio | 1/16 to 16 | 1/16 to 16 |
| File size | Up to 30 MB | Up to 30 MB |
| Image count | Up to 10 reference images | One image only |

> The total-pixel limit applies to the product of the width and height of a single image, not to either dimension alone.

### Retention

Returned image links are kept for 24 hours and then removed automatically. Save generated images promptly.

### Not supported

Seedream 5.5 outputs one image per image generation request; image sets (`sequential_image_generation`), streaming output (`stream`) and web search are not supported.

### Rate limits

Requests that are too frequent return 429; retry later. A layer decomposition generates many images in one request, so keep its concurrency moderate.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.