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

# 视频任务查询

> 接口与 MiniMax 官网一致；返回状态与字段以官网为准

* 路径 `/minimaxi/v1/query/video_generation`
* 与官网一致：请求参数与返回字段与 MiniMax 官网保持一致。
* `task_id` 参数同时接受上游原始任务 ID 和平台 `platform_id`（`video_<ULID>`）。

请求示例

```bash theme={null}
curl --request GET \
  --url 'https://models.phanedge.cloud/minimaxi/v1/query/video_generation?task_id=106916112212032' \
  --header 'Authorization: Bearer <token>'
```

示例响应（官方）

```json theme={null}
{
  "task_id": "176843862716480",
  "status": "Success",
  "file_id": "176844028768320",
  "video_width": 1920,
  "video_height": 1080,
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}
```

字段要点

* `status`：任务状态；常见为 `Queueing`/`Processing`/`Success`/`Failed`（以官网为准）。
* `file_id`：在 `Success` 时返回；用于后续 `files/retrieve` 获取下载地址，或 `files/retrieve_content` 直下。
* `video_width`/`video_height`：成品视频宽高（部分模型或分辨率返回）。
* `base_resp.status_code`：0 表示成功；非 0 为错误，`status_msg` 提示原因。


## OpenAPI

````yaml GET /minimaxi/v1/query/video_generation
openapi: 3.0.3
info:
  title: PhanEdge Core API
  version: '1.0'
  description: >-
    Core OpenAI-compatible and model-family endpoints used by the PhanEdge user
    docs.
servers:
  - url: https://models.phanedge.cloud
security:
  - BearerAuth: []
paths:
  /minimaxi/v1/query/video_generation:
    get:
      tags:
        - MiniMaxi
      summary: Query MiniMaxi video task
      parameters:
        - name: task_id
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          $ref: '#/components/responses/JsonObject'
components:
  responses:
    JsonObject:
      description: OK
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericObject'
  schemas:
    GenericObject:
      type: object
      additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer <token>'

````