# Overview

The [**AI Song Detector**](https://pex.com/ai-song-detector/) identifies whether an **audio file contains AI-generated music**. It provides a simple API for submitting an audio file and receiving a classification result with accompanying details.

The detector is optimized for **music**, specifically individual songs, and produces one prediction per file.

Submitted audio files, whether uploaded directly or retrieved from a provided URL, are processed and then discarded. They are not stored on our servers nor used for training.

See the [Changelog](/ai-song-detector/changelog.md) for notable updates to the Pex AI Song Detector.

***

### What the API Does

* Analyzes an audio file, either uploaded directly or fetched from a provided URL.
* Determines whether the musical content is AI-generated.
* Returns a JSON response containing:
  * classification result - is it AI-generated or not,
  * classification confidence score,
  * the detected AI generation platform (e.g., Suno, Udio), if known and detected with high enough confidence,
  * additional details.

The API is designed for straightforward integration into existing media workflows and high-volume use cases. It can process millions of songs per day, making it suitable for large-scale catalog scanning.

#### AI Generation Platform Detection

When the detector classifies a file as AI-generated, it may also identify the AI generation platform used to create the music (such as Suno, Udio, and others).

This information is returned only when the detector reaches a sufficiently high confidence for platform attribution. If platform confidence is not high enough, the response will still indicate that the content is AI-generated, but the platform field will be empty.

***

### Expected Input

The detector is designed to analyze music, not generic audio.&#x20;

Files **should** contain:

* A single musical track
* Minimal non-music content (speech, silence, etc.)

Files **shouldn't** contain:

* UGC compilations
* Voiceovers
* DJ mixes
* Mashups
* Audio dominated by silence or speech

***

### Supported Audio Formats & Limits

* **Supported formats**: MP3, WAV, FLAC, AAC, M4A/MP4, OGG, WEBM, and other common audio formats
* **Minimum duration**: 30 seconds
* **Maximum duration**: 15 minutes
* **Max file size**: 100 MB
* Stereo, mono, and variable bitrates are supported

Files outside these limits will return statuses such as `too_short`, `too_long`, or `not_enough_music`.

***

### Input Methods

The API supports two equivalent ways of providing audio for analysis:

* **Direct file upload** as part of the request.
* Providing a **publicly accessible URL** from which the API will retrieve the audio file.

Both methods are subject to the same format, duration, and size limits, and both produce identical classification results.

***

### How the API Works

1. **Authenticate** using OAuth 2.0 Client Credentials
2. **Submit** an audio file, either by uploading it directly or by providing a URL to the file
3. **Receive** the classification result in a JSON response

Each request accepts one file and produces one output. Batch submission is not supported.

***

### Next Steps

Continue to [API Documentation](/ai-song-detector/api-documentation.md) for:

* Authentication flow
* Detector endpoint details
* Response structure
* Error handling
* Example implementations


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pex.com/ai-song-detector/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
