Skip to main content
POST
AI-voice detection

Overview

The /predict endpoint analyzes audio files for AI-generated content (deepfakes, voice cloning, text-to-speech). Returns results in real-time for small files.
File Size Limits: For very large files (100MB+), use pre-signed S3 URLs for asynchronous processing.

Authentication

string
required
Your API key for authentication

Request Parameters

file
required
Audio or video file to analyzeSupported formats: WAV, MP3, AAC, FLAC, OGG, M4A, MP4, MOV, AVI, MKVMax size: 5 MB (recommended for fastest processing)
string
required
Device type making the requestOptions: macos, windows, web_app, api
string
Custom prediction ID for tracking (auto-generated if not provided)Format: pred_ followed by 12 hex charactersExample: pred_9b6ff057a7f7
string
default:"stable"
Model version to useOptions:
  • stable - Production model (recommended)
  • stable-latest - Latest stable release
  • dev-v4 - Development model (testing only)

Response

string
required
Unique identifier for this prediction
object
required
Overall prediction for the entire audio file
array
required
Per-segment analysis (one per chunk_duration)
string
required
Model version used for prediction
number
required
Time taken to process in seconds
number
required
Total audio file duration in seconds
array
List of warnings (e.g., partial chunk failures, quality issues)

Example Request

Example Response

200 - Spoofed Audio Detected
200 - Authentic Audio
400 - Validation Error
401 - Unauthorized
413 - File Too Large

Error Codes

Confidence Score Interpretation

The confidence score indicates how certain the model is about its prediction:
For high-security applications, set a threshold of 0.85+ before taking automated actions.

Best Practices

  • Use WAV or FLAC for best accuracy
  • Keep files under 5MB for fastest processing with this endpoint
Check the warnings array for partial failures:
If warnings exist, review individual segments for confidence.
Implement exponential backoff for transient errors:
Track processing_time to identify slow requests:
  • < 2s: Excellent
  • 2-5s: Good
  • 5-10s: Acceptable for large files
  • > 10s: Consider async processing

Rate Limits

Upgrade your plan at app.aurigin.ai/billing for higher limits.

Pre-Signed URLs

Asynchronous processing for large files (100MB+)

Authorizations

x-api-key
string
header
required

Body

file
file
required
user_id
string

Optional user identifier

Response

OK

error
(string | null)[]

Error messages for each 5-second chunk (null if successful). Aligns 1:1 with the predictions array.

global_probability
number<float>[]

Confidence scores (0.0-1.0) for each prediction, one per 5-second chunk. Aligns 1:1 with the predictions array.

predictions
enum<string>[]

AI detection results for each 5-second chunk of the audio. Array length equals the number of 5-second chunks in the audio file.

Available options:
fake,
real