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

# 查询视频结果-官转

> 查询视频生成结果



## OpenAPI

````yaml openapi/cn/grok_video.json GET /grok/v1/videos/{request_id}
openapi: 3.1.0
info:
  title: Grok Video Official API
  version: 1.0.0
  description: Grok 官方视频生成 API，支持文生视频、图生视频和视频扩展。目前支持 grok-imagine-video 模型。输入视频最大 15 秒。
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /grok/v1/videos/{request_id}:
    get:
      description: 查询视频生成结果
      parameters:
        - name: request_id
          in: path
          required: true
          schema:
            type: string
          description: 由上一次视频生成请求返回的请求ID
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: 视频生成状态：done-已完成，processing-处理中，failed-失败
                    example: done
                  video:
                    type: object
                    description: 视频信息
                    properties:
                      url:
                        type: string
                        description: 生成的视频文件访问链接
                        example: https://cdn.ttapi.io/video/xxx.mp4
                      duration:
                        type: number
                        description: 视频时长（秒）
                        example: 10
                      respect_moderation:
                        type: boolean
                        description: 是否通过内容审核
                        example: true
                  model:
                    type: string
                    description: 使用的模型名称
                    example: grok-imagine-video
                  usage:
                    type: object
                    description: 用量信息
                    properties:
                      cost_in_usd_tocks:
                        type: number
                        description: 本次请求消耗的费用（单位：美分）
                  progress:
                    type: number
                    description: 当前任务进度百分比（0-100），仅在非done状态时有效
                    example: 100
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  responses:
    400Response:
      description: 参数错误
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: '"prompt" cannot be empty.'
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: 授权失败
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Wrong TT-API-KEY or email is not activated.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        请前往 <a href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台</a>
        获取 API 密钥。

````