The AuthGuard REST API allows you to programmatically access our enterprise-grade AI detection models. Integrate deepfake detection, voice cloning analysis, and AI-text classification directly into your own applications.
Use this secret key to authenticate your requests. Do not share it.
Authenticate your API requests by including your secret API key in the Authorization HTTP header. All API requests must be made over HTTPS.
curl -H "Authorization: Bearer sk_test_ag_XXXXXX" \
https://api.authguard.ai/v1/models
Analyze an audio file to determine if it was synthesized using AI voice cloning technology (e.g., ElevenLabs, Bark).
| Parameter | Type | Description |
|---|---|---|
| file | file | The audio file to analyze. Supported formats: .wav, .mp3, .ogg. Max size: 25MB. |
| mode | string | Optional. Set to fast for speed or deep for highest accuracy. |
import requests
url = "https://api.authguard.ai/v1/detect/voice"
headers = { "Authorization": "Bearer YOUR_API_KEY" }
files = { "file": open("suspect_audio.wav", "rb") }
response = requests.post(url, headers=headers, files=files)
print(response.json())
{
"id": "req_8x92nd10a",
"status": "success",
"analysis": {
"is_ai_generated": true,
"confidence_score": 99.4,
"detected_model": "ElevenLabs",
"artifacts": ["high frequency cutoff", "unnatural breath cadence"]
}
}
Analyze an image to detect manipulation, stable diffusion generation, or GAN synthesis.
Works identically to the voice endpoint, but accepts .jpg, .png, and .webp formats.