Daydream Music Generator API
Describe a song, get it back as an MP3 and a WAV. Royalty-free: use it in commercial games and videos. Pay as you go: a song is 5 credits ($0.05), from credit…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Describe a song, get it back as an MP3 and a WAV. Royalty-free: use it in commercial games and videos. Pay as you go: a song is 5 credits ($0.05), from credit packs that start at $3 for 60 songs, with no subscription. An account's free songs each week are for gen.daydream.live, Studio, ChatGPT and Claude; the API draws on credits. Docs and examples: https://gen.daydream.live/docs.
Endpoints 11
- GETYour songs, newest first
/songs - POSTMake a song
/songsPuts the song in line and returns it at once, status queued. Poll GET /songs/{id} every 2 seconds until status is done or failed. Counts one song against the… - GETA song: its status, place in line and files
/songs/:id - DELETEDelete a song for good
/songs/:idA done or failed song: its files and record are deleted, and its links (its share page too) answer 404. It isn't given back to the month's songs or credits. - PATCHName a song
/songs/:id - GETA version's MP3 (no auth)
/songs/:id/:n.mp3 - GETA version's WAV (no auth)
/songs/:id/:n.wav - GETOne stem's FLAC (no auth)
/songs/:id/:n/:stem.flac - POSTMake one stem again, or undo the last redo
/songs/:id/:n/:stem.flacredo: this stem made again with the other four exactly as they are; counts as one song; poll the song until its version's redo.making is gone (about a… - POSTBuy 10 songs
/packsNo key needed: answers 402 for 0.50 USD, payable over MPP (WWW-Authenticate: Payment; USDC on Tempo or Base, or a card through Link's agent wallet) or x402… - GETSongs used and left this month
/usage
API details
- Base URL
https://gen.daydream.live/v1- Authentication
- A bearer token in the Authorization header
- Operations
- 11 operations on 7 pathsGET 6POST 3PATCH 1DELETE 1
- Response formats
application/json- Description format
- OpenAPI 3.1.0, API version
1.0.0 - Links
- OpenAPI document · Support
- Listed from
- Daydream's published OpenAPI description
How to test the Daydream Music Generator API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Daydream Music Generator API collection, without the publisher's secrets.
- Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Your songs, newest first” (GET /songs), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Daydream Music Generator API?
Describe a song, get it back as an MP3 and a WAV. Royalty-free: use it in commercial games and videos. Pay as you go: a song is 5 credits ($0.05), from credit… It is listed under Media & content and has 11 endpoints.
Who publishes the Daydream Music Generator API?
It is listed from Daydream's public API description (an OpenAPI document), not published by Daydream on Swastik Codes. Anyone who controls gen.daydream.live can claim the profile by adding a DNS TXT record.
What is the base URL of the Daydream Music Generator API?
Requests go to https://gen.daydream.live/v1. Endpoint paths are added to this base URL.
How do I authenticate with the Daydream Music Generator API?
With A bearer token in the Authorization header.
How many endpoints does the Daydream Music Generator API have?
11 operations on 7 paths (6 GET, 3 POST, 1 PATCH, 1 DELETE).
Is forking the Daydream Music Generator API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.