Skip to content

AI Music Detection API by Modulate: Fields, Limits, and Code

AINewss Editorial Team

Modulate's AI Music Detection API scores audio in four-second windows, separating vocal and instrumental AI detection and returning a clip-level verdict. This guide covers the response fields, batch and streaming calls, accuracy claims, known limitations, and pricing. All claims are drawn from Modulate's own documentation and its June 24, 2026 launch announcement. Readers searching for "AI Music Detection API by Modulate" will find a source-checked answer here.

View 3 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

A waveform split into four-second segments with AI vocal and instrumental verdict labels, illustrating an audio detection API.

What does the AI Music Detection API by Modulate actually return?

The AI Music Detection API by Modulate returns a clip-level verdict—ai-vocal-music, ai-instrumental, or not-ai-music—plus a breakdown of every four-second window. Vocals and instrumentals are scored independently, so a track with an AI voice over a human backing band is reported accurately.

Detection runs through a single batch endpoint or a WebSocket stream. Each audio file is split into four-second windows; windows with enough vocal content get a vocal AI score, while non-silent windows get an instrumental AI score. Those per-window scores roll up into the clip-level result.

Field Meaning
primary_verdict ai-vocal-music, ai-instrumental, or not-ai-music
vocal_ai_percentage Share of the clip that reads as AI-generated vocals, 0–100
instrumental_ai_percentage Duration-weighted AI instrumental score, 0–100
vocal_ai_confidence Average confidence across scored windows
windows Per-window breakdown, each covering four seconds

Source: Modulate AI Music Detection docs, fetched 2026-12-02.

How do the percentage fields differ from the AI percentage fields?

Two field families look similar but answer different questions. A _percentage field describes how much of the audio contains that content; an _ai_percentage field describes how much of it reads as AI-generated. A track can be 90% vocal yet only 5% AI-vocal.

That distinction matters when you build review logic. A high vocal_percentage tells you a song has singing; a high vocal_ai_percentage tells you that singing sounds synthetic. Confusing the two will either flag every vocal track or miss the AI content entirely.

One more trap: the two per-window AI probability fields can be null. A window without enough vocal content returns null for vocal_ai_probability and vocal_ai_confidence. Any renderer that assumes a number will print garbage, so guard for null before formatting.

How do you make a batch detection request?

Batch mode sends a complete file and returns the verdict plus every window in one response. Send a multipart POST to the batch endpoint with your API key in the X-API-Key header. The endpoint accepts no other parameters. Every field is always present in the response, though the four per-window AI fields can be null.

curl -sS -X POST https://platform.modulate.ai/api/velma-2-ai-music-detection-batch \
  -H "X-API-Key: $MODULATE_API_KEY" \
  -F "[email protected]"
import os, requests
response = requests.post(
    "https://platform.modulate.ai/api/velma-2-ai-music-detection-batch",
    headers={"X-API-Key": os.environ["MODULATE_API_KEY"]},
    files={"upload_file": open("audio.mp3", "rb")},
)
result = response.json()
print(result["primary_verdict"], result["vocal_ai_percentage"])

duration_s is in seconds, not milliseconds. latency_ms reports server-side inference time. See the official API reference, fetched 2026-12-02.

When should you use WebSocket streaming instead of batch?

Use batch to screen an uploaded file or audit an archived catalog. Use streaming to monitor a live broadcast or a user stream, where vocal results are needed as audio arrives. The two modes differ in input, output, and timing.

Mode Protocol Input Output
Batch HTTP POST Complete file Verdict and all windows at once
Streaming WebSocket Live audio frames Each window as scored, then a final done message

On streaming, audio_format is required on every connection. A stream ends when the client sends an empty text frame. A shell pipe sends only binary frames, so curl and websocat cannot close a stream cleanly—use a WebSocket client library.

An important nuance: the done message's instrumental score is recomputed from the full accumulated audio, which has more context than any single window. It can differ from the live windows and is the more reliable number.

Which audio formats and file sizes are supported?

The batch endpoint accepts 96 file extensions, including .mp3, .wav, .flac, .m4a, .mp4, .ogg, .opus, and .aac. That breadth covers most catalog and user-upload formats without transcoding. Formats span compressed audio and video containers, so most catalog uploads can be screened without conversion; plan around the 100 MB ceiling when scheduling audits.

Maximum file size is 100 MB; larger uploads return HTTP 413. Empty files return HTTP 400. For streaming, container formats such as MP3 and WAV ignore sample-rate parameters, while raw formats such as s16le require both sample_rate and num_channels. The MP4 family must be sent in a streamable layout.

How accurate is Modulate's music detection?

Modulate reported 95% precision across 76 genres in internal testing against leading generation models, including Suno 5.5, when it launched the API on June 24, 2026. That is a vendor-reported figure without published methodology or independent verification, so treat it as directional.

For actual decisions, Modulate recommends using primary_verdict to judge a whole song or segment. Per-window results are deliberately lower accuracy by construction, because each is scored from only four seconds of context. Short or heavily compressed clips are the hardest cases.

Source: Modulate press release, June 24, 2026, fetched 2026-12-02.

What are the known limitations?

The API reliably detects fully AI-generated songs, AI vocals over human music, and AI-only instrumentals. Its documented weak spots are AI choral or background vocals, and AI backing tracks underneath a live human vocal performance. Treat any borderline result as a signal for review, not a final ruling, because the model cannot resolve every mixed-source arrangement.

Modulate also notes that heavily processed or high-production tracks are sometimes labelled AI-generated. In other words, a not-ai-music verdict is weaker evidence than an AI verdict. Teams should keep a human review path for borderline cases rather than treating the score as final adjudication.

How much does it cost?

Modulate lists the AI Music Detection service at $0.07 per hour of audio on its comparison page, with a self-serve API and a playground. The launch press release gave no pricing, so the hourly figure comes from the product page, not a formal rate card.

Pricing and plan terms can change. Confirm current rates on Modulate's pricing page before budgeting a large catalog audit, and note that optional models such as deepfake detection and transcription are priced separately.

Frequently asked questions

The questions below cover the points developers most often hit after a first successful call: how this model differs from other audio classifiers, what the per-window data is good for, and the practical limits on file size. Each answer is drawn from Modulate's published documentation and launch materials.

Is this the same as music and speech detection?

No. Music and speech detection answers what kind of sound is present, separating music from speech. AI Music Detection answers where the music came from, classifying origin. They are different models with different endpoints.

Can it tell where in a song the AI content appears?

Yes. The windows array gives a score every four seconds, so you can see which sections triggered a flag. Each window carries start and end times plus vocal and instrumental probabilities.

What file size is the hard limit?

100 MB for the batch endpoint. Files above it are rejected with HTTP 413. Larger assets need to be split or escalated to Modulate's sales team.

References

  1. AI Music Detection - Modulate Developer Docsdocs.modulate.ai
  2. Modulate Launches AI Music Detection API for Platformswww.modulate.ai
  3. AI Music Detection API product pagemodulate.ai