BeansAI
模型定价文档
登录注册
模型定价文档
登录注册

快速接入

  • 概览

客户端

  • Claude Code
  • CC Switch
  • OpenClaw
  • Roo Code
  • OpenCode
  • Codex CLI
  • GPT Image 2
  • Seedance 2.0
  • SkyReels V4
  • Mureka Song
  • Cursor
  • Cherry Studio

参考

  • 原生 API
← 返回文档首页

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-9Latest flagship song model
mureka-8General song generation
mureka-o2O-series music model
mureka-7.6Legacy compatible model
mureka-autoMaps to Mureka model=auto upstream

使用技巧

  • lyrics is required and supports section markers such as [Verse] and [Chorus].
  • n controls the number of generated songs. Mureka supports up to 3 and BeansAI bills by generated unit.
  • stream: true lets 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
  }'