---
title: "Gliner2 Async"
method: POST
path: "/v1/gliner-2/async"
tags: ["gliner"]
---

# Gliner2 Async

`POST /v1/gliner-2/async`

## Request

- Base URL: `https://api.fastino.ai`
- URL: `https://api.fastino.ai/v1/gliner-2/async`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/docs/v1/gliner-2/async/post.ts> (a function with typed inputs; its response is checked against the schema)

Submit large GLiNER-2 request for async processing.

Use this endpoint when processing >1M tokens that would exceed the 30-second
timeout. Returns immediately with a job_id; poll GET /gliner-2/jobs/{job_id}.
With Zero Data Retention, the text is never stored and the result is deleted on
its first read, or 24 hours after the job finishes if it is never read.

## Request body

- AsyncGlinerRequest: Request for async GLiNER-2 processing.
  - `format_results` boolean, nullable
  - `include_confidence` boolean, nullable
  - `include_spans` boolean, nullable
  - `schema` union, required: Extraction schema. The flat ``list[str]`` of entity labels is deprecated; use the unified dict shape (``entities`` / ``classifications`` / ``structures`` / ``relations``) for forward compatibility. Deprecated submissions emit ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers.
    - string[]
    - object
  - `task` string, nullable: **Deprecated** legacy task hint. One of: 'extract_entities', 'classify_text', 'extract_json', 'schema'. Omit for the unified GLiNER2 path. Submitting a legacy task value still succeeds but the response carries ``Deprecation: true`` and a ``Sunset`` header.
  - `text` union, required
    - string
    - string[]
  - `threshold` number, nullable

## Response `202`

Successful Response

- AsyncGlinerResponse: Response from async job submission.
  - `estimated_tokens` integer, required
  - `job_id` string, required
  - `message` string, required
  - `status` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-28** `54da122a2879`: 1 info
  - api operation id `gliner2_async_gliner_2_async_post` removed and replaced with `gliner2_async_v1_gliner_2_async_post`
- **2026-09-24** `5bf78b191621`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/changes/v1/gliner-2/async/post.md)

---

[API](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api.md) - [All operations](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/revisions/81465e18c1d2?raw)
