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

# Seedream 5.0

> Use ByteDance Seedream 5.0 through AnyFast for text-to-image, image-to-image, and sequential image generation.

Seedream 5.0 is ByteDance's image generation model, available through the AnyFast API. Use model ID `doubao-seedream-5-0-260128`.

## Key capabilities

* Text-to-image and image-to-image generation
* Multiple reference images and sequential output
* Custom size, seed, watermark, and logo controls

<Tabs>
  <Tab title="Text to image">
    ```bash cURL theme={null}
    curl https://www.anyfast.ai/v1/images/generations \
      -H "Authorization: Bearer <token>" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "doubao-seedream-5-0-260128",
        "prompt": "A serene mountain landscape at sunrise with misty valleys",
        "size": "1024x1024",
        "watermark": false
      }'
    ```

    ```python Python theme={null}
    import requests

    response = requests.post(
        "https://www.anyfast.ai/v1/images/generations",
        headers={
            "Authorization": "Bearer YOUR_API_KEY",
            "Content-Type": "application/json",
        },
        json={
            "model": "doubao-seedream-5-0-260128",
            "prompt": "A serene mountain landscape at sunrise with misty valleys",
            "size": "1024x1024",
            "watermark": False,
        },
    )

    print(response.json())
    ```

    | Parameter   | Type    | Required | Description                          |
    | ----------- | ------- | -------- | ------------------------------------ |
    | `model`     | string  | Yes      | Must be `doubao-seedream-5-0-260128` |
    | `prompt`    | string  | Yes      | Image generation prompt              |
    | `size`      | string  | No       | For example `1024x1024` or `2K`      |
    | `watermark` | boolean | No       | Whether to add a watermark           |
    | `seed`      | integer | No       | Random seed                          |
    | `logo_info` | object  | No       | Logo configuration                   |
  </Tab>

  <Tab title="Image to image">
    ```bash cURL theme={null}
    curl https://www.anyfast.ai/v1/images/generations \
      -H "Authorization: Bearer <token>" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "doubao-seedream-5-0-260128",
        "prompt": "Combine both references into a coherent amusement-park storyboard",
        "image": ["https://example.com/ref1.png", "https://example.com/ref2.png"],
        "sequential_image_generation": "auto",
        "sequential_image_generation_options": { "max_images": 3 },
        "size": "2K",
        "watermark": false
      }'
    ```

    ```python Python theme={null}
    import requests

    response = requests.post(
        "https://www.anyfast.ai/v1/images/generations",
        headers={
            "Authorization": "Bearer YOUR_API_KEY",
            "Content-Type": "application/json",
        },
        json={
            "model": "doubao-seedream-5-0-260128",
            "prompt": "A girl and a cow doll riding a roller coaster in the morning, at noon, and at night",
            "image": [
                "https://example.com/ref1.png",
                "https://example.com/ref2.png",
            ],
            "sequential_image_generation": "auto",
            "sequential_image_generation_options": {"max_images": 3},
            "size": "2K",
            "watermark": False,
        },
    )

    print(response.json())
    ```

    <Warning>If Volcengine takes more than 10 seconds to download an external reference image, the request fails with a timeout. Use a fast, reliable CDN or pass large images as Base64 data URIs.</Warning>

    | Parameter                                        | Type    | Required | Description                              |
    | ------------------------------------------------ | ------- | -------- | ---------------------------------------- |
    | `model`                                          | string  | Yes      | Must be `doubao-seedream-5-0-260128`     |
    | `prompt`                                         | string  | Yes      | Image generation or editing prompt       |
    | `image`                                          | array   | Yes      | Reference image URLs or Base64 data URIs |
    | `sequential_image_generation`                    | string  | No       | Set to `auto` for sequential output      |
    | `sequential_image_generation_options.max_images` | integer | No       | Maximum generated images                 |
    | `size`                                           | string  | No       | For example `1024x1024` or `2K`          |
    | `watermark`                                      | boolean | No       | Whether to add a watermark               |
    | `seed`                                           | integer | No       | Random seed                              |
    | `logo_info`                                      | object  | No       | Logo configuration                       |
  </Tab>
</Tabs>

<Card title="API Reference" icon="code" href="/api-reference/model-api/bytedance/doubao-seedream-5-0-260128">View both Seedream 5.0 workflows.</Card>

<script src="/feedback.js" />
