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

# Get Sora Video Task

> <ul><li>OpenAI-compatible video task status query endpoint.</li><li>Returns detailed status information for a video task.</li></ul>

<RequestExample>
  ```bash cURL theme={null} theme={null}
  curl --request GET \
    --url 'https://api.elkapi.com/v1/videos/task_1234567890' \
    --header 'Authorization: Bearer <token>'
  ```

  ```python Python theme={null} theme={null}
  import requests

  url = "https://api.elkapi.com/v1/videos/task_1234567890"
  headers = {
      "Authorization": "Bearer <token>"
  }

  response = requests.request("GET", url, headers=headers)
  print(response.json())
  ```

  ```javascript JavaScript theme={null} theme={null}
  const url = "https://api.elkapi.com/v1/videos/task_1234567890";

  const headers = {
    "Authorization": "Bearer <token>"
  };

  const response = await fetch(url, { method: "GET", headers });
  console.log(await response.json());
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null} theme={null}
  {
    "id": "id",
    "object": "object",
    "model": "sora-2",
    "status": "status",
    "progress": 1,
    "created_at": 1,
    "seconds": "seconds"
  }
  ```

  ```json 404 theme={null} theme={null}
  {
    "error": {
      "message": "message",
      "type": "type",
      "param": "param",
      "code": "code"
    }
  }
  ```
</ResponseExample>

## Authorizations

<ParamField header="Authorization" type="string" required>
  All endpoints require Bearer Token authentication.

  Add it to the request headers:

  ```
  Authorization: Bearer YOUR_API_KEY
  ```
</ParamField>

## Path Parameters

<ParamField path="task_id" type="string" required>
  Video task ID
</ParamField>

## Response

<ResponseField name="id" type="string" />

<ResponseField name="object" type="string" />

<ResponseField name="model" type="string" default="sora-2">
  Example: `sora-2`
</ResponseField>

<ResponseField name="status" type="string" />

<ResponseField name="progress" type="integer" />

<ResponseField name="created_at" type="integer" />

<ResponseField name="seconds" type="string" />
