---
title: Seedream 4.0 | Runware Docs
url: https://runware.ai/docs/models/bytedance-seedream-4-0
description: High speed 4K AI image generation and editing model
---
# Seedream 4.0

Seedream 4.0 is ByteDance’s multimodal image model for fast 2K to 4K generation. It supports text prompts, image editing with natural language, and multi image reference. It maintains style consistency across batches and handles bilingual Chinese and English workflows.

- **ID**: `bytedance:5@0`
- **Status**: live
- **Creator**: ByteDance
- **Release Date**: September 9, 2025
- **Capabilities**: Text to Image, Image to Image, Image Editing

## Pricing

Each image generation costs $0.03 at 1024x1024.

- **1024x1024**: `$0.03`

## Compatibility & Validation

`width` and `height` must be used together.

---

The following dimension combinations are supported:

| Configuration | Dimensions |
| --- | --- |
| `1K (1:1)` | `1024x1024` |
| `2K (1:1)` | `2048x2048` |
| `2K (4:3)` | `2304x1728` |
| `2K (3:4)` | `1728x2304` |
| `2K (16:9)` | `2560x1440` |
| `2K (9:16)` | `1440x2560` |
| `2K (3:2)` | `2496x1664` |
| `2K (2:3)` | `1664x2496` |
| `2K (21:9)` | `3024x1296` |
| `4K (1:1)` | `4096x4096` |
| `4K (4:3)` | `4608x3456` |
| `4K (3:4)` | `3456x4608` |
| `4K (16:9)` | `5120x2880` |
| `4K (9:16)` | `2880x5120` |
| `4K (3:2)` | `4992x3328` |
| `4K (2:3)` | `3328x4992` |
| `4K (21:9)` | `6048x2592` |

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/bytedance-seedream-4-0#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageInference`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/bytedance-seedream-4-0#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/bytedance-seedream-4-0#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/bytedance-seedream-4-0#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [outputQuality](https://runware.ai/docs/models/bytedance-seedream-4-0#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/bytedance-seedream-4-0#request-webhookurl)

- **Type**: `string`
- **Format**: `URI`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/bytedance-seedream-4-0#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/bytedance-seedream-4-0#request-uploadendpoint)

- **Type**: `string`
- **Format**: `URI`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [safety](https://runware.ai/docs/models/bytedance-seedream-4-0#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (2 properties)`

Content safety checking configuration for image generation.

#### [checkContent](https://runware.ai/docs/models/bytedance-seedream-4-0#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`
- **Default**: `false`

Enable or disable content safety checking. When enabled, defaults to `fast` mode.

#### [mode](https://runware.ai/docs/models/bytedance-seedream-4-0#request-safety-mode)

- **Path**: `safety.mode`
- **Type**: `string`
- **Default**: `none`

Safety checking mode for image generation.

**Allowed values**:

- `none` Disables checking.
- `fast` Performs a single check.

### [ttl](https://runware.ai/docs/models/bytedance-seedream-4-0#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/bytedance-seedream-4-0#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/bytedance-seedream-4-0#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `20`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [referenceImages](https://runware.ai/docs/models/bytedance-seedream-4-0#request-inputs-referenceimages)

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`

List of reference images (UUID, URL, Data URI, or Base64).

**Generation Parameters**

Core parameters for controlling the generated content.

### [model](https://runware.ai/docs/models/bytedance-seedream-4-0#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `bytedance:5@0`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [positivePrompt](https://runware.ai/docs/models/bytedance-seedream-4-0#request-positiveprompt)

- **Type**: `string`
- **Required**: true
- **Min**: `1`
- **Max**: `2000`

Text prompt describing elements to include in the generated output.

**Learn more** (2 resources):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [width](https://runware.ai/docs/models/bytedance-seedream-4-0#request-width)

- **Type**: `integer`
- **Paired with**: height

Width of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [height](https://runware.ai/docs/models/bytedance-seedream-4-0#request-height)

- **Type**: `integer`
- **Paired with**: width

Height of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [seed](https://runware.ai/docs/models/bytedance-seedream-4-0#request-seed)

- **Type**: `integer`
- **Min**: `0`
- **Max**: `9223372036854776000`

Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.

**Learn more** (1 resource):

- [Text To Image: Seed Controlling Randomness Deterministically](https://runware.ai/docs/guides/text-to-image#seed-controlling-randomness-deterministically) (guide)

**Provider Settings**

Parameters specific to this model provider. These must be nested inside the \`providerSettings.bytedance\` object.

### [maxSequentialImages](https://runware.ai/docs/models/bytedance-seedream-4-0#request-providersettings-bytedance-maxsequentialimages)

- **Path**: `providerSettings.bytedance.maxSequentialImages`
- **Type**: `integer`
- **Min**: `1`
- **Max**: `15`

Maximum number of sequential images to generate. Combined total of reference images plus sequential images cannot exceed 15. The model may generate fewer images than requested depending on prompt complexity.

## Response Parameters

### [taskType](https://runware.ai/docs/models/bytedance-seedream-4-0#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageInference`

Type of the task.

### [taskUUID](https://runware.ai/docs/models/bytedance-seedream-4-0#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the task.

### [imageUUID](https://runware.ai/docs/models/bytedance-seedream-4-0#response-imageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/bytedance-seedream-4-0#response-imageurl)

- **Type**: `string`
- **Format**: `URI`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/bytedance-seedream-4-0#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/bytedance-seedream-4-0#response-imagedatauri)

- **Type**: `string`
- **Format**: `URI`

Data URI of the output image.

### [seed](https://runware.ai/docs/models/bytedance-seedream-4-0#response-seed)

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/bytedance-seedream-4-0#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/bytedance-seedream-4-0#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### Porcelain Dragon Bakery Window (Text to Image)

![Porcelain Dragon Bakery Window](https://assets.runware.ai/examples/bytedance-seedream-4-0/791bb70e-6e94-4340-8e6e-3269b8717f98.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "d0e27e41-af62-43be-926c-8211a3a92adb",
  "model": "bytedance:5@0",
  "positivePrompt": "A whimsical old-world bakery built into the side of a giant porcelain dragon statue, its glazed white scales cracked with age and threaded with tiny flowering vines. Warm oven light glows through curved display windows filled with elaborate pastries shaped like swans, pears, seashells, and miniature castles. A cobbled canal lane passes in front, with delivery bicycles, striped awnings, hanging copper pans, drifting flour dust, and a hand-painted sign in both English and Chinese calligraphy. Townspeople in layered spring clothing gather with baskets and paper-wrapped loaves, while a child watches sugared sparrows perched along the dragon's jaw. Highly detailed ceramic textures, brushed signage, golden morning atmosphere, cinematic depth, storybook realism, crisp focus, lively yet elegant composition, premium 2K image quality.",
  "width": 2304,
  "height": 1728,
  "seed": 5417,
  "providerSettings": {
    "bytedance": {
      "maxSequentialImages": 1
    }
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "d0e27e41-af62-43be-926c-8211a3a92adb",
  "imageUUID": "dc98754d-90c1-41b8-9482-c3d63f90c93c",
  "imageURL": "https://im.runware.ai/image/os/a25d05/ws/3/ii/dc98754d-90c1-41b8-9482-c3d63f90c93c.jpg",
  "seed": 5417,
  "cost": 0.03
}
```

---

### Velvet Circus Caravan Encampment (Image to Image)

![Velvet Circus Caravan Encampment](https://assets.runware.ai/examples/bytedance-seedream-4-0/ce864445-d19d-42e1-bba3-2da8f1a5c915.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "2eca900b-015a-461d-94d9-b42305f46cde",
  "model": "bytedance:5@0",
  "positivePrompt": "Using the reference images as visual guidance, create an opulent wandering circus encampment at first light: a grand painted caravan with carved wood panels and velvet drapery parked among striped tents on a meadow of wildflowers, a majestic white tiger adorned with jeweled harness details resting beside stacked trunks, acrobatic ribbons fluttering from poles, brass instruments glinting on a folding table, faint campfire smoke, dew on the grass, storybook realism, intricate textures, elegant color harmony, sweeping depth, highly detailed 4k illustration aesthetic",
  "width": 2304,
  "height": 1728,
  "seed": 15467,
  "providerSettings": {
    "bytedance": {
      "maxSequentialImages": 1
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/56479b8a-765e-4350-96b3-346fa826cbf6.jpg",
      "https://assets.runware.ai/assets/inputs/6b0e98e7-2da0-438f-b168-1c1ba20132d4.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "2eca900b-015a-461d-94d9-b42305f46cde",
  "imageUUID": "48dd04b2-9278-406b-a82a-5926c6f25276",
  "imageURL": "https://im.runware.ai/image/os/a09d21/ws/3/ii/48dd04b2-9278-406b-a82a-5926c6f25276.jpg",
  "seed": 15467,
  "cost": 0.03
}
```

---

### Gilded Winter Conservatory Interior (Image to Image)

![Gilded Winter Conservatory Interior](https://assets.runware.ai/examples/bytedance-seedream-4-0/b7e7fd21-d25a-41d9-aafc-bae94aead1eb.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "c9b3cbaf-cb72-4015-9f57-18d8e8737a77",
  "model": "bytedance:5@0",
  "positivePrompt": "Using the reference images as visual guidance, create a majestic winter conservatory salon transformed into an opulent chamber music venue, with towering glass walls, frosted panes, citrus trees in ornate planters, marble flooring, and elaborate gold filigree details inspired by antique musical mechanisms. At the center, a poised soprano in an ivory-and-gold opera gown stands beside a harp-like instrument with decorative mechanical embellishments. Warm candlelight and pale daylight mingle across reflective surfaces, producing crisp luxurious textures, cinematic depth, refined composition, highly detailed fabric, ornamental metalwork, and realistic spatial coherence. No text, no watermark, no crowd.",
  "width": 2304,
  "height": 1728,
  "seed": 20086,
  "providerSettings": {
    "bytedance": {
      "maxSequentialImages": 1
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/79b06d11-b5b5-4f30-95cf-cdd985b0e927.jpg",
      "https://assets.runware.ai/assets/inputs/bafba2c6-7881-42f1-ab6d-7e5e714cf025.jpg",
      "https://assets.runware.ai/assets/inputs/ef49174a-f06b-4563-ba3b-b222c3855f86.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "c9b3cbaf-cb72-4015-9f57-18d8e8737a77",
  "imageUUID": "d65165ef-8200-4835-aba2-660119a67dab",
  "imageURL": "https://im.runware.ai/image/os/a20d05/ws/3/ii/d65165ef-8200-4835-aba2-660119a67dab.jpg",
  "seed": 20086,
  "cost": 0.03
}
```

---

### Glass Apiary Canopy Banquet (Text to Image)

![Glass Apiary Canopy Banquet](https://assets.runware.ai/examples/bytedance-seedream-4-0/f490eb3b-f978-43c4-8448-f858dc1fd28c.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "f9b9414a-9ebb-4f93-9bb9-d4b16d312a36",
  "model": "bytedance:5@0",
  "positivePrompt": "A grand open-air banquet suspended beneath a vast canopy of hanging glass beehives in the crowns of ancient sycamore trees, hundreds of tiny amber reflections scattered across polished wooden tables, guests in flowing embroidered garments dining among floating pollen-like dust motes, trained honeybees carrying miniature ribbons between crystal decanters, elaborate plated desserts shaped like wildflowers and hexagons, brass serving carts on narrow elevated walkways, distant rolling farmland beyond the treetops, golden late-afternoon light, cinematic depth, ultra-detailed textures, transparent glass, warm honey tones, whimsical realism, elegant composition, richly layered scene, 4k detail",
  "width": 2496,
  "height": 1664,
  "seed": 14889,
  "providerSettings": {
    "bytedance": {
      "maxSequentialImages": 1
    }
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "f9b9414a-9ebb-4f93-9bb9-d4b16d312a36",
  "imageUUID": "56e77de5-eba5-4739-a2e6-b74e62067db4",
  "imageURL": "https://im.runware.ai/image/os/a24d12/ws/3/ii/56e77de5-eba5-4739-a2e6-b74e62067db4.jpg",
  "seed": 14889,
  "cost": 0.03
}
```