---
title: "Music recognition API vs building your own: what building includes"
description: "For a technical lead deciding whether to build music recognition or use an API: the parts you'd build (fingerprinter, reference audio and the rights to it, index, long files and streams, metadata, operations), what Chromaprint with AcoustID, Dejavu, and audfprint give you and where each stops, what the AudD API costs, when building is the right call, and a hybrid with your own audio in a custom catalog."
slug: "/resources/articles/music-recognition-api-vs-building-your-own"
section: "articles"
keywords: [audd, build vs buy, music recognition api, audio fingerprinting, open source audio fingerprinting, chromaprint, acoustid, dejavu, audfprint, custom catalog, music recognition cost]
---

# Music recognition API vs building your own: what building includes

If you want to identify music in your product, you can build the recognition yourself, run an open-source tool on your servers, or send the audio to an API like ours. The method you choose depends upon your needs:

- **Build it, or run an open-source tool,** if the recognition has to work offline, if all the songs you want to recognize are your own and there aren't many of them, if you don't want to pay for requests, or if you want to change the algorithm yourself.
- **Use an API** if you want to recognize commercial music that you don't have copies of, or if you have long files or live streams to recognize.
- **Use both** if you have your own recordings and also need to recognize commercial music. You can upload your recordings to our custom catalog, or keep them in an open-source tool and send everything else to the API.

## What you need to build

The fingerprinter is the part that open source gives you. A working system also needs the reference audio, an index, handling of long files and streams, metadata, and someone to run it.

### A fingerprinter

You can write one, or start from an open-source library. Chromaprint is designed to identify near-identical audio, and it's made for full audio files, duplicate files, and long audio streams. Dejavu and audfprint match a short, noisy recording against the songs you fingerprinted. Each of them has parameters you can tune: in Dejavu, they're in `config/settings.py`, and in audfprint, they're command-line options like `--density`. As the Dejavu README puts it, testing out different parameterizations is often useful as the corpus becomes larger and larger.

### Reference audio, and the rights to use it

A fingerprinter recognizes only the songs in its database. With Dejavu and audfprint, you make the database from audio files that you have: to recognize a song, you need a copy of the recording. As new songs are released, each one has to be fingerprinted and added to the database. Please check that you're allowed to process the recordings, too. When you upload audio to our custom catalog, for example, you confirm that you have the rights to do so.

If you don't have the audio, there's the AcoustID database. It's crowd-sourced, it links to MusicBrainz, and you can download it. Note that the AcoustID service has been designed for identifying full audio files, not short audio snippets.

### An index that searches at your scale

The bigger the catalog, the more work the index takes. By default, an audfprint database can only remember 2^18 = 262k tracks. You can change the limit with `--maxtimebits`, but it also changes how long the time offsets can be. The Matlab version of audfprint has been successfully used for databases of 100k+ tracks. When AcoustID started in 2010, the lookups ran on PostgreSQL, using GIN indexes. A year later, the searches moved to a separate index server written in C++, and in 2026, they switched to a new one, written from scratch in Zig.

### Long files and live streams

A long file is many matches. You cut the audio into pieces, match each piece, and join the matches into tracks with start and end times. (Chromaprint's `fpcalc` can split the input audio into chunks, and audfprint can report several matches with their time ranges.) A live stream needs more: your code reads the stream, connects again when it drops, and notices when there's no music. We do this on our side: when you upload a file, our servers consider it to be a group of 12-second-long audio chunks, and if something happens to an audio stream, we'll let you know by sending a notification.

### Metadata and links

A match is only useful with the metadata attached to it. With Dejavu, the result is the song name you saved, and by default, that's the file name. AcoustID links its fingerprints to MusicBrainz, so you get the MusicBrainz recordings. Our results contain the artist, the title, the album, the release date, the label, the `timecode`, and a `song_link` with links to the streaming platforms. You can also get Apple Music, Spotify, Deezer, and MusicBrainz data, and ISRC and UPC codes are available on a Startup plan or higher, on request.

### Operations

Someone runs the database, the index, and the import of new audio, and keeps them up when the traffic grows. The AcoustID timeline is a good picture of this work: in 2019, the service moved to Docker and then to a self-hosted Kubernetes cluster, and in 2026, it moved to a new cluster. You'll also need a test set to measure the system on your own audio, and to measure it again after every change.

## What open source gives you, and where it stops

The open-source tools give you the fingerprinting and the matching. Dejavu and audfprint can only recognize the songs you've fingerprinted yourself, and the AcoustID service is for full audio files. The other parts are yours to build.

The AcoustID service is free for non-commercial use only. If you want to use it in a commercial application, you sign up for a plan with AcoustID OÜ. The free service also has a rate limit: no more than 3 requests per second.

| Project | License |
|---|---|
| Chromaprint | LGPL 2.1 as a whole; GPL if built with FFTW3 |
| Dejavu | MIT |
| audfprint | MIT |
| AcoustID server | MIT |
| AcoustID data | CC BY-SA 3.0; MusicBrainz mapping CC0 |

You can find the code for AcoustID and Dejavu, before and after, in "[Migrate from Chromaprint, AcoustID, Dejavu, or audfprint](/resources/migrate/from-open-source-fingerprinting)."

## What an API costs instead

With AudD, you send us the audio file or its URL, and we send you the recognized song. Our server will download the file, make the fingerprint, and search for it in our DB of 160 million songs.

```python
from audd import AudD

audd = AudD("your-api-token")  # get your own token at dashboard.audd.io

# A short clip: 1 request
song = audd.recognize("https://audd.tech/example.mp3")

# A long file: 1 request per 12 seconds of audio, at most 10 here
matches = audd.recognize_enterprise("https://audd.tech/example.mp3", limit=10)
```

These are the prices on [audd.io/pricing](https://audd.io/pricing/) as of November 24, 2026:

| Plan | Per month | Additional requests |
|---|---|---|
| Free trial, where available | $0 for 300 requests, 14 days | None |
| Indie | $5, 1,000 requests included | $5.00 per 1,000 |
| Startup | $450, 100,000 requests included | $4.50 per 1,000 |
| Pro | $850, 200,000 requests included | $4.25 per 1,000 |
| Stream monitoring | $45 per stream | - |

Contact us if you're interested in larger amounts of requests or in on-premise deployment: at very large volumes, the price goes down to about $2 per 1,000.

The standard endpoint analyzes up to the first 12 seconds of audio, and every request to it counts as one request. We count requests to the enterprise endpoint as 1 request per 12 seconds of audio, so a 60-minute file is 300 requests: $1.50 at $5.00 per 1,000. The free trial lets you upload files to the enterprise endpoint, and sending it URLs needs a paid plan. Commercial use is allowed on all paid plans. If you need a hard monthly cap on requests, email api@audd.io and we'll set one on your account.

You'll still have to send us the audio and decide what to do with the results.

## When building is the right call

Build it, or run an open-source tool, if one of these is true:

- The recognition has to work offline, or on a network that isn't connected to the internet. All the requests go to our servers. If you need AudD on your own servers, contact us: api@audd.io.
- All the songs you want to recognize are your own, and there aren't many of them.
- You don't want to pay for requests, and you'd rather pay for the servers and the engineering time.
- You want to change the algorithm, its parameters, and its index yourself, for example for research.
- You want to tag full music files with MusicBrainz data, and your app is non-commercial. The AcoustID service is free for non-commercial apps, and it was made for this.

## A hybrid: your own audio in a custom catalog

If you want to recognize music among your own recordings and also among commercial releases, you don't have to build anything for the first part. Upload your recordings to a custom catalog, with an integer `audio_id` for each one. With a custom catalog, recognition checks both your songs and our DB, and a song from your catalog comes back with its `audio_id`. To get access to the endpoint, contact the AudD representative that you work with, or email api@audd.io. Access to this endpoint isn't available by default.

The songs uploaded via this endpoint will be available for recognition only to you. Stream monitoring costs $25 per stream per month if you have your own content that you want to recognize instead of using our music DB. In this case, contact us: api@audd.io. Catalog setup and storage fees are quoted separately.

For how the two databases work together, see "[Public database vs your custom catalog](/resources/concepts/custom-vs-public-db)."

The other hybrid is to keep your own recordings in Dejavu or audfprint and send everything else to the API.

## Test both on your own audio

The answer depends on your audio, so test it. Get a token at [dashboard.audd.io](https://dashboard.audd.io), send the same files to the API and to the tool you'd build on, and compare the songs each of them found and missed.

For a plan, see "[Run a one-week pilot on your own audio](/resources/articles/evaluate-music-recognition-on-your-audio)" and "[Testing your integration](/resources/concepts/testing-your-integration)."

---

**Related**

- [Migrate from Chromaprint, AcoustID, Dejavu, or audfprint](/resources/migrate/from-open-source-fingerprinting)
- [Audio fingerprinting: how music recognition APIs work](/resources/articles/how-audio-fingerprinting-works)
- [Why catalog size affects recognition accuracy](/resources/articles/music-catalog-size-recognition-accuracy)
- [The business case for music recognition](/resources/articles/business-case-for-music-recognition)
- [AudD vs Audible Magic](/resources/articles/audd-vs-audible-magic)
- [Pricing](https://audd.io/pricing/)

## Sitemap

See the [resources sitemap](https://audd.io/resources/sitemap.md) for every guide and the [glossary](https://audd.io/resources/reference/glossary.md) for AudD terms.
