Use extraction models to turn free-form text into structured JSON or labeled spans. For example: contact blocks from email signatures, technologies from product descriptions, or PII from user-submitted content. ZeroGPU routes these requests through the Responses API. Pass model-specific options in theDocumentation Index
Fetch the complete documentation index at: https://docs.zerogpu.ai/llms.txt
Use this file to discover all available pages before exploring further.
metadata object (usecase, schema, labels, and related fields).
Structured field extraction
Usegliner2-base-v1 with metadata.usecase set to json and a schema that describes the fields you want. Each field uses the form name::type::description.
Request
Response
The model returns JSON inoutput[].content[].text. The shape follows your schema. For example, a contact object with the fields you defined. Parse that string with json.loads (Python) or JSON.parse (JavaScript) before passing it to your app.
Named entity extraction
For open-ended labels (not a fixed field list), use the same model withmetadata.usecase set to ner and a labels array:
threshold to trade off precision and recall.
PII extraction
For personally identifiable information, usegliner-multi-pii-v1 with metadata.usecase set to extract-pii:
metadata.usecase redact with mask set to label or another supported mask mode. See the gliner-multi-pii-v1 model page for use-case details.
Tips
inputshape: GLiNER models accept a plain string forinput(as above). Other models may expect a message array. See Responses.- Schema design: Use clear field descriptions in
name::type::description; they guide what the model extracts. - Batch workloads: Extract many documents with batch patterns (parallel requests, per-item error handling).
- Try interactively: Open gliner2-base-v1 or gliner-multi-pii-v1 in the model catalog and use the playground to switch use cases and edit the request body.
- Full walkthrough: See the resume & profile extraction tutorial with a synthetic dataset and batch script.

