Skip to main content
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. Watch the demo video

Text-to-RGBA

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

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.

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.

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.
  • Billing is the same as any image generation: one output image in the tier of its pixels, plus one input image per reference image.