Create deepfake detection
Analyze audio, image, video, or images embedded in a PDF for deepfake detection.
Supply media via one of three intake methods:
- Direct file upload —
multipart/form-datawith the file attached asfile. Files must be 150 MB or smaller and use one of the supported audio/video/image extensions or .pdf. For larger audio, video, or image files, use the secure upload flow. - Public URL —
application/jsonwith aurlfield. The API fetches the URL itself. - Secure upload token —
application/jsonwith amedia_tokenfield obtained fromPOST /secure_uploads.
Exactly one of file, url, or media_token must be provided per request.
PDFs require Image detection access, run asynchronously, and have a 150 MB limit for all input methods. Poll the PDF UUID or supply a callback_url for the final document and image map. Scores, Intelligence reports, and usage charges apply per image. See PDF results for coverage and skip reasons.
Set detect_watermark=true to run Resemble watermark detection and SynthID alongside the deepfake
analysis. This option supports single audio, image, and video requests only. It adds one Watermark
detection charge, applies a 200 MB source limit for audio, image, and video, and causes
Prefer: wait and callbacks to wait for the watermark analysis to reach a terminal state. A watermark
failure is returned in the nested watermark object and does not change the deepfake verdict.
Authentication
API key from https://app.resemble.ai/hub/api
Headers
Request
The media file to analyze (audio, video, image, or PDF). Must be 150 MB or smaller.
One-based pages or inclusive ranges. Omit to select all pages, subject to the team scan limit (default 500). PDF only.
Maximum eligible images to analyze across selected pages. Defaults to the team image limit (normally 25) and cannot exceed it. PDF only.
For PDFs with Intelligence, the PDF normally waits for the image reports, subject to a timeout. Set false to let the PDF finish without waiting. For other media with callback_url and intelligence enabled, true waits for both Detect and Intelligence without a forced timeout, false sends after Detect finishes, and omitting this field waits up to 10 minutes for Intelligence.
Window size in seconds (audio/video). We recommend 4 for audio.
Start of segment to analyze (seconds)
End of segment to analyze (seconds)
Video only. Selects which detection components run for a video file:
audio (audio track only), video (visual frames only), or all (both — the default).
Ignored for audio and image inputs. Invalid values are rejected with HTTP 400.
Focus visual video detection on faces by masking non-face regions. Effective only for
video inputs with modality=all or modality=video. Audio, image, and modality=audio
video requests are accepted but use an effective value of false.
Opt in to let a strong intelligence finding escalate an otherwise non-fake verdict to “Likely Fake”. Has no effect unless intelligence is also true.
Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.
Enable out-of-distribution detection
