> ## 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 Pro

> ByteDance Seedream 5.0 Pro image generation and editing model with precise local control.

Seedream 5.0 Pro is ByteDance's high-precision image generation and editing model, available through the AnyFast API. Use it for text-to-image, single-image editing, multi-reference image generation, and local edits that need explicit position or element control.

Use model ID `doubao-seedream-5-0-pro`.

## Key capabilities

* **Text-to-image** — Generate one image from a text prompt.
* **Image-to-image** — Pass one reference image with a prompt to edit or regenerate an image.
* **Multi-reference image generation** — Pass up to 10 reference images with a prompt.
* **Interactive editing** — Use natural language, marked regions, points, bounding boxes, arrows, or annotations to control where edits happen.
* **Native multilingual text** — Generate text in languages such as Russian, Arabic, Filipino, Thai, Turkish, Korean, Malay, Spanish, Portuguese, Indonesian, French, German, Vietnamese, and Japanese.
* **Output control** — Use `size`, `response_format`, `output_format`, and `watermark` to control the generated image.

<Warning>
  Seedream 5.0 Pro does not support grouped image generation, web search, or streaming output. Do not rely on `sequential_image_generation`, `sequential_image_generation_options`, `tools`, or `stream` with this model.
</Warning>

## Quick examples

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.anyfast.ai/v1/images/generations \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "doubao-seedream-5-0-pro",
      "prompt": "A high-end product hero image for a smart speaker, precise lighting, clean editorial layout, multilingual label text in Japanese and English",
      "size": "2K",
      "output_format": "png",
      "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-pro",
          "prompt": "A high-end product hero image for a smart speaker, precise lighting, clean editorial layout, multilingual label text in Japanese and English",
          "size": "2K",
          "output_format": "png",
          "watermark": False,
      },
  )

  print(response.json())
  ```
</CodeGroup>

## Image editing

Pass `image` as a URL, a Base64 data URI, or an array of image URLs/data URIs. Seedream 5.0 Pro supports up to 10 reference images.

```bash cURL theme={null}
curl https://www.anyfast.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedream-5-0-pro",
    "prompt": "Edit the marked area and add a ceramic coffee cup with a saucer. Remove sketch lines and keep the original composition.",
    "image": "https://example.com/marked-reference.png",
    "size": "2K",
    "output_format": "png",
    "watermark": false
  }'
```

For coordinate-based edits, include `<point>` or `<bbox>` tags in the prompt. Coordinates should refer to the target image region.

```json theme={null}
{
  "model": "doubao-seedream-5-0-pro",
  "prompt": "Place the subject from image 1 <bbox>179 283 796 986</bbox> into image 2 <bbox>118 331 933 871</bbox>.",
  "image": [
    "https://example.com/source.png",
    "https://example.com/target.png"
  ],
  "size": "2K",
  "output_format": "png"
}
```

## Input image limits

Seedream 5.0 Pro follows the official Seedream input image limits:

* Supported formats: `jpeg`, `png`, `webp`, `bmp`, `tiff`, `gif`, `heic`, and `heif`.
* Each image must be no larger than `30 MB`.
* Aspect ratio must be between `1/16` and `16`.
* Width and height must each be at least `14px`.
* Total pixels must be no more than `6000x6000 = 36,000,000 px`.
* You can pass up to 10 reference images.

## Parameters

| Parameter                 | Type            | Required | Description                                                                                                                                  |
| ------------------------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`                   | string          | Yes      | Must be `doubao-seedream-5-0-pro`                                                                                                            |
| `prompt`                  | string          | Yes      | Text prompt for image generation or editing. Official guidance recommends keeping prompts concise enough that details do not get diluted.    |
| `image`                   | string or array | No       | Reference image URL/Base64 data URI, or an array of references. Required for image editing. Maximum 10 reference images.                     |
| `size`                    | string          | No       | Output size. Use `1K`, `2K`, or a pixel size such as `2048x1024`. Pixel sizes must satisfy the official total-pixel and aspect-ratio limits. |
| `response_format`         | string          | No       | `url` or `b64_json`. Defaults to `url`. URLs are temporary and should be saved promptly.                                                     |
| `output_format`           | string          | No       | `png` or `jpeg`. Defaults to `jpeg`.                                                                                                         |
| `watermark`               | boolean         | No       | Whether to add the AI-generated watermark. Official default is `true`; set `false` to disable it.                                            |
| `optimize_prompt_options` | object          | No       | Prompt optimization options. Use `mode: "standard"`. Official documentation says fast mode is not supported for Seedream 5.0 Pro.            |

## Size notes

Seedream 5.0 Pro supports two size styles:

* Resolution tiers: `1K` and `2K`. Describe the aspect ratio in the prompt when using a tier.
* Explicit pixels: `widthxheight`, such as `2048x1024`. The official total pixel range is from `1280x720` to `2048x2048x1.1025`, and the aspect ratio range is `[1/16, 16]`.

<Card title="API Reference" icon="code" href="/api-reference/model-api/bytedance/doubao-seedream-5-0-pro">
  View the interactive API playground for Seedream 5.0 Pro.
</Card>

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