Skip to main content
The stock music search gives programmatic access to the tracks at budgetpixel.com/background-music: AI-generated instrumental beds for videos, podcasts, streams and apps, in styles such as lofi, corporate, cinematic, acoustic and electronic. Every track is listened to and scored before it is listed. Tracks run up to about a minute. Each result comes with the audio file, its length and a ready-made credit line.
Available on every plan, including Free. The stock searches (images, sound effects and music) are the only endpoints a Free plan’s API key can call. Everything else in the API, and generation through the MCP connector, needs a paid plan.

Pricing

  • 10 credits per search, from your plan’s credits.
  • A search is charged when it succeeds, including one that matches nothing.
  • Invalid parameters are refused with a 400 and cost nothing.
  • Searches count toward the monthly spend limit you can set under Billing.
The endpoint searches existing tracks only; it never generates one. To make a track to order (a set length, lyrics, or a soundtrack for a video), use the music generation endpoints (paid plans).

Licence and credit

Every track is licensed CC BY 4.0: you can use it commercially, edit it, and use it in client work, provided you credit it where it is used. Each result includes the credit line, so you don’t have to compose one:
  • attribution.text, for video descriptions, credits, show notes and README files.
  • attribution.html, for web pages. It links the track, BudgetPixel and the licence.

Parameters

All parameters are optional. Send a query to search, or none to browse. Music has no category filter. Put the genre in query.

How the search matches

Write the query as a genre, a mood or a use: lofi study, upbeat corporate, dark true crime documentary, podcast intro.
  • Every word counts. A result must carry most of what you asked for. Filler words (the, for, background music) are ignored.
  • Rare words weigh more. In calm ukulele, ukulele decides the results.
  • Word forms match. uplifting finds uplift.
  • A word the library does not have counts as a miss.
  • Results that match more of your words come first, then the more popular.
A long brief, such as a prompt written for a music generator, returns the tracks it names or nothing. A few words work better. For an exact length, set min_duration and max_duration rather than writing the length in the query.

Response

The example shows the first of the five results. urls.original is the audio file and format says whether it is WAV or MP3. Most tracks are WAV, which is about 10 MB a minute; size_bytes gives the exact size before you download. urls.cover is square cover art.

From an AI agent (MCP)

The MCP connector has the same search as the search_stock_audio tool (with kind set to music). Sign in once, with no API key, and ask in plain words:
  • “Find free lofi background music for a study video, at least 30 seconds, with the credit line”
  • “I need an upbeat corporate track for a product demo”
The tool costs the same 10 credits per search and works on every plan, including Free.

Errors