Skip to navigation

Classify or detect text

Specialized endpoint for classification-style models that don’t fit chat / search / image. Currently powers GPTZero (AI text detection). Each model’s scan_type enum controls the detection mode. see the per-model docs for the full parameter surface.

Note: GPTZero is also reachable via POST /v1/chat/completions and POST /v1/responses: pass the text on the message body and the gateway adapts the call.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Request

This endpoint expects an object.
modelstringRequired

Detection model id, for example gptzero.

inputstringRequired

Text or document to analyze (max 50,000 chars per document, 50 docs / 15 MB total per request).

scan_typeenumOptionalDefaults to ai_detection

What to check: ai_detection (the default).

Allowed values:
versionstringOptionalDefaults to __latest__

The GPTZero model version to scan with. Leave as __latest__ to use the newest version. A version that is unknown or no longer available returns a 400 error that lists the versions you can use.

multilingualbooleanOptionalDefaults to falseDeprecated

Has no effect. The language is detected automatically, and non-English text is scanned with the multilingual model.

Response

Detection result with per-sentence breakdown and overall scores.

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error