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

# Gemini 系列（GG）图像任务查询

> 使用 `GET /v1/videos/{task_id}` 查询 GG 图像任务状态和结果。

# Gemini 系列（GG）图像任务查询

## 方法与路径

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

## 请求示例

<RequestExample>
  ```bash theme={null}
  curl -X GET https://magic666.top/v1/videos/task_img_abc123 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

## 返回示例

<ResponseExample>
  ```json theme={null}
  {
    "id": "task_img_abc123",
    "task_id": "task_img_abc123",
    "object": "image.generation.task",
    "status": "FINISH",
    "model": "GG-3.1",
    "progress": 100,
    "output": {
      "file_infos": [
        {
          "file_url": "https://example.com/result-1.png",
          "width": 1024,
          "height": 1024
        }
      ]
    }
  }
  ```
</ResponseExample>

## 返回字段

<ResponseField name="status" type="string">
  任务状态。常见值包括 `QUEUED`、`RUNNING`、`FINISH`、`FAILED`。
</ResponseField>

<ResponseField name="output.file_infos[].file_url" type="string">
  任务完成后的图片 URL。
</ResponseField>

## 推荐阅读

* [Gemini 系列（GG）图像任务概览](/api-reference/images/gemini-gg/overview)
* [Gemini 系列（GG）图像生成提交](/api-reference/images/gemini-gg/generation)
