Runnable Node.js examples for the Mureka API by useapi.net — a Suno / Udio alternative. Drive your own Mureka account over a simple REST API: generate full songs from lyrics, descriptions, or musical styles with Mureka's models — the flagship V9 (default) and O2 models, plus V8 and V7.6 — alongside instrumental tracks, extend, vocal cloning, motif (melody) seeding, and multi-speaker speech with voice cloning. No per-call metering — it runs your own Mureka subscription.
Each example reads a list of prompts from prompts.json, submits them through the useapi.net Mureka API, polls each job until it is final, and downloads every result — so you can queue a batch and come back to the winners.
| Example | What it does | Docs |
|---|---|---|
music/ |
Batch-generate songs from text prompts — AI-written lyrics, style, and mood, with Mureka model selection | POST /music/create |
You need Node.js v21 or newer (no dependencies to install), a useapi.net API token, and a connected Mureka account (one $15/month subscription covers every useapi.net API):
git clone https://github.com/useapi/mureka-api.git
cd mureka-api/music
node ./mureka.mjs <API_TOKEN>API_TOKEN is your useapi.net token. The optional second argument is your Mureka account id (or its Google email) — only needed when you have more than one account configured; with a single account it is auto-selected. Edit prompts.json in each folder to queue your own prompts. Every supported parameter is documented on the POST /music/create endpoint page.
useapi.net is an experimental REST API for AI services. The Mureka API drives your own Mureka account, so you spend your plan's credits at consumer rates instead of metered developer-API pricing. See the model matrix and pricing on the API overview.
Visit our Discord Server or Telegram Channel for any support questions and concerns.
We regularly post guides and tutorials on the YouTube Channel.