Mureka Song
通过 BeansAI 调用 Mureka 原生的歌词优先歌曲生成 API,提交异步任务后轮询结果。
概览
BeansAI 对外提供
POST /song/generate 生成歌曲,并通过 GET /song/query/:task_id 查询任务。返回的任务 ID 会是 beanssong_...,后续轮询直接使用这个 ID。基础用法
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 |
使用技巧
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
}'