Deepfake Detection

Analyze audio, images, and video for synthetic tampering. Submit media for detection and retrieve structured metrics and visualizations.

Request Schema

1interface DetectionRequest {
2 url: string; // publicly accessible media URL
3 callback_url?: string;
4 visualize?: boolean;
5 frame_length?: number;
6 start_region?: number;
7 end_region?: number;
8 max_video_fps?: number;
9 max_video_secs?: number;
10 intelligence?: boolean;
11}

Response Shapes

1interface BaseDetectionResult {
2 success: true;
3 item: {
4 uuid: string;
5 created_at: string;
6 updated_at: string;
7 duration: string;
8 media_type: string;
9 url?: string;
10 intelligence?: {
11 description: string | IntelligenceDetails;
12 created_at: string;
13 } | null;
14 };
15}
16
17interface AudioDetectionResult extends BaseDetectionResult {
18 item: BaseDetectionResult["item"] & {
19 metrics: {
20 label: string;
21 score: string[];
22 consistency: string;
23 aggregated_score: string;
24 image?: string;
25 };
26 };
27}
28
29interface ImageDetectionResult extends BaseDetectionResult {
30 item: BaseDetectionResult["item"] & {
31 image_metrics: {
32 type: string;
33 label: string;
34 image: string;
35 score: number;
36 children: any[];
37 };
38 };
39}
40
41interface VideoDetectionResult extends BaseDetectionResult {
42 item: BaseDetectionResult["item"] & {
43 metrics: AudioDetectionResult["item"]["metrics"];
44 video_metrics: {
45 label: string;
46 score: number;
47 certainty: number;
48 treeview?: string;
49 children: Array<{
50 type: string;
51 conclusion: string;
52 score: number;
53 certainty: number;
54 "certainty (%)": string;
55 children: Array<{
56 type: string;
57 conclusion: string;
58 score: number;
59 certainty: number;
60 "certainty (%)": string;
61 timestamp: number;
62 children: Array<{
63 type: string;
64 conclusion: string;
65 score: number;
66 certainty: number;
67 "certainty (%)": string;
68 }>;
69 }>;
70 }>;
71 };
72 };
73}

Use the endpoints below to submit jobs and retrieve detection results for each modality.