> ## 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 作业

> 当输入超过一百万 token 或可能超过同步请求超时时间时，提交超大型 GLiNER-2 输入以进行异步处理。

`POST /v1/gliner-2/async`

提交超大型 GLiNER-2 输入以进行异步处理。当输入超过一百万 token，或处理时间可能超过同步
请求超时时间时，请使用此端点。

此页面上的 OpenAPI 面板是所有请求字段和 `202` 响应字段的事实来源。请求使用与
[`POST /v1/gliner-2`](/cn/api-reference/inference/gliner-2) 相同的原生 GLiNER schema。

## 请求示例

```bash theme={null}
curl -X POST "https://api.fastino.ai/v1/gliner-2/async" \
  -H "X-API-Key: $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "A very large document to process asynchronously...",
    "schema": {
      "entities": [
        {"name": "person", "description": "named individual"},
        {"name": "organization", "description": "business or institution"}
      ]
    },
    "threshold": 0.5,
    "include_confidence": true,
    "include_spans": true
  }'
```

`text` 也可以是字符串数组。请省略已弃用的 `task` 字段；统一 schema 会确定提取、分类、
结构或关系操作。

## 已接受响应

该端点会立即返回 HTTP `202`。以下示例负载缩短了 `message`；服务会返回包含所返回作业 ID
的具体轮询路径。

```json theme={null}
{
  "job_id": "3f08a17f-777a-4aa6-8ec5-879df37775a8",
  "status": "accepted",
  "estimated_tokens": 1284307,
  "message": "Job queued. ..."
}
```

保存 `job_id`，然后使用同一 API 密钥轮询
[`GET /v1/gliner-2/jobs/{job_id}`](/cn/api-reference/inference/gliner-2-job-status)。
作业的作用范围限定于已认证的用户。


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