## Basic model info

Model name: bytedance/seedream-5-pro
Model description: ByteDance's flagship text-to-image and image editing model, generating sharp 1K and 2K images from text or up to 10 reference images


## Model inputs

- prompt (optional): Text prompt. In standard mode, describes the image to generate. In layer decomposition mode it is optional: describe which elements to split out, or leave blank to auto-detect all major elements. Maximum 4000 characters. (string)
- image_input (optional): Input image(s). In standard mode, 1-10 reference images for image-to-image generation. In layer decomposition mode, exactly one image to decompose. (array)
- layer_decomposition (optional): Split a single input image into a base image plus separate element layers (up to 16). Requires exactly one input image. Each returned layer includes its stacking order, bounding box, name, and description. (boolean)
- size (optional): Image resolution. Standard mode supports 1K and 2K. Layer decomposition mode supports 1K, 1.5K, 2K, and auto; auto sizes the base image and layers from the input image. (string)
- aspect_ratio (optional): Image aspect ratio (ignored in layer decomposition mode). Use 'match_input_image' to automatically match the input image's aspect ratio. (string)
- output_format (optional): Output image format. In layer decomposition mode this only controls the base image; layers are always returned as PNG. (string)


## Model output schema

{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/2vpfs1q70nrmy0czctbrh8dn6r)

#### Input

```json
{
  "size": "2K",
  "prompt": "A tranquil forest meadow bathed in soft morning light, shot from a low angle beneath overhanging oak branches draped with pale lichen and moss. Dense, dark tree canopy frames the top of the frame, with hazy sunbeams (crepuscular rays) streaming diagonally through the misty woodland in the background, illuminating drifting particles of dust and pollen in the air. Below, a sunlit clearing of lush, dewy green grass and wild sedges stretches out, with a clump of bright, glossy iris-like leaves standing out in the left foreground. Muted, atmospheric color palette of deep forest greens, soft golden-white light, and diffused shadow. Documentary-style nature photography, shallow atmospheric depth, slightly desaturated and moody, evoking a quiet, magical early-morning stillness. Vertical portrait orientation. The words \"Seedream 5 Pro\" appear centered in the middle of the image, rendered in a pink embroidered thread texture \u2014 raised stitched lettering with visible thread grain, soft drop shadow, and a slightly frayed, tactile fabric-patch look, as if machine-embroidered onto the scene.",
  "image_input": [],
  "aspect_ratio": "match_input_image",
  "output_format": "png"
}
```

#### Output

```json
[
  "https://replicate.delivery/xezq/qQqxHzokkmIXHFvIfDJWaKGQoHjJabbplO27JM61jFIyNrcLA/tmp_ywefcn2.png"
]
```


## Model readme

> # Seedream 5.0 Pro
> 
> Seedream 5.0 Pro is ByteDance's flagship image model. It generates high-quality images from a text prompt, and can use up to 10 reference images to guide the result for character consistency, style matching, and multi-image composition.
> 
> ## What it does
> 
> - **Text to image** — describe what you want and get a sharp result at 1K (~2 megapixels) or 2K (~4 megapixels).
> - **Reference-guided generation** — pass up to 10 reference images to keep a character, product, or style consistent across generations, or to blend multiple subjects into one scene.
> - **Flexible aspect ratios** — square, portrait, landscape, and wide formats (1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9).
> - **PNG or JPEG output.**
> 
> ## Resolutions
> 
> - **1K** — around 2 megapixels, good for fast iteration and web use.
> - **2K** — around 4 megapixels (up to 2048x2048, or wider for cinematic ratios), for higher-detail work.
> 
> When you pass reference images and leave the aspect ratio on `match_input_image`, the output matches the shape of your first reference image at the resolution you pick.
> 
> ## Pricing
> 
> You pay per output image, by resolution:
> 
> - **1K**: $0.045 per image
> - **2K**: $0.09 per image

