Voice API

The AI voice detection API.

Detect AI-generated and cloned voices in recordings. Upload a file and get back a verdict (Human, Likely Human, Likely AI or AI Generated), an AI score and a score for every 6-second segment.

Keys hashed at rest

cURL
JavaScript
Python
# 1. get a signed upload URL curl -X POST https://app.deepfakedetector.ai/api/v1/uploads/voice \ -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: audio/mpeg" \ --upload-file call.mp3 # 3. run detection curl -X POST https://app.deepfakedetector.ai/api/v1/detect/voice \ -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/voice', { method: 'POST', headers: auth })).json(); // 2. upload the file await fetch(up.upload_url, { method: 'PUT', headers: { 'Content-Type': 'audio/mpeg' }, body: file }); // 3. run detection const res = await fetch('https://app.deepfakedetector.ai/api/v1/detect/voice', { 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/voice", headers=auth).json() # 2. upload the file with open("call.mp3", "rb") as f: requests.put(up["upload_url"], data=f, headers={"Content-Type": "audio/mpeg"}) # 3. run detection res = requests.post("https://app.deepfakedetector.ai/api/v1/detect/voice", headers=auth, json={"upload_id": up["upload_id"]}) print(res.json())
What it detects

One endpoint for synthetic and cloned speech.

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

Every major voice engine

Scores speech from ElevenLabs, PlayHT, Resemble, OpenAI, Murf, WellSaid and other text-to-speech and voice-cloning engines. The verdict describes the audio; it does not name the engine that made it.

Spliced audio stands out

Recordings over 6 seconds are scored in 6-second segments, so a cloned sentence inside a real call shows up in the segments array with its own score.

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 plus the average and highest segment scores.

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/voiceStep 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: MP3, WAV, OGG, M4A, FLAC and AAC.
POST /api/v1/detect/voiceStep 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/voice curl -X POST \ https://app.deepfakedetector.ai/api/v1/detect/voice \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "upload_id": "upl_a1b2c3d4e5f60718" }'
Response
{ "data": { "id": "7f3a91c2", "type": "voice", "source": "api", "status": "completed", "verdict": "likely_ai", "verdict_label": "Likely AI", "ai_score": 0.73, "ai_score_percent": 73.0, "file_name": "call.mp3", "file_format": "mp3", "duration": 47, "segment_count": 8, "average_ai_score": 0.71, "max_ai_score": 0.92, "segments": [ { "start": 0, "end": 6, "ai_score": 0.81, "verdict": "likely_ai", "verdict_label": "Likely AI" } ] }, "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. Recordings of 6 seconds or less return one file-level result.

Use cases

Built for fraud and trust & safety at scale.

Drop voice detection into call-recording review, onboarding and voicemail workflows. One synchronous call per recording, with segment scores you can show a reviewer.

Contact-center fraud

Score recorded calls and voicemails for cloned voices before an agent acts on the request.

Voice-based KYC

Screen synthetic and cloned voices during voice onboarding and identity verification flows.

Media & journalism

Verify audio and interview recordings before publication and triage suspect clips at speed.

Meeting & voicemail

Check meeting recordings and voicemail for cloned voices before they trigger a payout or approval.

Check recordings as they are saved and send flagged segments to a reviewer. Want the how-to? Read how to detect AI voices and our guide to voice cloning scams.

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 voice 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 voice detection API questions.

Everything teams ask before they integrate. New to this? Learn how to detect AI voices.

What is an AI voice detection API? +

An AI voice detection API checks recordings for synthetic or cloned speech 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 score for every 6-second segment.

Which voice engines can it detect? +

It scores speech from ElevenLabs, PlayHT, Resemble, OpenAI, Murf, WellSaid and other text-to-speech and voice-cloning engines. The verdict describes the audio; it does not name the engine that made it.

How do I call the API? +

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

What audio formats are supported? +

MP3, WAV, OGG, M4A, FLAC and AAC. Maximum length and file size depend on your plan, with recordings up to 10 minutes on paid plans.

Does it work on live calls? +

It checks recordings rather than live audio streams. Send each call recording or voicemail as soon as it is saved and you get the verdict and segment scores back in the same response.

Can I use it to stop call-center fraud? +

Yes. Teams score recorded calls, voicemails and onboarding voice samples, then route Likely AI and AI Generated results, with the flagged segments, to a fraud analyst.

Is it free, and is my audio 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 cloned voices
before they cost you.

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