> ## 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 Image to Video

> Generate videos from 1-2 images using Google Veo 3.1 model (async), supports first-last frame interpolation

Transform images into videos using [Google DeepMind](https://deepmind.google)'s Veo 3.1 model.

**Key Features:**

* **Dual Mode Support** - Single-image animation or start-to-end frame transition modes
* **Character Consistency** - Maintain character appearance across scenes
* **Audio Sync** - Automatically generate matching sound effects and ambient audio
* **HD Output** - 1080P quality with realistic physics effects


## OpenAPI

````yaml /en/openapi.yaml POST /generate/k/veo3-image-to-video
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AI Model Task Scheduling Platform 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-image-to-video:
    post:
      tags:
        - public
      summary: Veo 3.1 Image-to-Video
      description: >-
        Generate videos from 1-2 images using Google Veo 3.1 model (async),
        supports first-last frame interpolation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ka.CreateVeo3ImageToVideoTaskRequest'
        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.CreateVeo3ImageToVideoTaskRequest:
      properties:
        aspectRatio:
          default: '16:9'
          description: aspect ratio（optional）- videoaspect ratio，default 16:9
          enum:
            - '16:9'
            - '9:16'
            - Auto
          example: '16:9'
          type: string
        enableTranslation:
          default: true
          description: Enable translation (optional) - Enable translation, default true
          example: true
          type: boolean
        imageUrls:
          description: >-
            Image URL list (required) - Image URLs for video generation

            1 image: generate video from single image; 2 images: generate video
            from first and last frames
          example:
            - https://example.com/image1.jpg
          items:
            type: string
          maxItems: 2
          minItems: 1
          type: array
        model:
          default: veo3_fast
          description: >-
            Model (optional) - veo3 (quality priority) or veo3_fast (speed
            priority), default veo3_fast
          enum:
            - veo3
            - veo3_fast
          example: veo3_fast
          type: string
        prompt:
          description: Prompt (required) - Text description for video generation
          example: animate the scene with smooth camera movement
          minLength: 1
          type: string
        seeds:
          description: Random seed (optional) - Range 10000-99999
          example: 12345
          maximum: 99999
          minimum: 10000
          type: integer
        watermark:
          description: Watermark (optional) - Watermark identifier
          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: Please use your API Token for authentication

````