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

# Veo Task Query

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

# Veo Task Query

OpenAI-style query entry point. If the task was submitted via `POST /v1/video/create`, please use [Query Task](./unified-query).

Veo series submissions are also queried via `GET /v1/videos/{task_id}`. The external response remains an OpenAI-style `video` object.

* The query path is `GET /v1/videos/{task_id}`.
* After the task is completed, the result can usually be read from `video_url` or the proxy content address.
* The routing layer is still handled uniformly by `controller.RelayTaskFetch`.

## Method and Path

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

## Request Example

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

  ```python theme={null}
  import requests

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

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

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

## Response Example

<ResponseExample>
  ```json 200 - Processing theme={null}
  {
    "id": "video_abc123",
    "object": "video",
    "model": "veo_3_1-fast",
    "status": "processing",
    "progress": 50,
    "created_at": 1735689600,
    "completed_at": 0,
    "expires_at": 1735776000,
    "seconds": "8",
    "size": "720x1280",
    "remixed_from_video_id": "",
    "error": {
      "message": "",
      "code": ""
    },
    "video_url": ""
  }
  ```

  ```json 200 - Completed theme={null}
  {
    "id": "video_abc123",
    "object": "video",
    "model": "veo_3_1-fast",
    "status": "completed",
    "progress": 100,
    "created_at": 1735689600,
    "completed_at": 1735689900,
    "expires_at": 1735776000,
    "seconds": "8",
    "size": "720x1280",
    "remixed_from_video_id": "",
    "error": {
      "message": "",
      "code": ""
    },
    "video_url": "https://example.com/video.mp4"
  }
  ```
</ResponseExample>

## Authentication

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

## Path Parameters

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

## Response

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

<ResponseField name="object" type="string">
  Always `video`.
</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.
</ResponseField>

<ResponseField name="seconds" type="string">
  Output duration.
</ResponseField>

<ResponseField name="size" type="string">
  Output dimensions.
</ResponseField>

<ResponseField name="video_url" type="string">
  Video result URL.
</ResponseField>

## Related Endpoints

* [Veo Video Overview](./overview)
* [Veo Video Generation](./generation)
* [Video remix](./remix)
* [Query Task (Unified Video)](./unified-query)
