POST /api/v1/detect/text

AI Text Detection API

One POST request tells you whether a piece of writing came from ChatGPT, Claude, Gemini or a human — and gives you a score for every single sentence, so you can show your users what was flagged instead of a number they have to trust.

1,000 free credits · no credit card · key is ready the moment you verify your email

POST/api/v1/detect/text
curl -X POST https://www.wasitaigenerated.com/api/v1/detect/text \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "The implementation of machine learning..."
  }'
200 OK — application/json
{
  "isAI": true,
  "confidence": 0.92,
  "model": "tropa-1",
  "patterns": ["AI patterns detected"],
  "analysis": {
    "likelihood": "AI-generated",
    "reasoning": "Overall AI score: 92.3%"
  },
  "sentences": [
    {
      "text": "The implementation of machine learning...",
      "isAI": true,
      "confidence": 0.95,
      "scores": { "ai": 0.95, "human": 0.05 }
    },
    {
      "text": "I rewrote this part myself last night.",
      "isAI": false,
      "confidence": 0.81,
      "scores": { "ai": 0.19, "human": 0.81 }
    }
  ]
}

Built to sit inside your product

Not a dashboard you have to send your users to — an endpoint your backend calls

🔍

Sentence-level scores

Every response includes a per-sentence breakdown. Highlight the flagged passages in your own UI — reviewers act on evidence, not on a percentage.

🧠

tropa-1 model

Our own detection model, retrained as new LLMs ship. Read the model write-up before you integrate.

📦

No SDK required

JSON in, JSON out, Bearer auth. If your language can make an HTTP request, the integration is about fifteen lines.

💳

Pay per word

1 credit per word — a 500-word essay costs 500 credits. No seat licences, no minimum contract, and one-time credits never expire.

Integrate in minutes

Copy, paste your key, ship it

curl -X POST https://www.wasitaigenerated.com/api/v1/detect/text \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "The implementation of machine learning..."
  }'

Request body

  • content — string, required. The text to analyse. text is accepted as an alias.

Response fields

  • isAI — boolean verdict for the whole document.
  • confidence — 0–1, how strongly the verdict holds.
  • model — the detection model that produced the result.
  • sentences[] — per-sentence text, verdict and ai/human scores.

What teams build with it

🎓

LMS & EdTech

Screen every submission on upload and surface the flagged sentences to the instructor inside your existing grading view.

📰

Publishing platforms

Check freelance submissions against your editorial policy before they reach a human editor's queue.

💼

ATS & recruiting

Flag cover letters and written assessments that came out of a chatbot, without adding a step to your recruiters' workflow.

🛒

Marketplaces

Catch mass-generated reviews and listing descriptions at write time, before they dilute the trust signal your buyers rely on.

✍️

Content agencies

Run every writer deliverable through the API as a QA gate and attach the score to the delivery record.

🏛️

Compliance & disclosure

Support AI-disclosure requirements by logging a detection result alongside the content your organisation publishes.

Error responses

Everything is a JSON body with an error field — handle these and you are done

400 Bad Request
content missing, or not a string.
401 Unauthorized
Missing or invalid Bearer token.
402 Payment Required
Not enough credits. Response includes required and available.
403 Forbidden
Your plan is website-only. Upgrade to Unlimited API + Website.
413 Payload Too Large
Text too long — split it into chunks.
500 Server Error
Retry with backoff, or contact support.

Text detection pricing

1 credit per word. A 500-word essay costs 500 credits.

Free

1,000

credits on email verification

≈ 1,000 words of testing. No card required.

MOST POPULAR

Credit packs

$5 – $19.99

one-time, never expires

40,000 credits for $5, or 200,000 for $19.99 — roughly 200,000 words.

Unlimited API

$119/mo

no per-word cost

Unlimited calls, whitelabel PDF reports, bulk processing.

AI text detection API FAQ

Ready to add AI text detection?

Create an account, verify your email, and your API key is waiting in the dashboard.