Skip to navigation
GPTZero
GPTZero · Tools & Agents
POST /v1/detect

Deep-learning detector that flags portions of text likely generated by AI versus human, classifying content as entirely human, AI, or mixed.

At a glance

FieldValue
Model idgptzero
Model release date-
Input modalitiesText, Document
Output modalitiesText
Context window-
Weight precision-
Featuresai_detection, classification
Native inferenceNo
NewNo
Supported endpointsPOST /v1/detect, POST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/gptzero:generateContent
Alternate model idsgptzero/detect

Pricing

ChargeSpecRate
Text Scanper 1,000 words$0.39

Example request

curl https://api.empiriolabs.ai/v1/detect \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "gptzero", "input": "The quick brown fox jumps over the lazy dog.", "scan_type": "ai_detection"}'

Parameters

ParameterTypeRequiredDefaultDescription
inputstringno-Text to analyze
scan_typeenumno"ai_detection"AI Detection: detect AI-generated text. · Allowed: ai_detection
model_versionstringno"__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. Same as version.
file_urlstringno-URL of a document to scan instead of pasting text. Supported: PDF, DOC, DOCX, RTF, ODT, TXT, MD (max 25 MB). Provide either input (text) or file_url, not both.
versionstringno"__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. Same as model_version.
ai_thresholdnumberno0.7Formatted reports only: the probability at which a sentence is labeled AI-generated. Lower = more sensitive. Range 0.10 to 0.99. It does not change the detection scores. · Range: 0.1 – 0.99
max_sentencesintegerno15Formatted reports only: the maximum number of sentences shown in the per-sentence breakdown. · Range: 1 – 50
disable_formattingbooleannofalseReturn the detection result as JSON instead of the formatted Markdown report.

Notes

File limits

  • One document per request, sent as file_url
  • Max 25 MB
  • Each document truncated to 50,000 characters

Supported formats

  • PDF, DOC, DOCX, RTF, ODT, TXT, MD

Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/gptzero.