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
Pass your EmpirioLabs API key as a bearer token. The Anthropic-style
x-api-key header is also accepted on every endpoint.
Request
Detection model id, for example gptzero.
Text or document to analyze (max 50,000 chars per document, 50 docs / 15 MB total per request).
What to check: ai_detection (the default).
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.
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.
