Skip to main content
POST

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.