> ## Documentation Index
> Fetch the complete documentation index at: https://evo-0136956d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Kling Image-to-Video Task

> Generates a video from an image using a Kling model. Supports passing an image URL or Base64-encoded image data through the `image` parameter.



## OpenAPI

````yaml /en/openapi/relay-api.mintlify.json post /kling/v1/videos/image2video
openapi: 3.0.1
info:
  title: AI Relay API
  description: 统一的 AI Model 调用接口，支持 OpenAI、Claude、Gemini、Kling、即梦等多种格式
  version: 1.0.0
  license:
    name: Proprietary
    url: https://example.com/license
servers:
  - url: https://token.nusabase.com/silver
    description: API Base URL
security:
  - BearerAuth: []
tags:
  - name: Models
    description: Models endpoints
  - name: Chat
    description: Chat endpoints
  - name: Responses
    description: Responses endpoints
  - name: Realtime
    description: Realtime endpoints
  - name: Claude
    description: Claude endpoints
  - name: Gemini
    description: Gemini endpoints
  - name: Images
    description: Images endpoints
  - name: Video
    description: Video endpoints
  - name: Video / Kling
    description: Video / Kling endpoints
  - name: Video / Jimeng
    description: Video / Jimeng endpoints
  - name: Audio
    description: Audio endpoints
  - name: Embeddings
    description: Embeddings endpoints
  - name: Rerank
    description: Rerank endpoints
  - name: Moderations
    description: Moderations endpoints
  - name: Not Implemented
    description: Not Implemented endpoints
paths:
  /kling/v1/videos/image2video:
    post:
      tags:
        - Video / Kling
      summary: Create Kling Image-to-Video Task
      description: >-
        Generates a video from an image using a Kling model. Supports passing an
        image URL or Base64-encoded image data through the `image` parameter.
      operationId: post_kling_v1_videos_image2video
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoRequest'
      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 生成请求
      properties:
        model:
          type: string
          description: Model /风格 ID
          example: kling-v1
        prompt:
          type: string
          description: Text promptPrompt
          example: An astronaut stands up and walks away
        image:
          type: string
          description: 图片输入 (URL 或 Base64)
          example: https://example.com/image.jpg
        duration:
          type: number
          description: Video duration（秒）
          example: 5
        width:
          type: integer
          description: Video 宽度
          example: 1280
        height:
          type: integer
          description: Video 高度
          example: 720
        fps:
          type: integer
          description: Video 帧率
          example: 30
        seed:
          type: integer
          description: 随机种子
          example: 20231234
        'n':
          type: integer
          description: 生成 Video 数量
          example: 1
        response_format:
          type: string
          description: 响应格式
          example: url
        user:
          type: string
          description: User 标识
          example: user-1234
        metadata:
          type: object
          description: 扩展参数 (如 negative_prompt, style, quality_level 等)
          additionalProperties: true
          properties: {}
    VideoResponse:
      type: object
      description: Video 生成 Tasks 提交响应
      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: 错误 Profile
            type:
              type: string
              description: 错误类型
            param:
              type: string
              description: 相关参数
              nullable: true
            code:
              type: string
              description: 错误代码
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.