> ## 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 Генерация видео по изображению

> Эта серия поддерживает формат генерации видео OpenAI (подробности см. по ссылке [совместимые форматы видео生成Sora ](/api-reference/ru/generaciya-video-sovmestimyi-format-sora/sozdat-video)).

Используйте модель Kling для создания видео из изображения.

Поддерживается передача URL-адреса изображения или данных изображения в кодировке Base64 через параметр image.



## OpenAPI

````yaml api-reference/ru/openapi.json POST /kling/v1/videos/image2video
openapi: 3.0.0
info:
  title: Справочная документация API для "出海营"
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.aiid.edu.kg
security:
  - BearerAuth: []
tags:
  - name: Формат OpenAI (Chat)
  - name: Формат OpenAI (Responses)
  - name: Формат Gemini для генерации изображений
  - name: Генерация изображенийOpenAI в формате DALL-E
  - name: Получить список моделей
  - name: Генерация видеоHappyHorse и Wan
  - name: ФорматKling генерации видео
  - name: Видео-генерация Omni и формат Veo
  - name: Генерация видео Seedance
  - name: Совместимый формат для Sora генерации видео
  - name: Генерация видео Vidu
  - name: Формат задачи генерации музыки
paths:
  /kling/v1/videos/image2video:
    post:
      tags:
        - ФорматKling генерации видео
      summary: Kling Генерация видео по изображению
      description: >-
        Эта серия поддерживает формат генерации видео OpenAI (подробности см. по
        ссылке [совместимые форматы видео生成Sora
        ](/api-reference/ru/generaciya-video-sovmestimyi-format-sora/sozdat-video)).


        Используйте модель Kling для создания видео из изображения.


        Поддерживается передача URL-адреса изображения или данных изображения в
        кодировке Base64 через параметр image.
      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: Задача на генерацию видео успешно создана
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoResponse'
          headers: {}
        '400':
          description: Ошибка параметров запроса
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    VideoRequest:
      type: object
      description: Запрос на генерацию видео
      properties:
        model:
          type: string
          description: ID модели/стиля
          example: kling-v1
        prompt:
          type: string
          description: Текстовое описание промпта
          example: 宇航员站起身走了
        image:
          type: string
          description: Ввод изображения (URL или Base64)
          example: https://example.com/image.jpg
        duration:
          type: number
          description: Длительность видео (сек.)
          example: 5
        width:
          type: integer
          description: Ширина видео
          example: 1280
        height:
          type: integer
          description: Высота видео
          example: 720
        fps:
          type: integer
          description: Частота кадров видео
          example: 30
        seed:
          type: integer
          description: Случайное число (seed)
          example: 20231234
        'n':
          type: integer
          description: Количество создаваемых видео
          example: 1
        response_format:
          type: string
          description: Формат ответа
          example: url
        user:
          type: string
          description: Идентификатор пользователя
          example: user-1234
        metadata:
          type: object
          description: >-
            Дополнительные параметры (например, negative_prompt, style,
            quality_level и др.)
          additionalProperties: true
          properties: {}
    VideoResponse:
      type: object
      description: Ответ на создание задачи по генерации видео
      properties:
        task_id:
          type: string
          description: ID задачи
          example: abcd1234efgh
        status:
          type: string
          description: Статус задачи
          example: queued
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Сообщение об ошибке
            type:
              type: string
              description: Тип ошибки
            param:
              type: string
              description: Связанные параметры
              nullable: true
            code:
              type: string
              description: Код ошибки
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Используйте проверку подлинности Bearer Token.
        Формат: `Authorization: Bearer sk-xxxxxx`

````