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



## OpenAPI

````yaml api-reference/ru/openapi.json GET /kling/v1/videos/text2video/{task_id}
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/text2video/{task_id}:
    get:
      tags:
        - ФорматKling генерации видео
      summary: Получить статус задачи генерации видео по тексту Kling
      description: >-
        Эта серия поддерживает формат генерации видео OpenAI (подробности см. по
        ссылке [совместимые форматы видео生成Sora
        ](/api-reference/ru/generaciya-video-sovmestimyi-format-sora/sozdat-video)).


        Запросить статус и результат задачи генерации видео по тексту Kling.
      operationId: getKlingText2Video
      parameters:
        - name: task_id
          in: path
          description: ID задачи
          required: true
          example: task-abc123
          schema:
            type: string
      responses:
        '200':
          description: Статус задачи успешно получен
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoTaskResponse'
          headers: {}
        '404':
          description: Задача не существует
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    VideoTaskResponse:
      type: object
      description: Ответ на запрос статуса видеозадачи
      properties:
        task_id:
          type: string
          description: ID задачи
          example: abcd1234efgh
        status:
          type: string
          description: Статус задачи
          enum:
            - queued
            - in_progress
            - completed
            - failed
          example: completed
        url:
          type: string
          description: URL видеоресурса (при успешном завершении)
          example: https://example.com/video.mp4
        format:
          type: string
          description: Формат видео
          example: mp4
        metadata:
          $ref: '#/components/schemas/VideoTaskMetadata'
        error:
          $ref: '#/components/schemas/VideoTaskError'
    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
    VideoTaskMetadata:
      type: object
      description: Метаданные видеозадачи
      properties:
        duration:
          type: number
          description: Фактическая длительность сгенерированного видео
          example: 5
        fps:
          type: integer
          description: Фактическая частота кадров
          example: 30
        width:
          type: integer
          description: Фактическая ширина
          example: 1280
        height:
          type: integer
          description: Фактическая высота
          example: 720
        seed:
          type: integer
          description: Используемое случайное начальное число (seed)
          example: 20231234
    VideoTaskError:
      type: object
      description: Сообщение об ошибке видеозадачи
      properties:
        code:
          type: integer
          description: Код ошибки
        message:
          type: string
          description: Сообщение об ошибке
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Используйте проверку подлинности Bearer Token.
        Формат: `Authorization: Bearer sk-xxxxxx`

````