AI Detection API
The AI Detection API allows you to analyze audio files and determine whether they were generated by AI or created by human artists.
Getting started
The AI Detection API is designed to help platforms, labels, and developers distinguish AI-generated music from human music. Here are the steps to follow to complete the initial setup:
Get in touch
If you're looking to integrate AI detection capabilities into your platform or workflow, send us an enquiry.
Get your API Key
Once you're registered, you'll receive your API key — a mandatory parameter for all API calls. It's your personal identifier and should be kept secret.f
Experiment with our interactive documentation
Open the interactive API docs (https://api.soundpatrol.com/docs) to explore the endpoints, and to execute requests directly from your browser
Integrate with your product
With your API key in hand, you can start integrating AI Detection into your platform. Our team is available to assist with your implementation and answer any technical questions.
Authentication
To authenticate your API requests, you need to include your API key as a header in every call. Add the X-API-Key header to your requests like this:
curl -X POST "https://api.example.com/v1/ai-detection" \
-H "X-API-Key: YOUR_API_KEY" \
-F "audio_file=@song.mp3;type=audio/mpeg"
Keep your API key secure and never share it publicly. If you believe your API key has been compromised, contact us immediately to revoke and reissue your credentials.
Start the integration on your product
In the most common scenario you only need to implement two API calls:
Submit audio files for analysis using the
POST /v1/ai-detectionendpoint with your audio file and optional metadata (e.g. artist, title)Retrieve results using the
GET /v1/ai-detection/{request_id}endpoint to check the status and get detection results
The API returns a probability score indicating the likelihood of AI generation, a binary classification (is_ai: true/false), and the detected model type when applicable.
We can't wait to see how you'll use the AI Detection API!