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

# Kling Task Status Query

> Use `GET /v1/videos/{task_id}` to query Kling video task status and results.

# Kling Task Status Query

After a Kling series task is submitted, query it via `GET /v1/videos/{task_id}`.

* The query path is `GET /v1/videos/{task_id}`.
* A successful response returns an OpenAI-style `video` object.
* After the task is completed, you can read the result from `video_url`.

## Method and Path

```http theme={null}
GET /v1/videos/{task_id}
```

## Request Example

<CodeGroup>
  ```bash theme={null}
  curl https://octopusx.ai/v1/videos/video_123 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```python theme={null}
  import requests

  resp = requests.get(
      "https://octopusx.ai/v1/videos/video_123",
      headers={"Authorization": "Bearer YOUR_API_KEY"},
      timeout=30,
  )
  print(resp.json())
  ```

  ```javascript theme={null}
  const response = await fetch("https://octopusx.ai/v1/videos/video_123", {
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
    },
  });

  console.log(await response.json());
  ```
</CodeGroup>

## Response Example

<ResponseExample>
  ```json 200 - Processing theme={null}
  {
    "id": "task_ZOAIupBoCLMo3dmUGcrKUcUEUnCLctc6",
    "object": "video",
    "model": "kling-3.0-omni-720p-noref-audio",
    "status": "processing",
    "progress": 50,
    "created_at": 1774494511
  }
  ```

  ```json 200 - Completed theme={null}
  {
    "id": "task_ZOAIupBoCLMo3dmUGcrKUcUEUnCLctc6",
    "object": "video",
    "model": "kling-3.0-omni-720p-noref-audio",
    "status": "completed",
    "progress": 100,
    "created_at": 1774494511,
    "completed_at": 1774494622,
    "metadata": {
      "url": "https://example.com/video/aigcVideoGenFile.mp4"
    },
    "video_url": "https://example.com/video/aigcVideoGenFile.mp4"
  }
  ```
</ResponseExample>

## Authentication

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Path Parameters

<ParamField path="task_id" type="string" required>
  Task ID, which is the same as the `id` or `task_id` returned by the generation endpoint.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Task ID.
</ResponseField>

<ResponseField name="object" type="string">
  Always `video`.
</ResponseField>

<ResponseField name="model" type="string">
  Model name.
</ResponseField>

<ResponseField name="status" type="string">
  Task status; common values include `queued`, `processing`, `completed`, `failed`, and `cancelled`.
</ResponseField>

<ResponseField name="progress" type="integer">
  Progress percentage (0-100).
</ResponseField>

<ResponseField name="created_at" type="integer">
  Creation time (Unix timestamp).
</ResponseField>

<ResponseField name="completed_at" type="integer">
  Completion time (Unix timestamp), returned only when the task is completed.
</ResponseField>

<ResponseField name="metadata" type="object">
  Metadata.
</ResponseField>

<ResponseField name="metadata.url" type="string">
  Video URL (in metadata).
</ResponseField>

<ResponseField name="video_url" type="string">
  Video URL (same as `metadata.url`).
</ResponseField>

## Related APIs

* [Kling Video Overview](./overview)
* [Kling Video Generation](./generation)
