> ## 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. Start managed training (config job) with POST /v1/training/jobs using base_model. For interactive training, native JSON clients use the public operations under /v1/training/jobs and /v1/training/usage. Existing Tinker clients use tinker==0.32.0 with TINKER_BASE_URL=https://api.fastino.ai/v1/training/compat/tinker and TINKER_CREDENTIAL_CMD. Compatibility child routes are private and absent from OpenAPI. Auto Train is private access and has no public route; direct interested users to sales@fastino.ai. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# GLiNER2.5

> Learn when and how to use GLiNER2.5 Multi for multilingual, schema-driven information extraction.

GLiNER2.5 Multi is Fastino's multilingual, multi-task information-extraction model. Use one schema to extract entities, classify text, build structured records, identify relations, and attach attributes to spans.

## When to use GLiNER 2.5

Use GLiNER2.5 Multi when extraction or multilingual coverage is central to the task:

* **Entity extraction** - pull people, organizations, products, locations, or domain-specific entities (medications, dosages, clauses) out of free text, with character offsets and confidence scores.
* **Structured records** - turn "Alice bought apples and Bob bought oranges" into `[{"buyer": "Alice", "item": "apples"}, {"buyer": "Bob", "item": "oranges"}]`, keeping each instance's fields linked.
* **Relation and knowledge-graph extraction** - extract typed entity-relation graphs (`works_for`, `located_in`) for agent memory or a knowledge base.
* **Span attributes** - tag each extracted entity with an attribute, such as per-person sentiment, in the same pass as extraction.
* **Long documents** - process an encoded context of up to 4,096 tokens, with chunking and offset remapping for longer documents.
* **Multiple tasks at once** - combine entities, classification, structures, and relations in a single schema-constrained call instead of chaining several model requests.
* **Consistent outputs** - use constrained classification or joint entity-relation decoding when labels and relation endpoints must agree.

GLiNER2.5 Multi also supports classification. Choose [GLiNER-2.5-Decide](https://docs.fastino.ai/concepts/gliner-2-5-decide.md) when the input is English and classification itself—intent, routing, sentiment, priority, moderation, or scoring—is the primary workload.

## How to use GLiNER 2.5

Call the multilingual checkpoint through Fastino's OpenAI-compatible inference endpoint. Put the text in a user message and describe the task in `schema`:

```bash theme={null}
curl -X POST "https://api.fastino.ai/v1/chat/completions" \
  -H "Authorization: Bearer $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "fastino/gliner2.5-multi-v1",
    "messages": [
      { "role": "user", "content": "Apple CEO Tim Cook unveiled the iPhone 15 Pro in Cupertino." }
    ],
    "schema": {
      "entities": [
        { "name": "person", "description": "named individual" },
        { "name": "organization", "description": "business or institution name" },
        { "name": "product", "description": "named commercial product" },
        { "name": "location", "description": "city, region, or place" }
      ]
    }
  }'
```

Add `classifications`, `structures`, or `relations` keys to the same `schema` to run several tasks over the same text in one call. See the [Inference API](https://docs.fastino.ai/inference/chat-completions.md) reference for the full request and response contract, including structured records and relation schemas.

## Constrained classification with GLiNER2.5 Multi

Use constrained classification when several answers must form one valid decision. Unlike classic `classifications`, which selects each task independently, the constrained decoder searches for a joint assignment that satisfies declared rules.

GLiNER2.5 Multi supports three task shapes:

| Task shape | Selection rule | Typical use |
| - | - | - |
| Single answer | Select exactly one permitted answer | Intent, route, or policy verdict |
| Multiple answers | Select zero or more answers, optionally with minimum and maximum counts | Topics, effects, or detected harms |
| Ordinal | Select exactly one answer from a low-to-high ordered scale | Severity, urgency, or rating |

Each task can include answer descriptions, an instruction, and labeled examples. These fields give the encoder context for scoring while keeping output restricted to the declared answers.

Constraints connect those task results:

| Constraint | Meaning |
| - | - |
| Implication | Selecting one answer requires another answer or condition |
| Exclusion | Two answers cannot both be selected |
| Cardinality | Require or limit how many answers a task selects |
| Ordinal bound | Require an exact, minimum, maximum, or bounded level |

The result contains each task's selected answer, answer probabilities, confidence, and `_meta.feasible`. Constraints can select a lower-probability answer when the independent top choices would violate a rule. They enforce consistency; they do not increase or recalibrate probabilities or confidence.

For single-answer and ordinal tasks, confidence is the selected answer's probability. For multiple-answer tasks, it is the geometric mean of each selected answer's probability and each unselected answer's complement (`1 - probability`). An empty multiple-answer result without a default has no confidence value.

See the [constrained-classification API example](https://docs.fastino.ai/inference/chat-completions.md#constrained-classification-schema) for the complete hosted request, supported schema fields, constraints, and response.

> [card] [Explore GLiNER2.5](https://fastino.ai/models/gliner2-5)
>
> Read about the architecture, benchmarks, and use cases.

> [card] [GLiNER-2.5-Decide](https://docs.fastino.ai/concepts/gliner-2-5-decide.md)
>
> Use the classification-tuned English model for operational decisions.

> [card] [View the model catalog](https://docs.fastino.ai/concepts/models.md)
>
> Browse Fastino models and their model IDs.

> [card] [Inference API reference](https://docs.fastino.ai/inference/chat-completions.md)
>
> Full request and response contract, including structured records and relations.


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