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

# Get Kling text-to-video task status

> Query the status and result of a Kling text-to-video task.



## OpenAPI

````yaml /api-reference/openapi.json get /kling/v1/videos/text2video/{task_id}
openapi: 3.0.1
info:
  title: Rock API AI Model API
  version: 1.0.0
  description: OpenAI-compatible AI model API reference for Rock API.
servers:
  - url: https://rockapi.ai
security:
  - BearerAuth: []
tags:
  - name: List models
  - name: OpenAI format (Chat)
  - name: OpenAI format (Responses)
  - name: Image generation
  - name: Image generation/OpenAI-compatible format
  - name: Image generation/Qwen
  - name: Video generation
  - name: Video generation/Sora-compatible format
  - name: Video generation/Kling format
  - name: Video generation/Jimeng format
  - name: Claude format (Messages)
  - name: Gemini format
  - name: OpenAI format (Embeddings)
  - name: Text completions
  - name: OpenAI audio
  - name: Rerank
  - name: Moderations
  - name: Realtime
  - name: Not implemented
  - name: Not implemented/Fine-tunes
  - name: Not implemented/Files
paths:
  /kling/v1/videos/text2video/{task_id}:
    get:
      tags:
        - Video generation/Kling format
      summary: Get Kling text-to-video task status
      description: Query the status and result of a Kling text-to-video task.
      operationId: getKlingText2Video
      parameters:
        - name: task_id
          in: path
          description: Task ID
          required: true
          example: task-abc123
          schema:
            type: string
      responses:
        '200':
          description: Task status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoTaskResponse'
          headers: {}
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    VideoTaskResponse:
      type: object
      description: Video task status query response
      properties:
        task_id:
          type: string
          description: Task ID
          example: abcd1234efgh
        status:
          type: string
          description: Task status
          enum:
            - queued
            - in_progress
            - completed
            - failed
          example: completed
        url:
          type: string
          description: Video resource URL (when successful)
          example: https://example.com/video.mp4
        format:
          type: string
          description: Video format
          example: mp4
        metadata:
          $ref: '#/components/schemas/VideoTaskMetadata'
        error:
          $ref: '#/components/schemas/VideoTaskError'
    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 parameter
              nullable: true
            code:
              type: string
              description: Error code
              nullable: true
    VideoTaskMetadata:
      type: object
      description: Video task metadata
      properties:
        duration:
          type: number
          description: Actual generated video duration
          example: 5
        fps:
          type: integer
          description: Actual frame rate
          example: 30
        width:
          type: integer
          description: Actual width
          example: 1280
        height:
          type: integer
          description: Actual height
          example: 720
        seed:
          type: integer
          description: Random seed used
          example: 20231234
    VideoTaskError:
      type: object
      description: Video task error information
      properties:
        code:
          type: integer
          description: Error code
        message:
          type: string
          description: Error message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        Authenticate with a Bearer Token.
        Format: `Authorization: Bearer sk-xxxxxx`

````