AI Text Detection

Analyse whether text was written by a human or generated by an LLM such as ChatGPT, Claude, or Gemini. Long text is automatically chunked for accuracy.

POST /ai-text/detect

Authentication

Bearer token in the Authorization header.

Request

Content-Type: application/json
FieldTypeRequiredDescription
textstringRequiredThe text to analyse. Long text is automatically chunked into ~450-token segments.

Response

FieldTypeDescription
scorenumberProbability the text is AI-generated (0.0 – 1.0).
is_aibooleanWhether the text is classified as AI-generated.
verdictstringHuman-readable verdict: "human", "likely_human", "uncertain", "likely_ai", or "ai".

Example

Request

curl -X POST https://api.cacuda.com/ai-text/detect \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "The quick brown fox jumps over the lazy dog."}'

Response 200 OK

{
  "score": 0.12,
  "is_ai": false,
  "verdict": "human"
}

Error Codes

CodeDescription
400Missing or empty text field.
401Missing or invalid API key.
402Insufficient credits.
503Detection service unavailable.

Notes

Text longer than ~450 tokens is automatically split into chunks. Each chunk consumes one credit.

Try it in the scanner

Test this endpoint interactively with real data. No code required.

Open Scanner