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

# Seedream 5.5 图像编辑

> Seedream 5.5 图像编辑 API 根据提示词编辑或组合 1–10 张参考图，生成一张 1K、1.5K 或 2K 图片，可输出透明背景 PNG。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

Seedream 5.5 图像编辑根据文字指令修改或组合 1–10 张参考图，返回一张 `1K`、`1.5K` 或 `2K` 图片。可以在保留人物、产品和构图的同时更改光线、季节或风格，也可以把一张图中的主体放进另一张图。

Seedream 5.5 是字节跳动的图像模型。Vidgo 提供三个模型 ID：[文生图](https://docs.vidgo.ai/zh/api-manual/image-series/bytedance-seedream-v5-5-text-to-image.md)、[图像编辑](https://docs.vidgo.ai/zh/api-manual/image-series/bytedance-seedream-v5-5-edit.md)和[图层拆分](https://docs.vidgo.ai/zh/api-manual/image-series/bytedance-seedream-v5-5-layerize.md)。

## 模型

* **bytedance/seedream-v5.5/edit** — Seedream 5.5 图像编辑，1–10 张参考图，输出一张图片。

## 功能

* 编辑一张图片，或组合最多 10 张参考图。
* `size: auto` 保持参考图的宽高比，也可选择八种固定宽高比之一。
* 三档分辨率：`1K`、`1.5K`、`2K`。
* 输出 PNG 或 JPEG，可控制透明或不透明背景。

## 必填参数

* `prompt` (string)：编辑指令，去除首尾空白后 5–5,000 个字符。
* `image_urls` (string\[])：1–10 个公开的 HTTP(S) 图片 URL。

## 可选参数

* `size` (string)：`auto`、`1:1`、`4:3`、`3:4`、`16:9`、`9:16`、`3:2`、`2:3` 或 `21:9`。默认 `auto`。
* `resolution` (string)：`1K`、`1.5K` 或 `2K`。默认 `2K`。
* `output_format` (string)：`png` 或 `jpeg`。默认 `png`。
* `background` (string)：`auto`、`transparent` 或 `opaque`。默认 `auto`。
* `enable_safety_checker` (boolean)：默认 `true`。

## 输出

任务完成后，[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口和回调内容的 `files` 数组中返回一张图片，格式为所选的 `output_format`。

## 示例

* **为单张图片重新布光**：把暴风雨黄昏的海崖人像改为金色冬日日出，看守人和海鹦位置不变，`auto`，`2K` ([结果](https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/edit/v1/01/output.png))。
* **组合两张图片**：把第二张图中的小熊猫放到第一张图的庭院石墙上，`auto`，`1.5K` ([结果](https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/edit/v1/02/output.png))。

## 注意事项

* `background: transparent` 与 `output_format: jpeg` 同时使用返回 400；透明输出请使用 `png`。
* `model` 和 `callback_url` 放在请求根级，与 `input` 并列。`input` 接收上文列出的字段，其他字段返回 400。
* 积分取决于 `resolution`，`image_urls` 中每张参考图另有加价。任务失败全额退还。当前费率见[定价页](https://vidgo.ai/apis/api-pricing)。


## OpenAPI

````yaml zh/api-manual/image-series/bytedance-seedream-v5-5-edit.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Seedream 5.5 图像编辑
  description: Seedream 5.5 图像编辑 API 根据提示词编辑或组合 1–10 张参考图，生成一张 1K、1.5K 或 2K 图片，可输出透明背景 PNG。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Seedream 5.5 Image Edit
      summary: 提交 Seedream 5.5 图像编辑 任务
      operationId: submitSeedream55EditTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              relight-one-image:
                summary: 编辑一张图片
                value:
                  model: bytedance/seedream-v5.5/edit
                  input:
                    prompt: >-
                      Transform the stormy blue-hour dusk into a crisp golden
                      winter sunrise with pale pink clouds and fresh snow
                      lightly dusting the basalt sea cliff, iron railing, and
                      the keeper's shoulders. Keep the elderly lighthouse
                      keeper's exact face, yellow coat, brass lantern, and the
                      perched Atlantic puffin in the exact same positions and
                      framing. Natural morning rim light, photorealistic. No
                      text, no logos, no watermarks.
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/text-to-image/v1/01/output.png
                    size: auto
                    resolution: 2K
                    output_format: png
                    background: auto
              combine-two-images:
                summary: 组合两张参考图
                value:
                  model: bytedance/seedream-v5.5/edit
                  input:
                    prompt: >-
                      Place the red panda from the second image perched
                      naturally on the mossy garden rock wall on the left side
                      of the Kyoto courtyard from the first image, looking
                      curiously toward the young violinist under the lantern
                      eaves. Match the warm twilight lighting, soft rain sheen,
                      and depth of field while keeping the violinist, calico
                      cat, and wooden sign intact. No new text, no logos, no
                      watermarks.
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/text-to-image/v1/03/output.png
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/text-to-image/v1/02/output.png
                    size: auto
                    resolution: 1.5K
                    output_format: png
                    background: auto
      responses:
        '200':
          description: 任务提交结果。任务 ID 标识一项异步任务；生成可能仍在进行中。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: bytedance/seedream-v5.5/edit
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook URL，用于接收完成或失败通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
            - image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 5
              maxLength: 5000
              description: 图片描述或编辑指令。去除首尾空白后 5–5,000 个字符。
            image_urls:
              type: array
              minItems: 1
              maxItems: 10
              items:
                type: string
                format: uri
                description: 使用公开可访问的 HTTP(S) 下载链接。
              description: 1–10 张要编辑或组合的参考图。在提示词中按顺序称呼，如第一张图、第二张图。
            size:
              type: string
              enum:
                - auto
                - '1:1'
                - '4:3'
                - '3:4'
                - '16:9'
                - '9:16'
                - '3:2'
                - '2:3'
                - '21:9'
              default: auto
              description: 输出宽高比。`auto` 跟随参考图。
            resolution:
              type: string
              enum:
                - 1K
                - 1.5K
                - 2K
              default: 2K
              description: 输出分辨率。
            output_format:
              type: string
              enum:
                - png
                - jpeg
              default: png
              description: 输出文件格式。
            background:
              type: string
              enum:
                - auto
                - transparent
                - opaque
              default: auto
              description: '背景模式。`transparent` 返回透明背景的抠图，需配合 `output_format: png`。'
            enable_safety_checker:
              type: boolean
              default: true
              description: 开启或关闭内容安全检查。
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: A5R49VY6KY53FC7G
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T12:11:28'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: 错误信息。参见[错误码](/zh/api-manual/error-codes)。
          example: image_urls must contain 1-10 items
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

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