Inference GLiNER2-PII in Pioneer
POST /v1/chat/completions
Runs GLiNER2-PII over the supplied messages and returns the entities defined in schema. Pioneer exposes an OpenAI-compatible endpoint at https://api.pioneer.ai/v1, so you call GLiNER2-PII through the standard chat completions route using the model ID fastino/gliner2-privacy-filter-PII-multi.
Request body
The GLiNER2-PII model ID:
fastino/gliner2-privacy-filter-PII-multi.The text to scan for PII, in standard OpenAI chat format.
The extraction schema. Contains an
entities array listing the PII types to detect. Pass any subset of the 42 supported types (see the label table below). The example detects person, email, and phone_number.Return a confidence score for each detected entity. Set to
true in the example.Return the character spans for each detected entity. Set to
true in the example.Example: PII detection
This request detects three entity typesperson, email, and phone_number in a single user message.
What GLiNER2-PII detects
GLiNER2-PII recognizes 42 fine-grained PII entity types, organized into seven groups.| Group | Entity types |
|---|---|
| Person / names | person, full_name, first_name, middle_name, last_name, date_of_birth |
| Contact / address | email, phone_number, address, street_address, city, state_or_region, postal_code, country |
| Government / tax IDs | government_id, national_id_number, passport_number, drivers_license_number, license_number, tax_id, tax_number |
| Banking / payment | bank_account, account_number, routing_number, iban, payment_card, card_number, card_expiry, card_cvv |
| Digital identity | username, ip_address, account_id, sensitive_account_id |
| Secrets / credentials | password, secret, api_key, access_token, recovery_code |
| Sensitive dates | sensitive_date, document_date, expiration_date, transaction_date |