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

# Doubao-Seedream-5.0-Pro/Flash

Doubao Seedream 5.0 Pro and Flash support text-to-image, single-image editing, and generation from multiple reference images. Interactive editing supports precise coordinates and free-form annotations. You can also split a single image into a base image and multiple layers.

### Model parameters

* Model IDs: `doubao-seedream-5.0-pro`/`doubao-seedream-5.0-flash`
* Pricing: See the model pages for [Seedream 5.0 Pro](https://geekai.co/models/doubao-seedream-5.0-pro) and [Seedream 5.0 Flash](https://geekai.co/models/doubao-seedream-5.0-flash).
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://geekai.co/user/api_keys).

> [!NOTE]
>
> The following Image API parameters are not supported:
>
> * `negative_prompt`
> * `strength`
> * `aspect_ratio`
> * `quality`
> * `style_preset`
> * `mask`
>
> See also: [Official Seedream 5.0 Pro/Flash API documentation](https://docs.volcengine.com/docs/ark/image-generation-api).

For image-to-image generation, pass reference images in `image` as URLs or Base64-encoded data. Supply up to 10 images, using an array for multiple images. Requirements:

* Supported formats: PNG, JPG, JPEG, WEBP, BMP, TIFF, and GIF.
* Each image must be no larger than 30 MB. The long-to-short side ratio must not exceed 16:1, and the short side must be greater than 14 px.
* Total pixels: 196–36,000,000, or 262,144–36,000,000 for layer separation.

Seedream 5.0 adds layer separation. Pass `layer_decomposition` in `extra_body` to enable it. See [Layer separation](https://docs.geekai.co/en/docs/image/bytedance/doubao-seedream-5.0.md#layer-separation).

Seedream 5.0 does not have separate aspect ratio and resolution settings. Use `size` in one of two ways:

* Specify a resolution: `1K`, `1.5K`, `2K` (default for regular generation), or `auto` (default for layer separation and only available in that mode). Describe the aspect ratio, shape, or intended use in `prompt` and let the model determine the dimensions.
* Specify width and height in pixels. The default is `2048x2048` (1:1). Use the following dimensions for other aspect ratios:

| Resolution | Aspect ratio | Pixel dimensions |
| - | - | - |
| 1K | 1:1 | 1024x1024 |
| | 4:3 | 1152x864 |
| | 3:4 | 864x1152 |
| | 16:9 | 1424x800 |
| | 9:16 | 800x1424 |
| | 3:2 | 1248x832 |
| | 2:3 | 832x1248 |
| | 21:9 | 1568x672 |
| 1.5K | 1:1 | 1536x1536 |
| | 4:3 | 1792x1344 |
| | 3:4 | 1344x1792 |
| | 16:9 | 2048x1152 |
| | 9:16 | 1152x2048 |
| | 3:2 | 1872x1248 |
| | 2:3 | 1248x1872 |
| | 21:9 | 2352x1008 |
| 2K | 1:1 | 2048x2048 |
| | 4:3 | 2304x1728 |
| | 3:4 | 1728x2304 |
| | 16:9 | 2848x1600 |
| | 9:16 | 1600x2848 |
| | 3:2 | 2496x1664 |
| | 2:3 | 1664x2496 |
| | 21:9 | 3136x1344 |

Set `output_format` to `png` or `jpeg` to control the Seedream 5.0 output format. The default is `png`.

Set `response_format` to `url` or `b64_json` to control the Seedream 5.0 response format. The default is `url`.

Use `background` to control whether Seedream 5.0 generates an image with an alpha channel:

* `transparent`: Transparent background. Outputs an image with a transparent background.
* `opaque`: Opaque background. Outputs an image with a regular solid background.

Limitations:

* Only supported for image-to-image generation, with a single input image containing an alpha channel.
* Transparent background mode outputs PNG by default. Setting `output_format` to `jpeg` in this mode returns an error.
* Supplying an input format that does not support an alpha channel, such as JPEG, returns an error.

Seedream 5.0 no longer supports image sets. Parameters for image sets have no effect.

To select the prompt optimization mode in GeekAI, use `extra_body.prompt_extend_mode` instead of the official `optimize_prompt_options.mode`. Alternatively, pass the official `optimize_prompt_options` object in `extra_body`. GeekAI accepts both; `extra_body.optimize_prompt_options` takes precedence.

### Pricing

Seedream 5.0 Pro pricing depends on the total output pixel count. Images below 2.61 million pixels cost 0.3 CNY each; those above 2.61 million cost 0.6 CNY each. Layer separation costs half these rates.

Both 1K and 1.5K images have fewer than 2.61 million pixels, so they fall in the same price tier:

| Model ID | Use case | Image size | Price (CNY/image) |
| - | - | - | - |
| `doubao-seedream-5.0-pro` | Regular generation | 1K | 0.3 |
| `doubao-seedream-5.0-pro` | Regular generation | 1.5K | 0.3 |
| `doubao-seedream-5.0-pro` | Regular generation | 2K | 0.6 |
| `doubao-seedream-5.0-pro` | Layer separation | 1K | 0.15 |
| `doubao-seedream-5.0-pro` | Layer separation | 1.5K | 0.15 |
| `doubao-seedream-5.0-pro` | Layer separation | 2K | 0.3 |
| `doubao-seedream-5.0-flash` | Regular generation | 2K | 0.12 |
| `doubao-seedream-5.0-flash` | Layer separation | 2K | 0.12 |

For regular image-to-image generation with more than one input, each input after the first costs 0.02 CNY. Total price = output price per image × number of outputs + input price per image × (number of inputs − 1).

Layer separation accepts just one input image, so the input is free and only the outputs are billed.

When using a GeekAI [discounted proxy channel](https://docs.geekai.co/en/docs/model_price.md), multiply the listed price by the channel’s discount factor. For example, the high-availability Pro channel has a factor of `0.8`. An image with `size` set to `1K` costs `0.3 x 0.8 = 0.24` CNY. Separating an image into eight outputs costs `0.15 x 0.8 x 8 = 0.96` CNY. Apply the same calculation to other settings.

### Text-to-image generation

Give the model a clear, precise description to quickly generate a single high-quality image:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "doubao-seedream-5.0-pro",
    "prompt": "A vibrant close-up editorial portrait of a model with a piercing gaze wearing a sculptural hat. Rich color blocking, sharp focus on the eyes, shallow depth of field, Vogue cover aesthetics, medium-format photography, dramatic studio lighting.",
    "output_format":"png"
}'
```

The response is a JSON object containing the URL of the generated image:

```json theme={null}
{
    "model": "doubao-seedream-5.0-pro",
    "created": 1787563947,
    "task_id": "eae17a81-d0b9-49a5-9c31-749d56f48a66",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/08/24/3875c0d7366011f7de9f32ec2f010f29.png",
            "size": "1776x2368"
        }
    ],
    "usage": {
        "billed_units": 1,
        "output_tokens": 16428,
        "total_tokens": 16428
    }
}
```

The image-to-image examples below return the same response format.

### Image-to-image generation

Doubao-Seedream-5.0-Pro can modify existing images to generate new ones. Pass one or more images in `image` and describe the changes in `prompt`.

**Single image**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "doubao-seedream-5.0-pro",
    "prompt": "Generate a close-up of the dog lying on the grass",
    "image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imageToimage.png",
    "output_format":"jpeg"
}'
```

**Multiple images**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "doubao-seedream-5.0-pro",
    "prompt": "Replace the clothing in image 1 with the clothing from image 2",
    "image": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png", 
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imagesToimage_2.png"
    ],
    "output_format":"png",
    "watermark": false
}'
```

Doubao-Seedream-5.0-Pro accepts up to 10 input images.

### Layer separation

Doubao-Seedream-5.0-Pro can split one image into a base image and up to 16 layers. Pass `"layer_decomposition": true` in `extra_body` to enable layer separation:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "doubao-seedream-5.0-pro",
    "prompt": "Separate the image precisely into layers. The text boxes are <bbox>180 64 812 198</bbox>, <bbox>757 210 939 280</bbox>, <bbox>63 212 320 282</bbox>, <bbox>178 714 826 810</bbox>, <bbox>814 819 949 894</bbox>, and <bbox>326 824 669 930</bbox>. The parrot is at <bbox>347 305 642 997</bbox>.",
    "image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream_50_pro_layer_input.png",
    "extra_body": {
        "layer_decomposition": true
    }
}'
```

The response uses the same structure as the official API:

```json theme={null}
{
    "model": "doubao-seedream-5.0-pro",
    "created": 1787591524,
    "task_id": "1e0751ea-5842-441b-8704-db76d6bfabbe",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/08/25/495ae4923f0ee07739d30fb2decb9226.jpeg",
            "size": "1080x1080",
            "z_index": 0
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/8ff0eaa82dea85572e9e4a5e070e5531.png",
            "size": "934x257",
            "z_index": 1,
            "name": "Three lines of caption text at the bottom",
            "description": "Extract only the three lines of white text: FLY BEYOND LIMITS, TROPICAL SPLENDOR, RANFOREST ADVENTURES. Exclude all other content.",
            "bounding_box": {
                "absolute": [
                    372,
                    904,
                    711,
                    998
                ],
                "normalized": [
                    344,
                    837,
                    657,
                    923
                ]
            }
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/aad2af4d3433dfdec5cc3c24a875d6d1.png",
            "size": "1219x159",
            "z_index": 2,
            "name": "WILD BEAUTY text",
            "description": "Extract only the yellow WILD BEAUTY text. Exclude all other content.",
            "bounding_box": {
                "absolute": [
                    191,
                    781,
                    890,
                    872
                ],
                "normalized": [
                    177,
                    723,
                    823,
                    806
                ]
            }
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/18640aeef6c06e95d349f5dc88356c60.png",
            "size": "557x308",
            "z_index": 3,
            "name": "NATURE INSIDE badge text",
            "description": "Extract the white NATURE INSIDE text in the oval badge. Include only the badge and lettering.",
            "bounding_box": {
                "absolute": [
                    887,
                    890,
                    1026,
                    967
                ],
                "normalized": [
                    821,
                    824,
                    949,
                    894
                ]
            }
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/b95fc950bf2cc5e764f43148b2d32e36.png",
            "size": "846x171",
            "z_index": 4,
            "name": "EXPLORE THE WILD text",
            "description": "Extract only the white text EXPLORE THE WILD, INSPIRE THE SOUL. Exclude all other content.",
            "bounding_box": {
                "absolute": [
                    73,
                    238,
                    333,
                    291
                ],
                "normalized": [
                    68,
                    220,
                    307,
                    269
                ]
            }
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/782d3237bc07337e7e264e996e2b3ab2.png",
            "size": "742x243",
            "z_index": 5,
            "name": "VOL.01 SUMMER 2026 text",
            "description": "Extract only the white VOL.01 SUMMER 2026 text. Exclude all other content.",
            "bounding_box": {
                "absolute": [
                    826,
                    236,
                    1008,
                    296
                ],
                "normalized": [
                    765,
                    219,
                    932,
                    273
                ]
            }
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/0fa54bb5e4353d9333dd27078bf26039.png",
            "size": "1270x264",
            "z_index": 6,
            "name": "Seedream text",
            "description": "Extract only the yellow Seedream text. Exclude all other content.",
            "bounding_box": {
                "absolute": [
                    202,
                    63,
                    873,
                    202
                ],
                "normalized": [
                    187,
                    58,
                    807,
                    186
                ]
            }
        },
        {
            "url": "https://static.geekai.co/image/2026/08/25/53ffe8c784cd3c512289eac4a6d45ca4.png",
            "size": "425x1056",
            "z_index": 7,
            "name": "Colorful macaw",
            "description": "Extract the colorful red-and-blue macaw perched on the branch. Include only the bird.",
            "bounding_box": {
                "absolute": [
                    385,
                    330,
                    686,
                    1080
                ],
                "normalized": [
                    356,
                    306,
                    634,
                    999
                ]
            }
        }
    ],
    "usage": {
        "billed_units": 8,
        "output_tokens": 33349,
        "total_tokens": 33349
    }
}
```


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