---
updatedAt: 2026-06-04T15:56:06.000Z
---

Fetch the complete documentation index at: https://docs.thehive.ai/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Music Detection

# Overview

Hive's AI-Generated Music Detection API takes a video or audio clip and determines whether or not the music in the clip is AI-generated. Confidence scores are provided for each classification for easy interpretation of results. This API serves multiple purposes in the music industry, including but not limited to: ensuring that music is attributed to its rightful creators under copyright law, preventing potential copyright disputes resulting from undetected AI music, and more.

# Response

The AI-Generated Music Detection API has two models and three heads. Each head contains a set of classes. Each class within a head has a confidence score ranging from 0.0 to 1.0, indicating how certain the model is of its prediction for said class. The confidence scores for each model head sum to 1.

1. **AI-Generated Music**: Determines if a piece of music (not including vocals) is AI-generated. This model contains two heads.
   1. **AI-Generated Music (Head)**: Determines if a piece of music (not including vocals) is AI-generated. This head contains two classes:`ai_generated_music` and `not_ai_generated_music`.
   2. **Attribution**: Determines which generative AI model created the audio clip. This head contains the following classes: `duobao`, `google`, `heartmula`, `loudly`, `minimax`, `mubert`, `mureka`, `musicgen`, `riffusion`, `stable_audio_open`, `suno`, `udio`, `yue`, and `ace_step`.
2. **AI-Generated Music Cover**: Determines if the vocals in a song are AI-generated. Capable of detecting both deepfake audio covers of existing songs and AI-generated original songs. This head contains two classes: `ai_generated_music_cover` and `not_ai_generated_music_cover`.

When a query is made to the API endpoint, we run both models, which make classifications for each 3-second audio chunk. Their combined output is returned as a JSON response, formatted as an array of 3-second chunks with associated timestamps and classifications.

To see a complete API response object, refer to the [API reference page](https://docs.thehive.ai/reference/ai-generated-music-detection-1).

# Supported File Types

**Video Formats:**\
mp4\
webm\
avi\
mkv\
wmv\
mov

**Audio Formats:**\
flac\
mp3\
ogg\
wav\
m4a