API Reference
API Reference / Endpoints / Music

Generate with cloned vocals

/v1/music/vocals/clone

Generate a music job using a previously uploaded vocal reference.

POST/v1/music/vocals/clone
Auth: API keyBilling: Consumes 1 API callBehavior: AsyncScopes: audio:generate
POSTAsyncjsonaudio:generate

When to use it

Use this when you need the output shaped around a specific uploaded vocal reference.

Behavior on success

Returns 202 Accepted with a request_id. Poll the status endpoint or use webhooks.

Integration shape

Authorization model
audio:generate
Request format
json
Polling pattern
Poll status if the route returns processing.

Request

FieldTypeRequiredDescription
promptstringYesCreative direction for the song.
lyricsstringYesLyrics for the generation.
vocal_idstringYesIdentifier returned from POST /v1/music/vocals/upload.

Example request

POST /v1/music/vocals/clone
const response = await fetch('https://prod-backup-backend.wubble.ai/v1/music/vocals/clone', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.WUBBLE_API_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "prompt": "Soulful cinematic ballad with restrained drums",
  "lyrics": "Stay with me through the afterglow",
  "vocal_id": "voc_123"
}),
});

const payload = await response.json();
console.log(payload);

Example response

Response shapejson
{
  "success": true,
  "data": {
    "request_id": "<uuid>",
    "status": "processing",
    "estimated_seconds": 90
  }
}

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?