Mureka Song
Submit asynchronous song-generation tasks through BeansAI using Mureka's native lyrics-first API.
Overview
BeansAI exposes Mureka song generation at
POST /song/generate and task polling at GET /song/query/:task_id. The response task id is a BeansAI id such as beanssong_...; use that id for polling.Basic usage
submit song task
curl https://api.beansai.dev/v1/song/generate \
-H "Authorization: Bearer sk-beans-..." \
-H "Content-Type: application/json" \
-d '{
"model": "mureka-9",
"lyrics": "[Verse]\nCity lights are breathing slow\n[Chorus]\nWe rise where the green lights glow",
"prompt": "cinematic pop, warm female vocal, modern synth, uplifting chorus",
"n": 1,
"stream": true
}'poll task
curl https://api.beansai.dev/v1/song/query/beanssong_... \
-H "Authorization: Bearer sk-beans-..."Models
| mureka-9 | Latest flagship song model |
| mureka-8 | General song generation |
| mureka-o2 | O-series music model |
| mureka-7.6 | Legacy compatible model |
| mureka-auto | Maps to Mureka model=auto upstream |
Tips
lyricsis required and supports section markers such as[Verse]and[Chorus].ncontrols the number of generated songs. Mureka supports up to 3 and BeansAI bills by generated unit.stream: truelets Mureka return a streaming-stage URL while the song is still being generated.
auto model alias
curl https://api.beansai.dev/v1/song/generate \
-H "Authorization: Bearer sk-beans-..." \
-H "Content-Type: application/json" \
-d '{
"model": "mureka-auto",
"lyrics": "A short chorus about building reliable AI infrastructure",
"prompt": "clean indie pop, bright guitars, tight drums",
"n": 2
}'