Skip to content
p3n

AI Detection

Paste text and get the probability that a language model wrote it, a verdict in plain words, and the sentences that raised the score.

Use it in your AI assistant

Paste these instructions and your text into Claude, ChatGPT or your agent. The assistant then calls the API and runs the skill for you.

Use p3n AI Detection skill to check whether a text was written by a person or a language model.

If no text or file is given, write 3 paragraphs about the solar system.

Tell me the score, the verdict, and quote the sentences that give it away. Go

https://p3n.si/skills/detect

Who it's for

Anyone who has to judge text they didn't watch being written. Run it after Editorial or Humanize to see whether the rewrite still reads as machine-made.

What you get back

  • ai: a number from 0 (reads as human) to 1 (reads as AI).
  • label: human, ai, ai_edited (written by a model, then edited by a person), humanized (run through a humanizer) or mixed.
  • verdict: one or two sentences saying what the text reads like and why.
  • confidence: low, medium or high, with the reason.
  • breakdown: the classifier's probability for each of human, AI, AI-edited and humanized.
  • sentences: the sentences that read most like a model, each with why.
  • examples: sentences with known AI patterns, and the patterns in each.
  • checks: the raw output of every check, for anyone who wants to see the working.
{
  "version": "detect-v1.1",
  "ai": 0.94,
  "label": "ai",
  "verdict": "Highly polished and uniformly structured, with a tidy moral conclusion.",
  "confidence": {"level": "high", "reason": "consistent structure and summary language throughout"},
  "breakdown": {"human": 0.01, "ai": 0.97, "ai_edited": 0.01, "humanized": 0.01},
  "sentences": [{"text": "That cover-up remains its gravest responsibility.", "why": "repeats the preceding judgment"}],
  "examples": [{"sentence": "…", "points": 5, "rules": [{"name": "Emphatic 'its own'", "match": "its own"}]}]
}

Pass "options": {"model": "haiku"} to use Haiku instead of Luna (the default) for the reading steps.

Versions and rescans

Every result names the detector version that produced it. A published version doesn't change: an improvement ships as a new version, and the old ones stay available. Pin one with "options": {"version": "detect-v1.1"} for results you can reproduce. Without it you get the latest. Scanning the same text again with the same version gives the same result from cache, for the $0.001 base fee. A result made while one of the checks was unavailable isn't cached, so the next scan runs in full.

How it works

Pattern checks and two classifiers read the text, and a judge weighs their results:

  1. Pattern checks count dozens of habits language models share, from punctuation and stock phrases to sentence shapes, in each section of the text. Most are scripts, and a few need a model to read the text. From detect-v1.6, two count as strong evidence:
    • Invisible Unicode characters: zero-width spaces, joiners and direction marks, left by chat apps and by AI-era tools such as translators and paraphrasers. The joiners and spaces that emoji and some scripts need don't count. Direction marks in right-to-left text and a leading byte-order mark don't count either.
    • Leftovers of a chat assistant: "As an AI language model", "as of my last knowledge update", "the user is asking".
  2. Two classifier models score the text. The first is trained to tell human, AI, AI-edited and humanized text apart. It scores the whole text and gives the breakdown. The second (from detect-v1.6) reads the first ~400 words. It catches recent models that the first sometimes misses, but it also reads much human news and essay writing as AI. So the judge treats a high score from it alone as weak evidence.
  3. A judge, a language model, reads the text with the result of each check. It gives the score, the label, the verdict and the sentences.

How to read the score

A score is a probability, not proof. Short texts give weak signals, and careful human writing (formal essays, legal boilerplate, form letters) can read as machine-made. Fiction is especially hard to call. Use the score as one piece of evidence, and read the sentences yourself before deciding anything about a person.

Limits

  • At least 40 characters. It's most reliable from a few paragraphs up.
  • Texts over 20,000 characters run in the background: the API answers 202 with a run id to poll.
  • A typical page takes 10 to 30 seconds.

Was this written by a person or a model?

Revise the text above (or take the editor's version), answer what it asked, and send it back.

of free calls left this hour

cached result


            

The full API response. output.checks has the raw result of each check.


            

This box calls the public API. The same call works from your terminal without a key (API reference).

Run the same call from your terminal with a key from API keys (API reference).

For AI agents

For AI agents using p3n AI Detection (https://p3n.si/skills/detect)

POST https://api.p3n.si/v1/detect with {"text": "..."} (at least 40 characters). Report output.ai as a percentage, output.label and output.verdict, and quote the sentences in output.sentences and output.examples with the patterns they carry. Don't claim more certainty than output.confidence.level. A 202 answer means poll GET https://api.p3n.si/v1/runs/<id> until status is succeeded or failed.

Base URL https://api.p3n.si/v1; JSON bodies with Content-Type: application/json. With a p3n API key, send Authorization: Bearer <key>, and X-P3N-Client: <your tool's name> so the owner's usage page can tell the tools apart; without one, calls are free up to 10 an hour per IP. Errors come back as {"error": {"type", "message"}}. Full reference: https://docs.p3n.si.