> ## 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.0 Pro 图像编辑

> Seedream 5.0 Pro 图像编辑 API 是 Seedream 旗舰图像编辑模型，提示词遵循精准，支持多图参考控制。

> [!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.0 Pro Edit 最多使用十张参考图进行可控修改，同时保留指定的视觉细节。

## 模型

* **seedream-v5.0-pro/edit** - 支持多图参考的图像编辑

## 尺寸参数

`input.size` 控制输出宽高比，默认 `1:1`：

* 比例预设：`1:1`、`4:3`、`3:4`、`16:9`、`9:16`、`2:3`、`3:2`、`21:9`

## 分辨率参数

`input.resolution` 控制输出分辨率，默认 `1K`：

* 分辨率预设：`1K`、`2K`

## 定价

每次请求生成一张图像，按当前 Seedream 5.0 Pro 模型价格计费。

## 调用方式

使用统一提交接口：`POST /api/generate/submit`

```json theme={null}
{
  "model": "seedream-v5.0-pro/edit",
  "callback_url": "https://your-domain.com/callback",
  "input": {
    "prompt": "A cinematic scene with natural lighting and coherent motion",
    "resolution": "1K",
    "size": "1:1",
    "image_urls": [
      "https://cdn.vidgo.ai/temp/reference-1.jpg"
    ]
  }
}
```


## OpenAPI

````yaml zh/api-manual/image-series/seedream-v5-0-pro-edit.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Seedream 5.0 Pro 图像编辑
  description: 通过 Vidgo 统一生成 API 调用 Seedream 5.0 Pro 图像编辑。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Seedream 5.0 Pro Image Edit
      summary: 提交 Seedream 5.0 Pro 图像编辑任务
      operationId: submitSeedreamV50ProEditTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              default:
                summary: Seedream 5.0 Pro 图像编辑
                value:
                  model: seedream-v5.0-pro/edit
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A cinematic scene with natural lighting and coherent
                      motion
                    resolution: 1K
                    size: '1:1'
                    image_urls:
                      - https://cdn.vidgo.ai/temp/reference-1.jpg
      responses:
        '200':
          description: 任务提交成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
        '401':
          description: 未授权
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: seedream-v5.0-pro/edit
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook 回调 URL。
        input:
          type: object
          required:
            - prompt
            - image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              description: 描述要生成或编辑的图像的文字指令。
              maxLength: 10000
            size:
              type: string
              description: 输出宽高比。
              enum:
                - '1:1'
                - '3:2'
                - '2:3'
                - '4:3'
                - '3:4'
                - '16:9'
                - '9:16'
                - '21:9'
              default: '1:1'
            resolution:
              type: string
              description: 输出分辨率。
              enum:
                - 1K
                - 2K
              default: 1K
            output_format:
              type: string
              description: 输出图像格式。
              enum:
                - png
                - jpeg
            enable_safety_checker:
              type: boolean
              description: 是否开启内容安全检查。
            image_urls:
              type: array
              description: 此图像编辑模型所需的参考图。
              minItems: 1
              maxItems: 10
              items:
                type: string
                format: uri
    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
            status:
              type: string
              enum:
                - not_started
                - running
                - failed
            created_time:
              type: string
              format: date-time
  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.