Skip to content
OSINTtools.io

AI or Not API

Detector that estimates whether an image, video, audio clip or text was made by AI, on the web and via API.

Base URL
https://api.aiornot.com
Sign-in
Bearer token
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from docs.aiornot.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The AI or Not API checks whether images, audio, video or text were produced by generative AI, and runs deepfake, NSFW and quality checks on images. An investigator uses it to screen media or text for synthetic origin.

Calls go to https://api.aiornot.com with the API key as a bearer token, issued from the AIORNOT dashboard. Video analysis can take up to about two minutes, so set a 120-second timeout.

The image, voice, music and video endpoints take a multipart file upload and cannot be shown in this format: POST /v2/image/sync, POST /v1/reports/voice, POST /v1/reports/music and POST /v2/video/sync. Only the text check and the health check are described here. See the official docs for the upload endpoints.

Quick start

  1. Get a key

    Create an account with AI or Not and copy your bearer token. Where to get it

  2. Make your first request

    Health check.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.aiornot.com/v1/system/live' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "is_live": true
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Keys are issued from the AIORNOT dashboard.

Get a key from AI or Not

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Errors

StatusMeaning
422Validation error; the detail array lists loc, msg and type

Text

  • Passive: the target is not contacted

The text must be 250 to 500,000 characters, roughly 64 words minimum. Set include_annotations to get block-level scores.

Query parameters

external_idstring

Your own tracking ID, echoed back

Example: case-0001
include_annotationsboolean

Adds block-level results

Example: falseDefault: false
Request body (form) · 1Show

textstringalways present

Text to analyse, 250 to 500,000 characters

Response fields · 10Show

idstring

Request identifier (UUID)

created_atstring

Processing time

external_idstring

Echoed from the request

confidencenumber

Confidence from 0 to 1

is_detectedboolean

Whether AI text was detected

annotations[]array

Text block and confidence pairs, only with include_annotations

word_countinteger

Words in the text

character_countinteger

Characters in the text

token_countinteger

Tokens in the text

md5string

MD5 of the text

curl -X POST 'https://api.aiornot.com/v2/text/sync' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "text": "Replace this with at least 250 characters of text to analyse."
}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-01-01T12:00:00Z",
  "external_id": "case-0001",
  "report": {
    "ai_text": {
      "confidence": 0.12,
      "is_detected": false
    }
  },
  "metadata": {
    "word_count": 80,
    "character_count": 480,
    "token_count": 100,
    "md5": "00000000000000000000000000000000"
  }
}

System

Health check.

GET/v1/system/live

  • Passive: the target is not contacted

Tells you whether a problem is on your side or an outage. The docs ask you not to poll it frequently.

Response fields · 1Show

is_liveboolean

Whether the service is live

curl 'https://api.aiornot.com/v1/system/live' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "is_live": true
}