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

> ## Agent Instructions
> Use https://docs.fastino.ai/llms.txt to discover and navigate pages. Use https://docs.fastino.ai/llms-full.txt when you need the complete documentation corpus. Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing routes. For GLiDE decision inference, call POST https://api.fastino.ai/v1/systemone with model fastino/GLiDE. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# 获取异步 GLiNER-2 作业状态

> 通过 job_id 轮询 GLiNER-2 异步作业，直到其完成或失败，并附有处理中、已完成和错误响应示例。

`GET /v1/gliner-2/jobs/{job_id}`

轮询 GLiNER-2 异步作业，直到其完成或失败。请使用提交该作业时所用的同一 API 密钥；作业的
作用范围限定于已认证的用户。

此页面上的 OpenAPI 面板是 `job_id` 路径参数和所有响应字段的事实来源。

## 请求示例

```bash theme={null}
curl "https://api.fastino.ai/v1/gliner-2/jobs/3f08a17f-777a-4aa6-8ec5-879df37775a8" \
  -H "X-API-Key: $FASTINO_API_KEY"
```

## 处理中响应

当 `status` 为 `pending` 或 `processing` 时，请继续轮询：

```json theme={null}
{
  "job_id": "3f08a17f-777a-4aa6-8ec5-879df37775a8",
  "status": "pending",
  "result": null,
  "error": null,
  "token_usage": 1284307,
  "created_at": "2026-10-07T22:10:00+00:00",
  "completed_at": null
}
```

## 完成响应

当 `status` 为 `complete` 时停止轮询。`result` 遵循提交请求中的 schema：

```json theme={null}
{
  "job_id": "3f08a17f-777a-4aa6-8ec5-879df37775a8",
  "status": "complete",
  "result": {
    "entities": [
      {
        "text": "Apple",
        "label": "organization",
        "score": 0.99,
        "start": 0,
        "end": 5
      }
    ]
  },
  "error": null,
  "token_usage": 1284307,
  "created_at": "2026-10-07T22:10:00+00:00",
  "completed_at": "2026-10-07T22:13:42+00:00"
}
```

## 错误响应

已结束的作业可能会报告 `status: "error"`，并在 `error` 中附带一条消息：

```json theme={null}
{
  "job_id": "3f08a17f-777a-4aa6-8ec5-879df37775a8",
  "status": "error",
  "result": null,
  "error": "The input could not be processed",
  "token_usage": 1284307,
  "created_at": "2026-10-07T22:10:00+00:00",
  "completed_at": "2026-10-07T22:10:08+00:00"
}
```

未知作业或属于其他用户的作业会返回 `404`。


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