# Make a song
curl https://gen.daydream.live/v1/songs \
-H "Authorization: Bearer $KEY" \
-d '{"prompt": "a calm village theme
with flute and harp",
"loop": true}'
# A few seconds later
{
"status": "done",
"takes": [{
"mp3_url": "…/1.mp3",
"wav_url": "…/1.wav",
"stems_ready": true
}]
}
01
Get a key
Create one on your Daydream account, and buy a credit pack: every song through the API is 5 credits, and $3 makes 60.
Bearer <key>
02
Ask
Send a description, and a tempo, key, length or loop if you want them.
POST /v1/songs
03
Wait
Poll every 2 seconds. A song takes a few seconds once it’s next.
GET /v1/songs/{id}
04
Take it
Download the MP3 or WAV, and the stems a moment later.
takes[n].wav_url
What you can build
Games
Level music from your build step, straight into Unity or Godot.
Every song through the API is 5 credits, so a key needs a credit pack. The 5 free songs a month are for the MCP server in Claude and ChatGPT, the generator page and Studio. Every plan, in US dollars.
Not through the HTTP API: every song there is 5 credits ($0.05) from a credit pack, and $3 makes 60, with no subscription. The free tier is 5 songs a month with a Daydream account, through the MCP server (Claude, Claude Code, Cursor, ChatGPT) or the generator page. A song is one request, with one or two versions, up to two minutes.
How do I get an API key?
Sign in on your Daydream dashboard (https://labs.daydream.live/account/#api-keys), press Create and copy the key; it’s shown once. Buy a credit pack too: songs through the API come from credits. Send it as Authorization: Bearer <key> on every request.
What comes back?
An MP3 (192 kbps) and a WAV (16-bit), stereo at 48 kHz, and five stems as lossless FLAC: drums, bass, guitar, keys and other. The stems are made with the song, not split from the mix, so they add up to it exactly. The audio links need no key and don’t expire.
How fast is it?
A song takes a few seconds once it’s next in line. Poll GET /v1/songs/{id} every 2 seconds until its status is done. Up to three songs can be in line at once.
Can I ship the key in my game or app?
No. A key can do anything on its account, so keep it on your machine or your server. Make the music in the editor, a build step or your backend, and ship the files or the links.
Can I use the music commercially?
Yes. Every song is royalty-free for commercial games, videos, streams and apps, on every plan, Free included.
How do I move from the ElevenLabs Music API?
Change the address to gen.daydream.live/v1/songs, send your Daydream key as a Bearer token, give the length in seconds rather than milliseconds, and poll for the song instead of waiting on the request. Every field, mapped: https://daydream.live/developers/switch-from-elevenlabs.
Is there an OpenAPI spec?
Yes: https://gen.daydream.live/openapi.json. It describes every endpoint, for code generators and AI agents.
Can I use it without an account?
Yes, by paying per song: $0.05 in USDC over HTTP 402, with no key. See daydream.live/for-agents.
Make your first song
60 songs for $3, each with its stems, in credits that never expire.