---
title: Seedream 4.5
description: Seedream 4.5 builds on 4.0 with multi-reference image support, batch generation, and sequential image generation.
image: https://developers.cloudflare.com/dev-products-preview.png
---

[Skip to content](#%5Ftop) 

Was this helpful?

YesNo

[ Report issue ](https://github.com/cloudflare/cloudflare-docs/issues/new/choose) 

Copy page

![ByteDance logo](https://developers.cloudflare.com/_astro/bytedance.T1uiROQ6.svg) 

#  Seedream 4.5 

Text-to-Image • ByteDance • Proxied 

`bytedance/seedream-4.5` 

Seedream 4.5 builds on 4.0 with multi-reference image support, batch generation, and sequential image generation.

| Model Info       |                                                       |
| ---------------- | ----------------------------------------------------- |
| More information | [link ↗](https://seed.bytedance.com/en/seedream4%5F5) |

## Usage

TypeScript

```

const response = await env.AI.run(

  'bytedance/seedream-4.5',

  {

    prompt:

      'A cozy reading nook with floor-to-ceiling bookshelves and a comfortable armchair',

  },

  {

    gateway: { id: 'default' },

  }

)

console.log(response)


```

Explain Code

Input / Output JSON 

* [ Input ](#tab-panel-56)
* [ Output ](#tab-panel-57)

```

{

    "prompt": "A cozy reading nook with floor-to-ceiling bookshelves and a comfortable armchair"

}


```

```

{

    "images": [

        "https://replicate.delivery/xezq/v9yfL5jL43WoPK3Cbac7MnfkO1YxGSbqea3rfOO06fOJIsGzC/tmp17mjrmct.jpg"

    ]

}


```

## Examples

**High Resolution**  — 4K quality image generation 

TypeScript

```

const response = await env.AI.run(

  'bytedance/seedream-4.5',

  {

    prompt:

      'A hyperrealistic still life painting of fresh fruit on an antique wooden table with dramatic chiaroscuro lighting',

    size: '4K',

    aspect_ratio: '4:3',

  },

  {

    gateway: { id: 'default' },

  }

)

console.log(response)


```

Explain Code

Input / Output JSON 

* [ Input ](#tab-panel-58)
* [ Output ](#tab-panel-59)

```

{

    "prompt": "A hyperrealistic still life painting of fresh fruit on an antique wooden table with dramatic chiaroscuro lighting",

    "size": "4K",

    "aspect_ratio": "4:3"

}


```

```

{

    "images": [

        "https://replicate.delivery/xezq/XgK4QxmepmyhMSOG0Jb05jAhIAxeIVleoxytNLjAQqeDFWjZB/tmp5vwo098k.jpg"

    ]

}


```

**Image-to-Image**  — Edit using reference images 

TypeScript

```

const response = await env.AI.run(

  'bytedance/seedream-4.5',

  {

    prompt:

      'Transform this scene into a winter wonderland with snow covering everything',

    image_input: [

      'https://replicate.delivery/xezq/0lxxNQSg3NabCZrDiQVAPGVmjP1Q2dd7TgYCOTfI9LpyZaMLA/tmp89gopylq.jpg',

    ],

    aspect_ratio: 'match_input_image',

  },

  {

    gateway: { id: 'default' },

  }

)

console.log(response)


```

Explain Code

Input / Output JSON 

* [ Input ](#tab-panel-60)
* [ Output ](#tab-panel-61)

```

{

    "prompt": "Transform this scene into a winter wonderland with snow covering everything",

    "image_input": [

        "https://replicate.delivery/xezq/0lxxNQSg3NabCZrDiQVAPGVmjP1Q2dd7TgYCOTfI9LpyZaMLA/tmp89gopylq.jpg"

    ],

    "aspect_ratio": "match_input_image"

}


```

```

{

    "images": [

        "https://replicate.delivery/xezq/A8YsG3WmRgp5OV3XS47jJyMfrIMBIRRRYVYaWEUSicZy0aMLA/tmpgbcs879h.jpg"

    ]

}


```

**Sequential Generation**  — Generate multiple related images 

TypeScript

```

const response = await env.AI.run(

  'bytedance/seedream-4.5',

  {

    prompt:

      'A character design sheet for a fantasy warrior: front view, side view, and back view',

    sequential_image_generation: 'auto',

    max_images: 3,

    aspect_ratio: '16:9',

  },

  {

    gateway: { id: 'default' },

  }

)

console.log(response)


```

Explain Code

Input / Output JSON 

* [ Input ](#tab-panel-62)
* [ Output ](#tab-panel-63)

```

{

    "prompt": "A character design sheet for a fantasy warrior: front view, side view, and back view",

    "sequential_image_generation": "auto",

    "max_images": 3,

    "aspect_ratio": "16:9"

}


```

```

{

    "images": [

        "https://replicate.delivery/xezq/GhUtCYpyffvUGkI5gyiHfG6XsgZKM47veek1eExlta8lWYNmF/tmpcv5bwg8h.jpg"

    ]

}


```

**Multi-Image Edit**  — Combine multiple reference images 

TypeScript

```

const response = await env.AI.run(

  'bytedance/seedream-4.5',

  {

    prompt:

      'Combine the style of the first image with the subject from the second image',

    image_input: [

      'https://replicate.delivery/xezq/TRYcLgNMrBpPJVq09ICKXWe4Z8d6olzpK5vtQPOB8O23ZaMLA/tmpaecga26m.jpg',

      'https://replicate.delivery/xezq/1SbAc0aXYXbVD9doyrdCW78hYufVefMsaJXBrETN7Lu2npxsA/tmphvkx7emy.jpg',

    ],

    size: '2K',

  },

  {

    gateway: { id: 'default' },

  }

)

console.log(response)


```

Explain Code

Input / Output JSON 

* [ Input ](#tab-panel-64)
* [ Output ](#tab-panel-65)

```

{

    "prompt": "Combine the style of the first image with the subject from the second image",

    "image_input": [

        "https://replicate.delivery/xezq/TRYcLgNMrBpPJVq09ICKXWe4Z8d6olzpK5vtQPOB8O23ZaMLA/tmpaecga26m.jpg",

        "https://replicate.delivery/xezq/1SbAc0aXYXbVD9doyrdCW78hYufVefMsaJXBrETN7Lu2npxsA/tmphvkx7emy.jpg"

    ],

    "size": "2K"

}


```

```

{

    "images": [

        "https://replicate.delivery/xezq/jgYAANfEfZsrTE9p7mtEOssRRcZua7p3s1H6VWPRAey6TrxsA/tmpxntp4kc5.jpg"

    ]

}


```

## Parameters

* [ Input ](#tab-panel-68)
* [ Output ](#tab-panel-69)

prompt

`string`required

▶image\_input\[\]

`array`format: uri

size

`string`enum: 2K, 4K

aspect\_ratio

`string`enum: match\_input\_image, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9

sequential\_image\_generation

`string`enum: disabled, auto

max\_images

`integer`minimum: 1maximum: 15

disable\_safety\_checker

`boolean`

▶images\[\]

`array`minItems: 1format: uri

## API Schemas

* [ Input ](#tab-panel-66)
* [ Output ](#tab-panel-67)

```

{

  "$schema": "https://json-schema.org/draft/2020-12/schema",

  "type": "object",

  "properties": {

    "prompt": {

      "type": "string"

    },

    "image_input": {

      "type": "array",

      "items": {

        "type": "string",

        "format": "uri"

      }

    },

    "size": {

      "type": "string",

      "enum": [

        "2K",

        "4K"

      ]

    },

    "aspect_ratio": {

      "type": "string",

      "enum": [

        "match_input_image",

        "1:1",

        "4:3",

        "3:4",

        "16:9",

        "9:16",

        "3:2",

        "2:3",

        "21:9"

      ]

    },

    "sequential_image_generation": {

      "type": "string",

      "enum": [

        "disabled",

        "auto"

      ]

    },

    "max_images": {

      "type": "integer",

      "minimum": 1,

      "maximum": 15

    },

    "disable_safety_checker": {

      "type": "boolean"

    }

  },

  "required": [

    "prompt"

  ],

  "additionalProperties": false

}


```

Explain Code

```

{

  "$schema": "https://json-schema.org/draft/2020-12/schema",

  "type": "object",

  "properties": {

    "images": {

      "minItems": 1,

      "type": "array",

      "items": {

        "type": "string",

        "format": "uri"

      }

    }

  },

  "required": [

    "images"

  ],

  "additionalProperties": false

}


```

Explain Code

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/ai/","name":"AI"}},{"@type":"ListItem","position":3,"item":{"@id":"/ai/models/","name":"Models"}}]}
```
