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

# 查询结果

> 查询 Grok 视频任务状态与结果。

**路径：** `GET https://api.omniall.ai/v1/videos/{task_id}`

完成后响应中会包含视频 URL（如 `url` / `video.url`）。



## OpenAPI

````yaml zh-CN/openapi/grok-video.yaml GET /v1/videos/{task_id}
openapi: 3.1.0
info:
  title: Omniall AI — Grok 生视频
  version: 1.0.0
  description: >-
    Grok Imagine 异步创建视频。


    **路径：** `POST https://api.omniall.ai/v1/videos`


    创建成功后用返回的 `id` 轮询 `GET /v1/videos/{task_id}`。


    模型 ID
    以[模型广场](https://omniall.ai/pricing)为准。常用：`grok-imagine-video-1.5-preview`、`grok-imagine-video`；亦可有
    `grok-video-1.5-pro`、`grok-video-1.5-max` 等变体（以你账号开通为准）。


    鉴权：`Authorization: Bearer sk-...`
servers:
  - url: https://api.omniall.ai
security: []
paths:
  /v1/videos/{task_id}:
    get:
      tags:
        - Grok video
      summary: 查询结果
      description: |-
        查询 Grok 视频任务状态与结果。

        **路径：** `GET https://api.omniall.ai/v1/videos/{task_id}`

        完成后响应中会包含视频 URL（如 `url` / `video.url`）。
      operationId: grokGetVideo
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            example: video_abc123
          description: 创建接口返回的任务 ID。
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API Key，例如 `Bearer sk-...`。
      responses:
        '200':
          description: 任务状态。
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  progress:
                    type: integer
                  url:
                    type: string
                    description: 完成后的视频地址。
                  video:
                    type: object
                    properties:
                      url:
                        type: string
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      code:
                        type: string
        '401':
          description: 未授权
        '404':
          description: 任务不存在

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.