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

# seedance-1.5-pro-图生视频

> 使用 doubao-seedance-1-5-pro-251215 模型从参考图片生成视频。

<script src="/feedback.js" />


## OpenAPI

````yaml api-reference/model-api/bytedance/openapi/doubao-seedance-1-5-pro-251215-i2v/openapi.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: Seedance 1.5 Pro 图生视频
  description: 通过 Anyfast API 调用字节跳动 Seedance 1.5 Pro 图生视频模型
  version: 1.0.0
servers:
  - url: https://www.anyfast.com.cn
security:
  - bearerAuth: []
paths:
  /v1/video/generations:
    post:
      summary: 创建图生视频任务
      description: 使用 doubao-seedance-1-5-pro-251215 模型从参考图片生成视频。
      operationId: createSeedance15ProI2v
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - content
              properties:
                model:
                  type: string
                  enum:
                    - doubao-seedance-1-5-pro-251215
                  description: 模型 ID
                  example: doubao-seedance-1-5-pro-251215
                content:
                  type: array
                  minItems: 2
                  description: 多模态内容数组，包含文本提示词和参考图片。
                  items:
                    oneOf:
                      - type: object
                        description: 文本提示词
                        required:
                          - type
                          - text
                        properties:
                          type:
                            type: string
                            enum:
                              - text
                          text:
                            type: string
                            description: 视频生成提示词。
                      - type: object
                        description: 带角色的参考图片。
                        required:
                          - type
                          - image_url
                        properties:
                          type:
                            type: string
                            enum:
                              - image_url
                          image_url:
                            type: object
                            required:
                              - url
                            properties:
                              url:
                                type: string
                                description: 图片 URL
                          role:
                            type: string
                            enum:
                              - first_frame
                              - last_frame
                            description: 图片角色：first_frame（首帧）或 last_frame（尾帧）。
                ratio:
                  type: string
                  enum:
                    - '16:9'
                    - '4:3'
                    - '1:1'
                    - '3:4'
                    - '9:16'
                    - '21:9'
                    - adaptive
                  default: '16:9'
                  description: 画面比例。图生视频支持 adaptive。
                  example: adaptive
                resolution:
                  type: string
                  enum:
                    - 480p
                    - 720p
                    - 1080p
                  default: 720p
                  description: 输出分辨率。
                  example: 720p
                duration:
                  type: integer
                  minimum: 4
                  maximum: 12
                  default: 5
                  description: 视频时长（秒），4-12 秒。
                  example: 5
                watermark:
                  type: boolean
                  default: false
                  description: 是否添加水印。
                seed:
                  type: integer
                  description: 随机种子。
                camera_fixed:
                  type: boolean
                  default: false
                  description: 是否固定摄像头。
      responses:
        '200':
          description: 任务已创建
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: gen-abc123
                  model:
                    type: string
                    example: doubao-seedance-1-5-pro-251215
                  status:
                    type: string
                    example: processing
                  created_at:
                    type: integer
                    example: 1773130665
        '401':
          description: 未授权
        '429':
          description: 请求频率超限
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````