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

# Multi-turn editing consistency

> Keep the subject, composition and untouched regions consistent while editing the same image over several turns.

Seedream 5.5 supports continuous edits to the same image and improves the consistency of the subject, composition and unchanged regions across turns. Use the image returned by the previous turn as the next `image`, and state clearly **what to change** and **what to preserve**.

> [!TIP]
>
> For more consistent multi-turn editing, use an input image without an alpha channel (an RGB image) and set `background` to `opaque` while editing.

## Example

The example edits the same portrait over three turns. Each turn uses the previous output as its input and keeps the earlier edits.

| Original | Turn 1: add bubble gum | Turn 2: add sunglasses | Turn 3: change the sunglasses | Result |
| - | - | - | - | - |
| ![Original input](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-multi-round-editing-input.png) | ![First turn, add bubble gum](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-round-1-20261103.png) | ![Second turn, add sunglasses](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-round-2-20261103.png) | ![Third turn, change sunglasses](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-round-3-sunglasses-20261103.png) | ![Multi-turn editing result](https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-multi-round-editing-demo2.gif) |

[Watch the demo video](https://arkdocs-en.tos-ap-southeast-1.volces.com/videos/image-generation/seedream-5-5-multi-round-editing-demo.mp4)

## Request

The request of the first turn. `$DREAMTO_API_KEY` is your API Key.

```bash cURL theme={null}
curl -X POST "https://api.dreamto.ai/api/v3/images/generations" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-5.5",
    "prompt": "Have the person blow a round, semi-transparent pink bubblegum bubble. Preserve the identity, facial features, gaze, hairstyle, pearl earrings, clothing, pose, blue background, composition, and visual style of the person.",
    "image": "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-multi-round-editing-input.png",
    "size": "2K",
    "output_format": "png",
    "background": "opaque",
    "response_format": "url",
    "watermark": true
  }'
```

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

import requests

URL = "https://api.dreamto.ai/api/v3/images/generations"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "seedream-5.5",
    "prompt": "Have the person blow a round, semi-transparent pink bubblegum bubble. Preserve the identity, facial features, gaze, hairstyle, pearl earrings, clothing, pose, blue background, composition, and visual style of the person.",
    "image": "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-multi-round-editing-input.png",
    "size": "2K",
    "output_format": "png",
    "background": "opaque",
    "response_format": "url",
    "watermark": True
}

result = requests.post(URL, headers=HEADERS, json=payload, timeout=600).json()
for image in result["data"]:
    print(image["url"])
```

```python OpenAI SDK theme={null}
import os

from openai import OpenAI

client = OpenAI(base_url="https://api.dreamto.ai/api/v3", api_key=os.environ["DREAMTO_API_KEY"])

response = client.images.generate(
    model="seedream-5.5",
    prompt="Have the person blow a round, semi-transparent pink bubblegum bubble. Preserve the identity, facial features, gaze, hairstyle, pearl earrings, clothing, pose, blue background, composition, and visual style of the person.",
    size="2K",
    output_format="png",
    background="opaque",
    response_format="url",
    extra_body={
        "image": "https://arkdocs-en.tos-ap-southeast-1.volces.com/images/image-generation/seedream-5-5-multi-round-editing-input.png",
        "watermark": True,
    },
)
for item in response.data:
    print(item)
```

For the following turns, pass `data[0].url` of the previous response as the new `image` and replace `prompt` (for example "Put black sunglasses on the person and keep everything else unchanged"). Image links are valid for 24 hours; save the image yourself to continue editing later.

Interactive editing (marking the place to change with coordinates, boxes or arrows on the image) works the same way: send the marked-up image as `image`, explain the marks in the prompt and ask the model to remove them. See [Create image](https://docs.dreamto.ai/en/api-reference/seedream-5-5/create-image.md) for every parameter.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.