# 知格科技 API 文档

通过统一的 API 接入对话、图片与视频生成，可用于应用开发及智能体工具对接。

- 文档地址：[API 文档](https://zhigekeji.com/docs)
- Base URL：`https://zhigekeji.com/api/v1`
- 认证方式：`Authorization: Bearer <API_KEY>`
- JSON 请求使用 `Content-Type: application/json`
- 在[控制台创建 API Key](https://zhigekeji.com/console/api-keys)，示例中的密钥和素材地址均需自行替换。

## 批量视频状态查询

一次查询 1～100 个任务，适合画布同时轮询多个视频节点。任务 ID 必须为整数且不能重复。

```http
POST https://zhigekeji.com/api/v1/videos/generations/status/batch
Authorization: Bearer sk-xxxx...
Content-Type: application/json

{
  "task_ids": [6601, 6602, 6603]
}
```

```json
{
  "data": [
    {
      "created": 1786586400,
      "task_id": "6601",
      "status": "completed",
      "data": [{"url": "https://host/view?filename=video_6601.mp4"}],
      "completed_at": 1786586730
    },
    {
      "created": 1786586450,
      "task_id": "6602",
      "status": "processing"
    }
  ],
  "missing_task_ids": ["6603"]
}
```
