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

# Veo 3.1 参考图转视频

> 使用 Google Veo 3.1 Fast 模型从 1-3 张参考图生成视频（异步，仅支持 veo3_fast 和 16:9）

使用 [Google DeepMind](https://deepmind.google) 的 Veo 3.1 模型基于参考图生成风格一致的视频。

**模型特点：**

* **多图参考** - 支持 1-3 张参考图控制角色、物体或风格
* **风格迁移** - 将参考图风格应用到生成视频
* **角色一致性** - 适合制作多镜头角色保持一致的内容


## OpenAPI

````yaml /cn/openapi.yaml POST /generate/k/veo3-reference-to-video
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AI 模型任务调度平台 API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://sinancode.com/terms-of-service
  title: TikTomato API
  version: '1.0'
servers:
  - url: https://api.sinancode.com/v1
    description: Production server
security: []
paths:
  /generate/k/veo3-reference-to-video:
    post:
      tags:
        - public
      summary: Veo 3.1 参考图转视频
      description: 使用 Google Veo 3.1 Fast 模型从 1-3 张参考图生成视频（异步，仅支持 veo3_fast 和 16:9）
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ka.CreateVeo3ReferenceToVideoTaskRequest'
        description: Task parameters
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    ka.CreateVeo3ReferenceToVideoTaskRequest:
      properties:
        enableTranslation:
          default: true
          description: 启用翻译（可选）- 启用翻译，默认 true
          example: true
          type: boolean
        imageUrls:
          description: 图片 URL 列表（必填）- 参考图片 URL（1-3张）
          example:
            - https://example.com/reference1.jpg
          items:
            type: string
          maxItems: 3
          minItems: 1
          type: array
        prompt:
          description: 提示词（必填）- 视频生成的文本描述
          example: generate a video based on the reference images
          minLength: 1
          type: string
        seeds:
          description: 随机种子（可选）- 范围 10000-99999
          example: 12345
          maximum: 99999
          minimum: 10000
          type: integer
        watermark:
          description: 水印（可选）- 水印标识
          example: ''
          type: string
      required:
        - imageUrls
        - prompt
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: Task ID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: Machine-readable error code (e.g. TASK.INVALID_PARAMS)
          type: string
        message:
          description: User-friendly error message
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 请使用您的 API Token 进行认证

````