REST API · Image · Voice · Video via sales

The deepfake detection API for voice, image, and video.

Detect AI-generated images and cloned voices with one key and one REST API. Upload a file, run detection and get back a verdict, an AI score, a source trace for images and segment scores for voice. Video at volume runs through our sales team.

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())
Endpoints

One API for image and voice deepfake detection.

One base URL, one Bearer key and the same response envelope for every media type: { data, meta: { request_id, api_version } }. Need video detection at volume? Talk to sales.

POST/api/v1/uploads/imageupload URL
POST/api/v1/detect/imageverdict + source trace
POST/api/v1/uploads/voiceupload URL
POST/api/v1/detect/voiceverdict + segments
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. Images and voice work the same way; swap image for voice in the path.

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 for images; MP3, WAV, OGG, M4A, FLAC and AAC for voice.
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" } }

Voice responses add duration, segment_count, average_ai_score, max_ai_score and a segments array. See the voice API.

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
FAQ

Deepfake detection API questions.

Everything developers ask before they integrate.

What is a deepfake detection API? +

A deepfake detection API lets you check media for AI generation from your own code. The DeepfakeDetector.ai API checks images and voice recordings and returns a verdict (Human, Likely Human, Likely AI or AI Generated) with an AI score, so you can automate verification inside your own products.

Can the API detect AI-generated video? +

Video detection runs in the DeepfakeDetector.ai web app today, scoring sampled frames with an average and a highest-frame score. Video through the API is available for volume customers through our sales team; talk to sales to set it up.

What does the API return? +

A JSON envelope with data and meta. The data holds the verdict, verdict label and AI score, plus a source trace for images and 6-second segment scores for voice. The meta holds a request ID and the API version.

Which plans include API access? +

Starter, Business and Enterprise plans all include API access, from $49 a month. Your monthly checks are shared between the web app and the API, so you can use them wherever your workflow lives.

How is the API secured? +

Every request is authenticated with a Bearer API key. Keys are hashed at rest and shown only once at creation, requests are rate limited per account, and every response carries a request ID for auditing.

Is this a synthetic media detection API? +

Yes. DeepfakeDetector.ai works as a synthetic media detection API for images and voice, with one key, one envelope and one set of verdicts across both.

Detect Deepfakes
Before They Spread.

Free tier includes 50 detections/month in the web app, no card required. API access starts on the Starter plan at $49 a month, with usage shared across the web app and the API.