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

# SeeDreamV4.5

> 使用火山引擎SeeDream V4.5模型生成图片，支持批量生成，画质更优



## OpenAPI

````yaml /zh/api-reference/image/openapi.json post /v1/images/seedreamv45
openapi: 3.0.3
info:
  title: 图片服务 API
  description: AI图片生成服务 API - 提供多种AI模型图片生成、任务查询和历史记录功能
  version: 1.0.0
  contact:
    name: API Support
servers:
  - url: https://api.tensorslab.com
    description: 开发环境
security: []
tags:
  - name: 图片生成
    description: 图片生成相关接口
  - name: 任务管理
    description: 任务管理相关接口
paths:
  /v1/images/seedreamv45:
    post:
      tags:
        - 图片生成
      summary: SeeDreamV4.5
      description: 使用火山引擎SeeDream V4.5模型生成图片，支持批量生成，画质更优
      operationId: seeDreamV45
      requestBody:
        required: false
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                category:
                  type: string
                  description: 分类标识，默认为seedreamv45
                  default: seedreamv45
                prompt:
                  type: string
                  description: 提示词（必填）
                batchsize:
                  type: integer
                  description: 批量生成数量，1-15
                  minimum: 1
                  maximum: 15
                  default: 1
                resolution:
                  type: string
                  description: >-
                    图片分辨率。支持三种格式：1) 宽高比（9:16、16:9、3:4、4:3、1:1、2:3、3:2），2)
                    分辨率档位（2K、4K），3) 具体尺寸（如 2048x2048）。


                    使用具体尺寸时需满足：

                    - 总像素范围：[3,686,400, 16,777,216]（例如从 2560x1440 到 4096x4096）


                    示例：3750x1250 有效（总像素 4,687,500）；1500x1500 无效（总像素
                    2,250,000，低于最低要求）。
                  example: 2K
                  default: 2K
                sourceImage:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: 源图片文件
                imageUrl:
                  type: string
                  description: 源图片URL
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralResponse'
              examples:
                success:
                  summary: 成功响应
                  value:
                    code: 1000
                    msg: Task created successfully
                    data:
                      taskid: abcd_1234567890abcdef
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GeneralResponse:
      type: object
      description: 通用响应
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/GeneralData'
          required:
            - data
    BaseResponse:
      type: object
      description: 基础响应结构
      properties:
        code:
          type: integer
          description: 响应状态码：1000=成功，9999=失败，9000=积分不足
        msg:
          type: string
          description: 响应消息
      required:
        - code
        - msg
    GeneralData:
      type: object
      description: 通用数据响应
      properties:
        taskid:
          type: string
          description: 任务ID，用于后续查询任务状态
        url:
          type: string
          description: 生成的图片URL（某些接口返回）
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API密钥认证，请在请求头中包含Authorization字段

````