Image API

The AI image detection API.

Detect AI-generated images at scale. Upload a file and get back a verdict (Human, Likely Human, Likely AI or AI Generated), an AI score and a source trace that names the generator when the file still carries it.

Keys hashed at rest

cURL
JavaScript
Python
# 1. get a signed upload URL curl -X POST https://app.deepfakedetector.ai/api/v1/uploads/image \ -H "Authorization: Bearer sk_live_..." # returns upload_id, upload_url and expires_at # 2. upload the file curl -X PUT "$UPLOAD_URL" \ -H "Content-Type: image/jpeg" \ --upload-file photo.jpg # 3. run detection curl -X POST https://app.deepfakedetector.ai/api/v1/detect/image \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "upload_id": "upl_a1b2c3d4e5f60718" }'
const auth = { 'Authorization': 'Bearer sk_live_...' }; // 1. get a signed upload URL const up = await (await fetch('https://app.deepfakedetector.ai/api/v1/uploads/image', { method: 'POST', headers: auth })).json(); // 2. upload the file await fetch(up.upload_url, { method: 'PUT', headers: { 'Content-Type': 'image/jpeg' }, body: file }); // 3. run detection const res = await fetch('https://app.deepfakedetector.ai/api/v1/detect/image', { method: 'POST', headers: { ...auth, 'Content-Type': 'application/json' }, body: JSON.stringify({ upload_id: up.upload_id }) }); console.log(await res.json());
import requests auth = {"Authorization": "Bearer sk_live_..."} # 1. get a signed upload URL up = requests.post("https://app.deepfakedetector.ai/api/v1/uploads/image", headers=auth).json() # 2. upload the file with open("photo.jpg", "rb") as f: requests.put(up["upload_url"], data=f, headers={"Content-Type": "image/jpeg"}) # 3. run detection res = requests.post("https://app.deepfakedetector.ai/api/v1/detect/image", headers=auth, json={"upload_id": up["upload_id"]}) print(res.json())
What it detects

One endpoint for AI-generated and manipulated images.

One call to /api/v1/detect/image covers fully AI-generated images and manipulated photos alike. It is the single-modality companion to our full deepfake detection API, and powers the same engine behind our consumer AI image detector.

Every major generator

Scores images from Midjourney, DALL-E, Stable Diffusion, Flux, Firefly, Imagen, Ideogram and more. When the original file carries C2PA Content Credentials or generator metadata, source_trace names the tool with an evidence level.

Edits are not called AI

Photoshop, Lightroom, GIMP and Canva are classified as editing tools, not generators, so a retouched photo is reported for what it is.

A clear verdict

Every call returns one of four verdicts, Human, Likely Human, Likely AI or AI Generated, with an AI score from 0 to 1 you can set your own threshold on.

How it works

Upload, detect, get a verdict.

Three calls with one Bearer key: get a signed upload URL, upload the file, run detection. Base URL https://app.deepfakedetector.ai.

CallStepWhat it does
POST /api/v1/uploads/imageStep 1Returns upload_id, a signed upload_url and expires_at. Send an empty body. The upload URL is valid for 2 hours.
PUT upload_urlStep 2Upload the file bytes to the signed URL. Accepted formats: JPG, PNG, WebP, BMP, TIFF and HEIC, up to 48 megapixels.
POST /api/v1/detect/imageStep 3The body is {"upload_id": "upl_..."} and nothing else. Synchronous: the verdict comes back in the same response.
ErrorsJSONEvery error returns error.code, error.message and a request_id. Common codes: invalid_api_key 401, quota_exceeded 402, rate_limit_exceeded 429 with a Retry-After header.
Request
# POST /api/v1/detect/image curl -X POST \ https://app.deepfakedetector.ai/api/v1/detect/image \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "upload_id": "upl_a1b2c3d4e5f60718" }'
Response
{ "data": { "id": "7f3a91c2", "type": "image", "source": "api", "status": "completed", "verdict": "likely_ai", "verdict_label": "Likely AI", "ai_score": 0.71, "ai_score_percent": 71.0, "file_name": "photo.jpg", "file_format": "jpg", "image_width": 2048, "image_height": 1536, "source_trace": { "status": "source_signal_found", "tool": "Midjourney", "signal_strength": "moderate" } }, "meta": { "request_id": "req_4f1c2a9b7e3d5a6c8b0e", "api_version": "v1" } }

Verdict bands: AI Generated 0.86 and up, Likely AI 0.50 to 0.85, Likely Human 0.16 to 0.49, Human below 0.16.

Use cases

Built for moderation and trust & safety at scale.

Drop image detection into upload flows, review queues and verification steps. One synchronous call per image, so the verdict lands inline in your pipeline.

UGC & marketplaces

Flag AI-generated listings, product shots, and profile photos before they reach buyers.

Dating apps

Catch catfish and synthetic profile photos at signup and on every new upload.

Newsrooms & fact-checkers

Verify imagery before publication and triage suspect photos at speed.

Ad & brand safety

Screen creative and submitted assets so synthetic imagery never runs under your brand.

Check images as they arrive and route Likely AI and AI Generated results to review. Want the science behind the verdict? Read how AI image detectors work.

Integration

Plain REST. Any language.

No SDK to install and nothing to keep in sync. Three JSON calls over HTTPS with a Bearer key, so any HTTP client works. The samples above cover cURL, JavaScript and Python.

cURL
JavaScript / Node
Python
Go
Java
PHP
Ruby
.NET
Pricing

API access is included from the Starter plan.

Start free with 50 detections per month, no card required. API access begins on Starter at $49/mo, Business is $199/mo, and Enterprise is $599/mo. See full limits on our pricing page.

$0

Free. 50 detections/month in the web app, no card required.

$49

Starter. Adds API access for programmatic image detection.

$199

Business. 5,000 checks a month and higher rate limits.

$599

Enterprise. 20,000 checks a month, with procurement, invoicing and security reviews through sales.

FAQ

AI image detection API questions.

Everything teams ask before they integrate. Comparing tools? See the best AI image detectors.

What is an AI image detection API? +

An AI image detection API checks images for AI generation from your own code. DeepfakeDetector.ai returns a verdict (Human, Likely Human, Likely AI or AI Generated), an AI score from 0 to 1 and a source trace that names the generator when the file still carries C2PA or metadata.

Which image generators can it detect? +

It scores images from Midjourney, DALL-E, Stable Diffusion, Flux, Firefly, Imagen, Ideogram and other generators. When the original file carries C2PA Content Credentials or generator metadata, the source trace also names the tool, with an evidence level of strong, moderate or light.

How do I call the API? +

In three steps: POST to /api/v1/uploads/image for a signed upload URL, PUT the file to that URL, then POST the upload_id to /api/v1/detect/image. Every request uses an Authorization: Bearer key from your account.

What image formats and sizes are supported? +

JPG, PNG, WebP, BMP, TIFF and HEIC, up to 48 megapixels. The maximum file size depends on your plan. Send the original file when you can, because resized copies lose the metadata the source trace reads.

How fast is it? +

Detection is synchronous: the detect call returns the verdict in the same response, so there is no job to poll and no webhook to manage.

Can I use it for content moderation? +

Yes. Teams run it on profile photos, listings and user uploads, then route Likely AI and AI Generated results to a review queue.

Is it free, and are images stored? +

A free account includes 50 checks a month in the web app, and API access starts on the Starter plan at $49 a month. Results are saved to your account history, and our Privacy Policy sets out how files are handled.

Detect AI images
at scale.

One REST endpoint, confidence-scored verdicts, webhooks, and SDKs, built for moderation and trust & safety teams.