Skip to content
OSINTtools.io

Sightengine API

Image and video analysis API that detects AI-generated media, deepfakes and face swaps, with free C2PA and EXIF viewers.

Base URL
https://api.sightengine.com/1.0
Sign-in
API key
Free tier
Free tier
Format
REST
Endpoints
1

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

Introduction

Sightengine analyzes images, video, audio and text with named models. For an investigator the useful ones are the AI-generated image detector (genai, which scores how likely an image is AI-made and per generator) and its siblings such as deepfake detection, plus the moderation, face and OCR models that share the same endpoint. This reference documents the image check by URL; file uploads (multipart), video, audio, text and workflow endpoints are described in the docs.

All calls go to https://api.sightengine.com/1.0/. Each request carries the credentials as the api_user and api_secret parameters (query string or form data), the media (a public url or an uploaded media file) and a comma-separated models list. The URL must be publicly reachable and is fetched by Sightengine, and redirects are not followed.

Responses are JSON with status, request (id, timestamp, operations used) and one object per model. Usage is counted in operations. Image limits stated in the docs: 12 MB per file, 6 images per request.

Quick start

  1. Get a key

    Create an account with Sightengine and copy your api key (free tier). Where to get it

  2. Make your first request

    Analyze an image by public URL with one or more models, such as AI-generated image detection.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.sightengine.com/1.0/check.json?url=https%3A%2F%2Fexample.com%2Fphoto.jpg&models=genai&api_user=YOUR_API_USER&api_secret=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "status": "success",
      "request": {
        "id": "req_ExampleRequestId",
        "timestamp": 1700000000.123,
        "operations": 1
      },
      "type": {
        "ai_generated": 0.02,
        "ai_generators": {
          "midjourney": 0.01,
          "flux": 0,
          "stable_diffusion": 0.01,
          "other": 0
        }
      },
      "media": {
        "id": "med_ExampleMediaId",
        "uri": "https://example.com/photo.jpg"
      }
    }

Authentication

Send your API key in the api_secret query parameter of every request.

Also send your API user id as the api_user parameter, in the query string or form data

Get a key from Sightengine

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

Rate limits and pricing

Each account has a maximum number of requests and operations per second; above it the API answers HTTP 429 (type usage_limit, code 33). The exact figures are not given on the reference page.

Free tier.

Errors

StatusMeaning
400Request or media error (argument_error, media_error); read error.message
401credentials_error, code 1: incorrect API user or API secret
429usage_limit, code 33: request rate exceeded

Image analysis

  • Takes: Image
  • Takes: URL
  • Active: contacts the target
  • Cost: Operations; the count is returned in request.operations

Sends the image URL and a list of models and returns one result object per model. With models=genai the type object holds ai_generated, a 0 to 1 score, and ai_generators with a score per generator. Sightengine downloads the URL itself, so it must be public. Uploading a file instead is a multipart POST to the same path and is not covered here.

Query parameters

urlstringrequiredtakes your url

Public http(s) URL of the image to analyze, URL-encoded, no redirects

Example: https://example.com/photo.jpg
modelsstringrequired

Comma-separated model names, for example genai or nudity-2.1,gore-2.0

Example: genai
api_userstringrequired

Your API user id

Example: YOUR_API_USER
Response fields · 8Show

statusstring

success or failure

idstring

Unique request id

timestampnumber

Unix timestamp of the request

operationsinteger

Operations used by the request

ai_generatednumber

genai model: probability that the image is AI-generated, 0 to 1

ai_generatorsobject

genai model: score per generator (for example midjourney, flux, stable_diffusion, other)

idstring

Id of the analyzed media

uristring

The URL or file name analyzed

curl 'https://api.sightengine.com/1.0/check.json?url=https%3A%2F%2Fexample.com%2Fphoto.jpg&models=genai&api_user=YOUR_API_USER&api_secret=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "request": {
    "id": "req_ExampleRequestId",
    "timestamp": 1700000000.123,
    "operations": 1
  },
  "type": {
    "ai_generated": 0.02,
    "ai_generators": {
      "midjourney": 0.01,
      "flux": 0,
      "stable_diffusion": 0.01,
      "other": 0
    }
  },
  "media": {
    "id": "med_ExampleMediaId",
    "uri": "https://example.com/photo.jpg"
  }
}