AI-voice detection
Analyze Audio
Detect AI-generated audio with real-time deepfake analysis
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, apistring
Custom prediction ID for tracking (auto-generated if not provided)Format:
pred_ followed by 12 hex charactersExample: pred_9b6ff057a7f7string
default:"stable"
Model version to useOptions:
stable- Production model (recommended)stable-latest- Latest stable releasedev-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
Theconfidence score indicates how certain the model is about its prediction:
Best Practices
Optimize Performance
Optimize Performance
- Use WAV or FLAC for best accuracy
- Keep files under 5MB for fastest processing with this endpoint
Handle Partial Results
Handle Partial Results
Check the If warnings exist, review individual segments for confidence.
warnings array for partial failures:Retry Logic
Retry Logic
Implement exponential backoff for transient errors:
Monitor Performance
Monitor Performance
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.
Related Endpoints
Pre-Signed URLs
Asynchronous processing for large files (100MB+)
Authorizations
Response
OK
Error messages for each 5-second chunk (null if successful). Aligns 1:1 with the predictions array.
Confidence scores (0.0-1.0) for each prediction, one per 5-second chunk. Aligns 1:1 with the predictions array.
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