API Reference / Endpoints / Music
Generate lyrics
/v1/music/lyricsGenerate lyrics synchronously from a short brief.
POST
/v1/music/lyricsAuth: API keyBilling: Consumes 1 API callBehavior: SyncScopes: audio:generate
POSTSyncjsonaudio:generate
When to use it
Use this when you want lyrics first, then feed them into songs, song extension, or remix flows.
Behavior on success
Returns a completed payload on the normal success path.
Integration shape
Authorization model
audio:generate
Request format
json
Polling pattern
No polling required on the normal success path.
Request
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Theme, subject, emotional tone, or lyrical direction. |
Example request
POST /v1/music/lyrics
const response = await fetch('https://prod-backup-backend.wubble.ai/v1/music/lyrics', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WUBBLE_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"prompt": "A hopeful synth-pop chorus about starting over"
}),
});
const payload = await response.json();
console.log(payload);Example response
Response shapejson
{
"success": true,
"data": {
"lyrics": "Start again, brighter than the morning...",
"title": null
}
}Production guidance
Pair this route with idempotency on POST requests and either request polling or webhooks whenever the response is asynchronous.
Was this page helpful?