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

# Kling Image-to-Video

> This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).

Use the Kling model to generate videos from images.

Supports passing image URLs or Base64-encoded image data via the `image` parameter.



## OpenAPI

````yaml api-reference/en/openapi.json POST /kling/v1/videos/image2video
openapi: 3.0.0
info:
  title: Overseas Expansion Camp API Reference Documentation
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.aiid.edu.kg
security:
  - BearerAuth: []
tags:
  - name: OpenAI format (Chat)
  - name: OpenAI Format (Responses)
  - name: Gemini Format for Image Generation
  - name: Image generationOpenAI DALL-E format
  - name: List models
  - name: Video generationHappyHorse and Wan
  - name: Video generation Kling format
  - name: Video generation Omni and Veo formats
  - name: Video generation Seedance
  - name: Video generation Sora compatible formats
  - name: Video generation Vidu
  - name: Music generation task format
paths:
  /kling/v1/videos/image2video:
    post:
      tags:
        - Video generation Kling format
      summary: Kling Image-to-Video
      description: >-
        This series supports OpenAI video generation formats (see the link
        [Video generation Sora compatible
        formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).


        Use the Kling model to generate videos from images.


        Supports passing image URLs or Base64-encoded image data via the `image`
        parameter.
      operationId: createKlingImage2Video
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoRequest'
            example:
              model: kling-v1
              prompt: 人物转身走开
              image: https://example.com/image.jpg
              duration: 5
              width: 1280
              height: 720
      responses:
        '200':
          description: Video generation task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoResponse'
          headers: {}
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    VideoRequest:
      type: object
      description: Video generation request
      properties:
        model:
          type: string
          description: Model/Style ID
          example: kling-v1
        prompt:
          type: string
          description: Text description prompt
          example: 宇航员站起身走了
        image:
          type: string
          description: Image Input (URL or Base64)
          example: https://example.com/image.jpg
        duration:
          type: number
          description: Video duration (seconds)
          example: 5
        width:
          type: integer
          description: Video width
          example: 1280
        height:
          type: integer
          description: Video height
          example: 720
        fps:
          type: integer
          description: Video Frame Rate
          example: 30
        seed:
          type: integer
          description: Random Seed
          example: 20231234
        'n':
          type: integer
          description: Number of videos generated
          example: 1
        response_format:
          type: string
          description: Response Format
          example: url
        user:
          type: string
          description: User ID
          example: user-1234
        metadata:
          type: object
          description: >-
            Extended parameters (such as `negative_prompt`, `style`,
            `quality_level`, etc.)
          additionalProperties: true
          properties: {}
    VideoResponse:
      type: object
      description: Video generation task submission response
      properties:
        task_id:
          type: string
          description: Task ID
          example: abcd1234efgh
        status:
          type: string
          description: Task Status
          example: queued
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Error message
            type:
              type: string
              description: Error Type
            param:
              type: string
              description: Related Parameters
              nullable: true
            code:
              type: string
              description: Error Codes
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Use Bearer Token authentication.
        Format: `Authorization: Bearer sk-xxxxxx`

````