> ## 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.

# Sora 2 Pro Image to Video

> Generate high-quality videos from images using Sora 2 Pro model (async)

Transform images into professional-grade videos using [OpenAI](https://openai.com)'s Sora 2 Pro model.

**Key Features:**

* **Professional Animation** - More natural and smooth motion effects and transitions
* **High-Quality Output** - Support standard/high quality levels
* **Precise Control** - Specify motion direction, speed, and camera effects
* **Audio-Video Sync** - Automatically generate matching high-quality audio


## OpenAPI

````yaml /en/openapi.yaml POST /generate/k/sora2-pro-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/sora2-pro-image-to-video:
    post:
      tags:
        - public
      summary: Sora2 Pro Image-to-Video
      description: Generate high-quality videos from images using Sora 2 Pro model (async)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ka.CreateSora2ProImageToVideoTaskRequest'
        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'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    ka.CreateSora2ProImageToVideoTaskRequest:
      properties:
        aspect_ratio:
          default: landscape
          description: aspect ratio（optional，default landscape）
          enum:
            - portrait
            - landscape
          example: landscape
          type: string
        image_urls:
          description: Image URL list (required, array)
          example:
            - https://example.com/image1.jpg
          items:
            type: string
          minItems: 1
          type: array
        n_frames:
          default: 10
          description: Video duration (optional, 10 or 15 seconds, default 10)
          enum:
            - 10
            - 15
          example: 10
          type: integer
        prompt:
          description: prompt（required）
          example: animate the scene with smooth motion
          minLength: 1
          type: string
        remove_watermark:
          description: Remove watermark (optional)
          example: false
          type: boolean
        size:
          default: standard
          description: Video quality (optional, standard/high, default standard)
          enum:
            - standard
            - high
          example: standard
          type: string
      required:
        - image_urls
        - 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

````