> ## 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.

# Native RGBA images (transparent background)

> Generate RGBA images with an alpha channel directly from text or reference images, for stickers, icons, product assets and other transparent-background uses.

Seedream 5.5 generates RGBA images with an alpha channel through both text-to-image and image-to-image, with no separate cut-out step. Set `background` to `transparent` and `output_format` to `png`.

| Capability | Seedream 5.5 |
| - | - |
| Text-to-RGBA | Supported |
| Image-to-RGBA | Supported, up to 10 reference images |
| Input image requirement | Reference images do not need an alpha channel |

[Watch the demo video](https://arkdocs-en.tos-ap-southeast-1.volces.com/videos/image-generation/seedream-5-5-rgba-demo-en.mp4)

## Text-to-RGBA

Do not pass `image`. Describe the subject and the transparent-background requirement in the prompt.

| Prompt | Output |
| - | - |
| A transparent acrylic standee with a Christmas theme… Set a transparent background. (Full prompt in the request below) | ![Text-to-RGBA output](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-text-to-image-output.png) |

```bash cURL theme={null}
curl -X POST "https://api.dreamto.ai/api/v3/images/generations" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-5.5",
    "prompt": "A transparent acrylic standee with a Christmas theme, a rectangular outline, and a thin white edge on all sides that brings out the transparent material. Use a scrapbook collage style: place a red-and-green two-tone vinyl record with a golden rim at the center, surrounded by a dimensional Christmas wreath of acorn leaves and pine branches. Decorate the wreath with hand-drawn red berries, golden four-pointed stars, reindeer, and snowflake stickers. Overlay a minimalist white music-player UI below, with play/pause controls, a progress bar (01:24 / 04:32), and a volume icon. Use vintage red, forest green, champagne gold, and off-white. Add occasional highlights refracted by the acrylic thickness for a realistic product finish. Set a transparent background.",
    "size": "2K",
    "output_format": "png",
    "background": "transparent",
    "response_format": "url",
    "watermark": true
  }'
```

```python Python theme={null}
import os

import requests

URL = "https://api.dreamto.ai/api/v3/images/generations"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "seedream-5.5",
    "prompt": "A transparent acrylic standee with a Christmas theme, a rectangular outline, and a thin white edge on all sides that brings out the transparent material. Use a scrapbook collage style: place a red-and-green two-tone vinyl record with a golden rim at the center, surrounded by a dimensional Christmas wreath of acorn leaves and pine branches. Decorate the wreath with hand-drawn red berries, golden four-pointed stars, reindeer, and snowflake stickers. Overlay a minimalist white music-player UI below, with play/pause controls, a progress bar (01:24 / 04:32), and a volume icon. Use vintage red, forest green, champagne gold, and off-white. Add occasional highlights refracted by the acrylic thickness for a realistic product finish. Set a transparent background.",
    "size": "2K",
    "output_format": "png",
    "background": "transparent",
    "response_format": "url",
    "watermark": True
}

result = requests.post(URL, headers=HEADERS, json=payload, timeout=600).json()
for image in result["data"]:
    print(image["url"])
```

```python OpenAI SDK theme={null}
import os

from openai import OpenAI

client = OpenAI(base_url="https://api.dreamto.ai/api/v3", api_key=os.environ["DREAMTO_API_KEY"])

response = client.images.generate(
    model="seedream-5.5",
    prompt="A transparent acrylic standee with a Christmas theme, a rectangular outline, and a thin white edge on all sides that brings out the transparent material. Use a scrapbook collage style: place a red-and-green two-tone vinyl record with a golden rim at the center, surrounded by a dimensional Christmas wreath of acorn leaves and pine branches. Decorate the wreath with hand-drawn red berries, golden four-pointed stars, reindeer, and snowflake stickers. Overlay a minimalist white music-player UI below, with play/pause controls, a progress bar (01:24 / 04:32), and a volume icon. Use vintage red, forest green, champagne gold, and off-white. Add occasional highlights refracted by the acrylic thickness for a realistic product finish. Set a transparent background.",
    size="2K",
    output_format="png",
    background="transparent",
    response_format="url",
    extra_body={
        "watermark": True,
    },
)
for item in response.data:
    print(item)
```

## Image-to-RGBA

Pass one reference image or up to 10 with `image`. The example extracts the stickers from two images and places them on a single transparent-background image.

| Input image 1 | Input image 2 | Output |
| - | - | - |
| ![First reference image](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test3.png) | ![Second reference image](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test4.png) | ![Transparent-background image generated from two reference images](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-transparent-stickers-output-20261103.png) |

```bash cURL theme={null}
curl -X POST "https://api.dreamto.ai/api/v3/images/generations" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-5.5",
    "prompt": "Extract the sticker elements from Image 1 and Image 2 separately, then place all extracted stickers in one transparent-background image. Preserve the original text, colors, shapes, and details of each sticker; remove all background content other than the stickers. Arrange the stickers separately without overlap, with sharp and intact edges.",
    "image": [
      "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test3.png",
      "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test4.png"
    ],
    "size": "2K",
    "output_format": "png",
    "background": "transparent",
    "response_format": "url",
    "watermark": true
  }'
```

```python Python theme={null}
import os

import requests

URL = "https://api.dreamto.ai/api/v3/images/generations"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "seedream-5.5",
    "prompt": "Extract the sticker elements from Image 1 and Image 2 separately, then place all extracted stickers in one transparent-background image. Preserve the original text, colors, shapes, and details of each sticker; remove all background content other than the stickers. Arrange the stickers separately without overlap, with sharp and intact edges.",
    "image": [
        "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test3.png",
        "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test4.png"
    ],
    "size": "2K",
    "output_format": "png",
    "background": "transparent",
    "response_format": "url",
    "watermark": True
}

result = requests.post(URL, headers=HEADERS, json=payload, timeout=600).json()
for image in result["data"]:
    print(image["url"])
```

```python OpenAI SDK theme={null}
import os

from openai import OpenAI

client = OpenAI(base_url="https://api.dreamto.ai/api/v3", api_key=os.environ["DREAMTO_API_KEY"])

response = client.images.generate(
    model="seedream-5.5",
    prompt="Extract the sticker elements from Image 1 and Image 2 separately, then place all extracted stickers in one transparent-background image. Preserve the original text, colors, shapes, and details of each sticker; remove all background content other than the stickers. Arrange the stickers separately without overlap, with sharp and intact edges.",
    size="2K",
    output_format="png",
    background="transparent",
    response_format="url",
    extra_body={
        "image": [
            "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test3.png",
            "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/ocr-test4.png"
        ],
        "watermark": True,
    },
)
for item in response.data:
    print(item)
```

## Response

`data[].background` in the response is the **actual** transparency of the image: `transparent` when it has transparent or translucent pixels, `opaque` when the whole image is opaque. It may differ from the requested value.

```json theme={null}
{
  "model": "seedream-5.5",
  "created": 1794846488,
  "data": [
    {
      "url": "https://files.dreamto.ai/images/seedream_3d8a51c7.png",
      "size": "2048x2048",
      "output_format": "png",
      "background": "transparent"
    }
  ],
  "usage": {
    "input_images": 2,
    "generated_images": 1,
    "output_tokens": 16384,
    "total_tokens": 16384
  }
}
```

## Notes

* With `background` `transparent`, `output_format` must be `png`; `jpeg` returns 400.
* The default `background` is `auto`: the model decides from the prompt and `output_format` whether to output an alpha channel. Pass `transparent` to be sure of a transparent background and `opaque` to be sure of an opaque one.
* `background` applies to image generation only. Layer decomposition always returns transparent PNG layers and passing `background` returns 400; see [Fine-grained layer decomposition](https://docs.dreamto.ai/en/image/models/seedream-5-5/layer-decomposition.md).
* Billing is the same as any image generation: one output image in the tier of its pixels, plus one input image per reference image.


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