v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
gliner

Gliner2 Process

Process text using GLiNER-2 base model via InferenceService.

task is optional — when omitted the unified schema path is used. Legacy task names are still accepted but deprecated.

post/gliner-2

Request body

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

Response

Successful Response

token_usageinteger required