Request
The text below is German. The labels stay in English.Request schema
Response
GLiNER returns the result as a JSON string inchoices[0].message.content. Parsed, it looks like this. Measured against https://api.fastino.ai; confidence values vary slightly between calls.
Response schema
Act on the answer
Adapt it
- Write descriptions that separate similar labels, such as
companyversusgovernment agency. A vague label such asproductcan pull in near misses like contract names. - Raise
thresholdfor precision, or lower it for recall. Tune it on a labeled sample. - Keep label names stable. Downstream code reads them as keys.
- Need labels to be fixed records instead of loose spans? Use
schema.structures.
Call GLiNER
Every GLiNER schema type and how to read its result.
Chat Completions API reference
Every field, limit, and error for
POST /v1/chat/completions.
