Most AI tasks no longer need a frontier model Read launch post

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 SIEClient
​
client = 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

Next to the other relation models
Model FewRel, F1 Time per request Serverless price Size
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
All 4 relation models

Measured on public datasets

Measured on public datasets
Dataset F1
CoNLL-2003 Measured internally 0.519
FewRel Measured internally 0.400

Facts

Size
208M parameters
License
Apache-2.0
Reads
Text, up to 512 tokens
Endpoint
extract
Evaluation
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

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
Agent prompt 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

Talk to us

Tell us about your use case and we'll get back to you shortly.

Apply for an inference grant

Free capacity on our hosted cluster for selected projects. Tell us what you run and we reply by email.