gliner

Gliner2 Async

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.

post/v1/gliner-2/async

Request

Request body

format_resultsboolean nullable
include_confidenceboolean nullable
include_spansboolean nullable
taskstring 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.

thresholdnumber nullable

Response

Successful Response

estimated_tokensinteger required
job_idstring required
messagestring required
statusstring required

Changes