> ## Documentation Index
> Fetch the complete documentation index at: https://docs.routerbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Seedream 4.0 — Text-to-Image

> Generate images from text prompts with ByteDance Seedream 4.0.

|              |                                         |
| ------------ | --------------------------------------- |
| **Model ID** | `bytedance/seedream-4.0`                |
| **Family**   | `seedream-4-0`                          |
| **Task**     | `text-to-image`                         |
| **Provider** | ByteDance                               |
| **Modality** | Image                                   |
| **Price**    | \$0.03 / image (list), billed at 5% off |

## Parameters

<ParamField body="prompt" type="string" required>
  The text description of the image to generate.
</ParamField>

<ParamField body="size" type="string" default="2K">
  Output resolution. One of `1K`, `2K`, `4K`.
</ParamField>

## Example

```bash theme={null}
curl https://routerbase.com/v1/images/generations \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedream-4.0",
    "prompt": "a red panda barista pulling an espresso shot, warm morning light",
    "size": "2K"
  }'
```
