DETECTAI

API Documentation

Programmatic access to DETECTAI. Available on Pro and Enterprise plans.

Authentication

Include your API key in every request using the X-API-Key header.

Generate your API key in Settings → API Access (Pro/Enterprise only).

POST /api/v1/detect/text

Analyze a text sample for AI generation.

Request Body

{ "text": "string (50–10,000 characters)" }

Response

{
  "verdict": "AI" | "HUMAN" | "UNCERTAIN",
  "confidence": 0.94,
  "credits_remaining": 498,
  "processing_time": 1240
}

Code Examples

curl

curl -X POST https://detect-ai-nu.vercel.app/api/v1/detect/text \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "The text you want to analyze goes here..."}'

python

import requests

response = requests.post(
    "https://detect-ai-nu.vercel.app/api/v1/detect/text",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={"text": "The text you want to analyze goes here..."}
)
result = response.json()
print(result["verdict"])  # "AI", "HUMAN", or "UNCERTAIN"

js

const response = await fetch('https://detect-ai-nu.vercel.app/api/v1/detect/text', {
  method: 'POST',
  headers: {
    'X-API-Key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ text: 'The text you want to analyze...' }),
})
const { verdict, confidence } = await response.json()

Rate Limits

PlanMonthly CreditsRate Limit
Pro500/month60 req/min
EnterpriseUnlimited300 req/min