Classify or detect text

Specialized endpoint for classification-style models that don't fit chat / search / image. Currently powers GPTZero (AI text detection, bibliography scan, source analysis). 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
inputstringRequired

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

scan_typeenumOptionalDefaults to ai_detection
Allowed values:
multilingualbooleanOptionalDefaults to false

Enable multilingual model (FR / ES on top of EN).

versionstringOptionalDefaults to __latest__

Response

Detection result with per-sentence breakdown and overall scores.