---
title: "Seedream 4.0 Text-to-Image API & Playground - Comfy"
description: "Seedream 4.0 Text-to-Image by ByteDance: Generates images from a text prompt at sizes up to 4096×4096, and can return a batch of related images via the API."
canonical: https://comfy.org/hub/models/seedream-4-0-text-to-image/
lang: en
index: https://comfy.org/llms.txt
---

[Models](https://comfy.org/hub/models/)

ByteDance

[Generate images](https://comfy.org/hub/models/?useCase=generate-images)

# Seedream 4.0 Text-to-Image

Generates images from a text prompt at sizes up to 4096×4096, and can return a batch of related images via the API.

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

~6.3 credits x images /Run

- [text-to-image](https://comfy.org/hub/models/?q=text-to-image)
- [image-to-image](https://comfy.org/hub/models/?q=image-to-image)
- [edit](https://comfy.org/hub/models/?q=edit)

## Playground

Input

Prompt

Image size

Advanced settings

Seed

Reuse a seed with the same inputs to make results more repeatable.

Watermark

Output

![Seedream 4.0 Text-to-Image: Rooftop greenhouse at dusk](https://media.comfy.org/website/workshop/byteplus/seedream-4/rooftop-greenhouse-at-dusk.png)

Example

## Try an example

-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#byteplus)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=byteplus--seedream-4--generate-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/byteplus/seedream-4-0-250828

Fill in the Playground inputs to generate a request.

## More from ByteDance

Compare ByteDance's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [Seedream 5.0 Pro Text-to-Image](https://comfy.org/hub/models/seedream-5-0-pro-text-to-image/) | ~9.5 credits /Image | 1K – 2K | — |
| [Seedream 5.0 Pro Image Edit](https://comfy.org/hub/models/seedream-5-0-pro-image-edit/) | ~9.5 credits /Image | 1K – 2K | — |
| [Seedream 5.0 Pro Layer Separation](https://comfy.org/hub/models/seedream-5-0-pro-layer-separation/) | ~9.5 credits /Image | 1K – 2K | — |
| [Seedream 4.5 Text-to-Image](https://comfy.org/hub/models/seedream-4-5-text-to-image/) | ~8.4 credits x images /Run | 4K | — |
| [Seedream 4.5 Image Edit](https://comfy.org/hub/models/seedream-4-5-image-edit/) | ~8.4 credits x images /Run | 4K | — |
| [Seedance 2.5 Reference-to-Video](https://comfy.org/hub/models/seedance-2-5-reference-to-video/) | — | 480p – 1080p | 2 – 30s |
| [Seedance 2.5 Video Edit](https://comfy.org/hub/models/seedance-2-5-video-edit/) | — | 480p – 1080p | 2 – 30s |
| [Seedance 2.5 Text-to-Video](https://comfy.org/hub/models/seedance-2-5-text-to-video/) | — | 480p – 1080p | 2 – 30s |
| [Seedance 2.5 First-Last Frame](https://comfy.org/hub/models/seedance-2-5-first-last-frame/) | — | 480p – 1080p | 2 – 30s |
| [Seedance 2.0 Image-to-Video](https://comfy.org/hub/models/seedance-2-0-image-to-video/) | — | 480p – 4K | 2 – 30s |
| [Seedream 5.0 Lite Text-to-Image](https://comfy.org/hub/models/seedream-5-0-lite-text-to-image/) | ~7.4 credits x images /Run | 3K | — |
| [Seedream 5.0 Lite Image Edit](https://comfy.org/hub/models/seedream-5-0-lite-image-edit/) | ~7.4 credits x images /Run | 3K | — |
| [Seedream 4.0 Image Edit](https://comfy.org/hub/models/seedream-4-0-image-edit/) | ~6.3 credits x images /Run | 4K | — |
| [Seedance 2.0 Text-to-Video](https://comfy.org/hub/models/seedance-2-0-text-to-video/) | — | 480p – 4K | 2 – 30s |
| [Seedance 2.0 Reference-to-Video](https://comfy.org/hub/models/seedance-2-0-reference-to-video/) | — | 480p – 4K | 2 – 30s |
| [Seedance 2.0 Fast Reference-to-Video](https://comfy.org/hub/models/seedance-2-0-fast-reference-to-video/) | — | 480p – 720p | 2 – 30s |
| [Seedance 2.0 Mini Text-to-Video](https://comfy.org/hub/models/seedance-2-0-mini-text-to-video/) | — | 480p – 720p | 2 – 30s |
| [Seedance 2.0 Fast Text-to-Video](https://comfy.org/hub/models/seedance-2-0-fast-text-to-video/) | — | 480p – 720p | 2 – 30s |
| [Seedance 2.0 Fast First-Last Frame](https://comfy.org/hub/models/seedance-2-0-fast-first-last-frame/) | — | 480p – 720p | 2 – 30s |
| [Seed Audio 1.0 Text-to-Speech](https://comfy.org/hub/models/seed-audio-1-0-text-to-speech/) | — | — | — |
| [Seed Audio 1.0 Multilingual Text-to-Speech](https://comfy.org/hub/models/seed-audio-1-0-multilingual-text-to-speech/) | — | — | — |
