gliner2 base v1
An open model that pulls the relations between entities out of a text. fastino/gliner2-base-v1
- Accuracy
0.400
FewRel, F1
- Time per request
Not timed one request at a time
- Serverless price
$0.0929
per 1M tokens
Call it
from sie_sdk import SIEClientclient = SIEClient(api_key="API keysk-sie-…")text = "textNASA launched the mission Artemis I from Florida in 2022, carrying the spacecraft Orion."entities = client.extract( "modelfastino/gliner2-base-v1", {"text": text}, labels=[ "labelorganisation", "labelmission", "labellocation", "labeldate", "labelvehicle", ],)relations = client.extract( "modelfastino/gliner2-base-v1", {"text": text, "metadata": {"entities": entities["entities"]}}, labels=[ "labellaunched", "labellaunched from", "labellaunched in", "labelcarried", ],)print(entities["entities"])print(relations["relations"])import { SIEClient } from '@superlinked/sie-sdk';
const client = new SIEClient(undefined, { apiKey: 'sk-sie-…' });
const text = "NASA launched the mission Artemis I from Florida in 2022, carrying the spacecraft Orion.";
const entities = await client.extract(
'fastino/gliner2-base-v1',
{ text },
{ labels: ["organisation","mission","location","date","vehicle"] },
);
const relations = await client.extract(
'fastino/gliner2-base-v1',
{ text, metadata: { entities: entities.entities } },
{ labels: ["launched","launched from","launched in","carried"] },
);
console.log({ entities: entities.entities, relations: relations.relations });entities=$(curl https://api.superlinked.com/v1/extract/fastino%2Fgliner2-base-v1 \
-H "Authorization: Bearer sk-sie-…" \
-H "Content-Type: application/json" \
-d "{\"items\":[{\"text\":\"NASA launched the mission Artemis I from Florida in 2022, carrying the spacecraft Orion.\"}],\"params\":{\"labels\":[\"organisation\",\"mission\",\"location\",\"date\",\"vehicle\"]}}")
entities_json=$(printf '%s' "$entities" | jq '.items[0].entities')
curl https://api.superlinked.com/v1/extract/fastino%2Fgliner2-base-v1 \
-H "Authorization: Bearer sk-sie-…" \
-H "Content-Type: application/json" \
-d "{\"items\":[{\"text\":\"NASA launched the mission Artemis I from Florida in 2022, carrying the spacecraft Orion.\",\"metadata\":{\"entities\":$entities_json}}],\"params\":{\"labels\":[\"launched\",\"launched from\",\"launched in\",\"carried\"]}}"Build the "Knowledge graph" capability into my app using the Superlinked Inference Engine (SIE).
Context
- SIE is an OpenAI-style inference API. Python SDK: `from sie_sdk import SIEClient`; TypeScript: `@superlinked/sie-sdk`.
- Base URL: https://api.superlinked.com (or my regional endpoint). Auth: Bearer key from env `SIE_API_KEY` (never hard-code it).
- Model: fastino/gliner2-base-v1 (SIE primitive: /extract). Keep the model id configurable.
Task
- Input: a block of text.
- Behaviour: return the entities and the relations between them as a graph
- Use the two /extract calls shown in the SDK snippet: extract entities first, then pass them as item metadata while extracting relations.
Deliverables
- A typed client wrapper, an application-level function for this task, error handling for timeouts/empty input, and unit tests with a stubbed client.
- Wire it into my existing stack (ask me which framework if unclear) and add a short usage example.Next to the other relation models
| Model | FewRel, F1 | Time per request | Serverless price | Size |
|---|---|---|---|---|
| gliner2 base v1 fastino | 0.400 | Not timed | $0.0929 per 1M tokens | 208M |
| GLiNER relex Large knowledgator | Not measured | Not timed | $0.22 per 1M tokens | 467M |
| gliner2 large v1 fastino | 0.435 | Not timed | $0.186 per 1M tokens | 486M |
| glirel large v0 jackboyla | 0.264 | Not timed | Run in your cloud | 467M |
Measured on public datasets
| Dataset | F1 |
|---|---|
| CoNLL-2003 Measured internally | 0.519 |
| Few | 0.400 |
Facts
- Size
- 208M parameters
- License
- Apache-2.0
- Reads
- Text, up to 512 tokens
- Endpoint
-
extract
- Accuracy
- Run on SIE against the public dataset named in each figure
- Prices
- Serverless list prices, effective 10 Nov 2026
Run gliner2 base v1 on Serverless or in your own cloud
SIE Serverless
Task-specific models for your agents, with no GPUs to operate.
- No idle GPUs, pay for what you use
- Fits your stack: SDK, API, CLI, MCP
- Self-host the same open-source engine
- SOC 2 Type 2, US or EU data residency
no credit card required
apply for $500 more
Native Inference
Kubernetes in your own cloud, backed by our engineers.
- Terraform modules for your cloud
- Apache-2.0, same engine as Serverless
- GPU workers scale to zero between jobs
- Separate worker pools for each tenant
Deploy SIE to our AWS account with the superlinked/sie/aws Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Google Cloud project with the superlinked/sie/google Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Azure subscription with the superlinked/sie/azure Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Alibaba Cloud account with the superlinked/sie/alicloud Terraform module. Docs: superlinked.com/docs/deployment. SIE Local
The open-source server on your own machine.
- Runs on your NVIDIA GPU
- One container, no cluster
- Process your data fully offline
- Same SDK and model IDs as Serverless
docker run --gpus all -p 8080:8080 ghcr.io/superlinked/sie-server:latest-cuda12-default