Skip to main content
POST
/
responses
curl --request POST \
  --url https://api.zerogpu.ai/v1/responses \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-project-id: <api-key>' \
  --data '
{
  "input": "Hello Jane Doe, this is John Doe reaching out regarding my recent order. If you need any additional details, feel free to call me at 415-555-0134 during business hours. You can also email me at [email protected], and I’ll respond as soon as possible. Looking forward to your update on the issue.",
  "model": "gliner-multi-pii-v1"
}
'
{
  "redacted_text": "Hello [PERSON], this is [PERSON] reaching out regarding my recent order. If you need any additional details, feel free to call me at [PHONE_NUMBER] during business hours. You can also email me at [EMAIL], and I will respond as soon as possible.",
  "entities": [
    {
      "text": "Jane Doe",
      "label": "person",
      "start": 6,
      "end": 14,
      "score": 0.9982
    },
    {
      "text": "John Doe",
      "label": "person",
      "start": 24,
      "end": 32,
      "score": 0.9981
    },
    {
      "text": "415-555-0134",
      "label": "phone number",
      "start": 133,
      "end": 145,
      "score": 0.9725
    },
    {
      "text": "[email protected]",
      "label": "email",
      "start": 194,
      "end": 208,
      "score": 0.9812
    }
  ],
  "entities_by_label": {
    "person": [
      "Jane Doe",
      "John Doe"
    ],
    "phone number": [
      "415-555-0134"
    ],
    "email": [
      "[email protected]"
    ]
  }
}

Authorizations

x-api-key
string
header
required
x-project-id
string
header
required

Body

application/json
model
string
default:gliner-multi-pii-v1
required

Model identifier (fixed for this playground). Use request examples to change use cases.

Allowed value: "gliner-multi-pii-v1"
Example:

"gliner-multi-pii-v1"

input
string<textarea>
required

Multi-line text or document content to send to the model.

Required string length: 1 - 131072
metadata
object

Use-case options for the model. Two use cases are supported:

  • extract-pii — return detected PII entities without altering the source text.
  • redact — mask detected PII in-line in the returned redacted_text (e.g. [PERSON], [EMAIL]).

Response

Success

The response is of type object.