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": "The application is built with Python 3.11 and uses PostgreSQL 15 for storage. It runs on Kubernetes with Docker containers and communicates via gRPC.",
  "model": "gliner2-base-v1"
}
'
{
  "entities": {
    "programming language": [
      "Python 3.11"
    ],
    "database": [
      "PostgreSQL 15"
    ],
    "technology": [
      "Kubernetes",
      "Docker",
      "gRPC"
    ],
    "protocol": [
      "gRPC"
    ]
  }
}

Authorizations

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

Body

application/json
model
string
default:gliner2-base-v1
required

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

Allowed value: "gliner2-base-v1"
Example:

"gliner2-base-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. Three use cases are supported:

  • ner — extract entities for the given labels.
  • json — extract structured fields defined by a schema.
  • classification — assign labels from candidate sets defined by a schema.

Response

Success

The response is of type object.