# AI or Not API reference

> 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…

Source: https://osinttools.io/apis/ai-or-not/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/ai-or-not/

- Base URL: https://api.aiornot.com
- Authentication: Bearer token in the `Authorization` header. Get a key: https://www.aiornot.com/ Keys are issued from the AIORNOT dashboard.
- Rate limits: Not stated in the docs
- Vendor docs: https://docs.aiornot.com/
- OpenAPI spec: https://docs.aiornot.com/api-reference/openapi.yaml

## Overview

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.

## Errors

| Status | Meaning |
| --- | --- |
| 422 | Validation error; the detail array lists loc, msg and type |

## Text

### Check whether text is AI-generated.

`POST /v2/text/sync`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `external_id` | query | string | no | Your own tracking ID, echoed back Example: case-0001 |
| `include_annotations` | query | boolean | no | Adds block-level results Example: false |

Response fields:

- `id` (string): Request identifier (UUID)
- `created_at` (string): Processing time
- `external_id` (string): Echoed from the request
- `report.ai_text.confidence` (number): Confidence from 0 to 1
- `report.ai_text.is_detected` (boolean): Whether AI text was detected
- `report.ai_text.annotations[]` (array): Text block and confidence pairs, only with include_annotations
- `metadata.word_count` (integer): Words in the text
- `metadata.character_count` (integer): Characters in the text
- `metadata.token_count` (integer): Tokens in the text
- `metadata.md5` (string): MD5 of the text

```bash
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."
}'
```

Example response (200):

```json
{
  "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`

- Footprint: 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:

- `is_live` (boolean): Whether the service is live

```bash
curl 'https://api.aiornot.com/v1/system/live' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "is_live": true
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
