Skip to main content
POST
/
api
/
stealthify
/
detect
AI Detector
curl --request POST \
  --url https://stealthgpt.ai/api/stealthify/detect \
  --header 'Content-Type: application/json' \
  --header 'api-token: <api-token>' \
  --data '
{
  "text": "<string>"
}
'
{
  "howLikelyToBeDetected": 123,
  "wordsSpent": 123,
  "remainingCredits": 123,
  "billingMode": "<string>",
  "meteredChargedCredits": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.stealthgpt.ai/llms.txt

Use this file to discover all available pages before exploring further.

The /api/stealthify/detect endpoint runs the same AI-detection backend that powers the StealthGPT AI Detector on the website. Submit a piece of text and receive a 0-100 score indicating how likely it is to be flagged as AI-generated by detection tools.

Request Parameters

api-token
string
required
Your unique API authentication token. You can find this in your StealthGPT dashboard under the API Key tab.
text
string
required
The text to analyze. Maximum 3,000 words per request.

Response

howLikelyToBeDetected
number
A score from 0 to 100 indicating how likely the text is to be flagged as AI-generated by detection tools. Higher means more likely to be flagged.
wordsSpent
number
Number of words charged for this request (equal to the input word count).
remainingCredits
number
Number of prepaid words remaining in your account after this request.
billingMode
string
Whether the request was billed from prepaid words (prepaid) or pay-as-you-go metered billing (payg).
meteredChargedCredits
number
If billed via pay-as-you-go, the number of words added to metered usage for this request (0 when billed from prepaid).

Example Request

curl --location 'https://stealthgpt.ai/api/stealthify/detect' \
    --header 'api-token: YOUR_API_TOKEN' \
    --header 'Content-Type: application/json' \
    --data '{
        "text": "Renewable energy sources, including solar and wind power, represent inexhaustible resources unlike finite fossil fuels."
    }'

Example Response

{
  "howLikelyToBeDetected": 87,
  "wordsSpent": 16,
  "remainingCredits": 984984,
  "billingMode": "prepaid",
  "meteredChargedCredits": 0
}

Score Interpretation

The howLikelyToBeDetected score is a probability expressed on a 0-100 scale.
Score rangeInterpretation
0 - 30Likely human-written. Low risk of being flagged as AI.
31 - 70Mixed signals. May be partially AI-generated or heavily edited.
71 - 100Likely AI-generated. High risk of being flagged by detectors.
Detection scores are probabilistic. Short inputs (under ~50 words) and highly templated text (e.g. resumes, legal boilerplate) can produce noisy results regardless of how the text was written.

Pairing With Humanizer

A common workflow is to humanize text with /api/stealthify and then verify the result with /api/stealthify/detect:
const stealthified = await fetch('https://stealthgpt.ai/api/stealthify', {
  method: 'POST',
  headers: {
    'api-token': 'YOUR_API_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ prompt: sourceText, rephrase: true }),
}).then(r => r.json())

const detection = await fetch('https://stealthgpt.ai/api/stealthify/detect', {
  method: 'POST',
  headers: {
    'api-token': 'YOUR_API_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ text: stealthified.result }),
}).then(r => r.json())

console.log('humanizer score:', stealthified.howLikelyToBeDetected)
console.log('independent detector score:', detection.howLikelyToBeDetected)
The howLikelyToBeDetected field returned by /api/stealthify is the same metric — calling /api/stealthify/detect afterwards is useful when you need to score arbitrary text that did not pass through the humanizer.

Usage Notes

  • Billing is input words per request (1 charged word per input word). See Pricing for rates.
  • Inputs over 3,000 words return 400 Bad Request. Split long documents into multiple calls and average the scores client-side if needed.
  • The detector is language-agnostic; non-English input is supported.