Skip to content

Dogfather1/freemusiclab-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeMusicLab API Examples

Code examples for integrating the free FreeMusicLab.ai music API into your apps.

About the API

Examples in this repo

Quick start

curl "https://freemusiclab.ai/api/tracks?genre=lofi&limit=10"
fetch('https://freemusiclab.ai/api/tracks?genre=lofi')
  .then(r => r.json())
  .then(({ tracks }) => console.log(tracks));
import requests
tracks = requests.get('https://freemusiclab.ai/api/tracks', params={'genre': 'lofi'}).json()
print(tracks)

Legal & compliance notes

  • AI disclosure: when using tracks in monetized YouTube/TikTok/Meta content, enable the AI-generated content label on your platform.
  • SynthID: every first-party track carries an inaudible watermark identifying it as AI-generated.
  • Commercial use: permitted via Google's Generative AI Terms. See license for full details.

Why a free music API?

Most music APIs charge $50-500/month and restrict commercial use. FreeMusicLab.ai uses Google Lyria (a licensed model with commercial-use output rights) to provide indie devs and creators a free alternative on solid legal footing.

Contributing

PRs welcome! If you build something cool with the API, add an example to this repo.

License

MIT.


Built by @Dogfather1 · Part of FreeMusicLab.ai

About

Code examples for integrating FreeMusicLab.ai free music API — React, Python, Node, Flutter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors