Skip to content
OSINTtools.io

TruthScan API

Commercial detector for AI-generated and manipulated images, video, audio and documents, with a free monthly allowance and API.

Base URL
https://detect-image.truthscan.com
Sign-in
API key
Format
REST
Endpoints
3

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

Introduction

TruthScan's image detection API checks whether an image is AI generated and returns a verdict with a confidence score. An investigator uses it to triage images for synthetic generation or edits. This reference covers the image API only; TruthScan also documents text, PDF, audio, video and capture APIs.

The flow is: request a presigned upload URL with GET /get-presigned-url, PUT the file to it (1KB to 10MB), POST /detect with the file's URL to start a job, then POST /query with the returned id until status is done. The upload steps and the ZIP bulk upload are not described here. /detect takes the key in the JSON body as key; the GET endpoints take it in an apikey header. /query needs no key, so treat job IDs as sensitive.

The limit is 250 weighted requests per minute per key.

Quick start

  1. Get a key

    Create an account with TruthScan and copy your api key. Where to get it

  2. Make your first request

    Get the credit balance of the API key.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://detect-image.truthscan.com/check-user-credits' \
      -H 'apikey: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "baseCredits": 100,
      "boostCredits": 50,
      "credits": 150
    }

Authentication

Send your API key in the apikey header of every request.

GET endpoints use the apikey header; POST /detect takes the key as `key` in the JSON body.

Get a key from TruthScan

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

Rate limits and pricing

250 weighted requests per minute per key: /detect and /bulk-upload cost 1, read endpoints 0.2, /query and /health are not limited. On 429 wait at least X-RateLimit-Retry-After seconds.

Errors

StatusMeaning
429Rate limit exceeded; wait X-RateLimit-Retry-After seconds and retry with backoff

Detection

  • Passive: the target is not contacted
  • Cost: 1 rate-limit unit per request

Returns a job id and status pending. The url is built from the storage host and the file_path returned by /get-presigned-url after you upload the file. Poll /query for the result.

Request body (JSON) · 6Show

keystringalways present

Your API key

urlstring

Image URL, 1 to 2083 characters

document_typestring

Image, SampleImage or image-zip; default Image

generate_previewboolean

Generate a preview URL; default true

generate_heatmapboolean

Generate a heatmap; default true

include_content_moderationboolean

Include content moderation; default false

Response fields · 2Show

idstring

Job ID to pass to /query

statusstring

Job status, pending when accepted

curl -X POST 'https://detect-image.truthscan.com/detect' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"key":"YOUR_API_KEY","url":"https://storage.example.com/uploads/photo.jpg","generate_preview":true,"generate_heatmap":true}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending"
}
  • Passive: the target is not contacted

Poll until status is done. The heatmap and analysis results are asynchronous, so keep polling until their status fields are ready.

Request body (JSON) · 1Show

idstringalways present

Document ID from /detect

Response fields · 11Show

idstring

Document ID

statusstring

Processing status, done when finished

resultnumber

Result score

preview_urlstring

Preview image URL

final_resultstring

Final verdict, for example AI Generated

final_label_confidencenumber

Confidence of the final label

confidencenumber

Confidence score

detection_stepinteger

Highest stage reached: 1 metadata, 2 watermark/OCR or SynthID, 3 ML

ml_modelarray

Label and confidence from the ML model

warnings[]object

Warnings such as a watermark or blur label

heatmap_urlstring

Heatmap URL

curl -X POST 'https://detect-image.truthscan.com/query' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"id":"123e4567-e89b-12d3-a456-426614174000"}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "done",
  "result": 99,
  "preview_url": "https://example.com/preview.jpg",
  "result_details": {
    "confidence": 99,
    "detection_step": 3,
    "final_label_confidence": 95,
    "final_result": "AI Generated",
    "ml_model": [
      "AI Generated",
      95
    ],
    "warnings": [
      {
        "label": "Blurred",
        "type": "blur_dark"
      }
    ]
  }
}

Account

  • Passive: the target is not contacted

Returns base, boost and total credits.

Response fields · 3Show

baseCreditsinteger

Base credits

boostCreditsinteger

Boost credits

creditsinteger

Total credits

curl 'https://detect-image.truthscan.com/check-user-credits' \
  -H 'apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "baseCredits": 100,
  "boostCredits": 50,
  "credits": 150
}