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

# Seedream 4.0 — 图像编辑

> 使用字节跳动 Seedream 4.0 以自然语言编辑与融合图像。

| | |
| - | - |
| **模型 ID** | `bytedance/seedream-4.0-edit` |
| **系列** | `seedream-4-0` |
| **任务** | `edit` |
| **提供方** | ByteDance |
| **模态** | 图像 |

## 参数

**prompt** `string` *required*

描述编辑内容或多张参考图如何融合的自然语言指令。

**image\_urls** `string[]` *required*

一到 14 张参考图的 URL，必须是可公开访问的 HTTPS 地址。

**size** `string` (default: 2K)

输出分辨率档位。取值为 `1K`、`2K`、`4K` 之一。

**aspect\_ratio** `string` (default: auto)

输出画幅。取值为 `auto`, `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `3:2`, `2:3`, `21:9` 之一。`auto` 由模型根据提示词决定画幅；其他比例按 `size` 对应的像素量出图，价格不变。

**n** `integer` (default: 1)

一次请求生成的关联图片数（1 到 15 张，含参考图），适合分镜、套图或变体。模型可能返回更少的图片，按实际返回张数计费。

**optimize\_prompt\_mode** `string` (default: standard)

提示词优化：`standard`（默认）或 `fast`，后者以部分质量换取速度。

## 计费

按实际返回的图片张数计费。生成失败不收费。参考图免费。当前价格请见[定价页](https://vibetoken.cn/pricing)。

## 示例

```bash theme={null}
curl https://vibetoken.cn/v1/images/generations \
  -H "Authorization: Bearer $VIBETOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedream-4.0-edit",
    "prompt": "把这辆自行车改造成极简白色影棚里的银色概念车",
    "image_urls": ["https://example.com/bicycle.jpg"],
    "size": "4K",
    "aspect_ratio": "16:9",
    "n": 4
  }'
```


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