Create music with vocals
May 15, 2025 (November 22, 2026)
Table of contents
This endpoint generates a complete song with vocals based on a text prompt and optional parameters.
https://api.useapi.net/v1/tempolor/music/song
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API tokenis required, see Setup useapi.net for details.
Request Body
{
"prompt": "A cinematic orchestral piece with dramatic string sections and a powerful crescendo",
"lyrics": "These are the lyrics for my song\nSecond line of the lyrics",
"clonedVoiceItemId": "user:12345-tempolor:user_id-voice:abcdef123456789",
"replyUrl": "https://your-callback-url.com",
"replyRef": "your-reference-id"
}
-
user_idis optional, if not specified, the API will use the account from your request. -
promptis required, a text description of the desired song.
Maximum length 2000 characters. -
lyricsis optional, custom lyrics for the song. If not provided, lyrics will be auto-generated based on the prompt.
Maximum length 3000 characters. model_songis optional, the model to use for generation.
Supported values:v4.8- Next-gen proprietary model with better melody, structure and vocals, 30+ languages, max 5 min (default)
Older model names are still accepted and automatically routed to
v4.8.-
artistVoiceItemIdis optional, ID of a predefined artist voice to use for the vocals. Get available voices using GET artist-voices. clonedVoiceItemIdis optional, ID of a previously cloned voice to use for the vocals.- To get existing cloned voices, use GET cloned-voices.
- To create a new cloned voice, upload an audio sample using POST cloned-voices.
midiItemIdis optional, ID of a previously uploaded MIDI file to base the composition on.-
replyUrlis optional, a callback URL that will be called with generation progress updates.
Maximum length 1024 characters.
We recommend using sites like webhook.site to test callback URL functionality. Callback body has the same JSON shape as GET /music/job_idresponse.
A job that has not completed within 60 minutes ends with a final callback withcode408 andstatus_nameFAILED. -
replyRefis optional, a reference ID that will be included in the callback requests.
Maximum length 1024 characters. maxJobsis optional; it specifies the maximum number of concurrent jobs for this request. If not provided, the value will be taken from the account configuration set in POST accounts.
Important notes:
- You can only use one of
artistVoiceItemIdorclonedVoiceItemId, not both. - If you specify a
midiItemId, you cannot useartistVoiceItemIdorclonedVoiceItemId.
Responses
-
Use the returned
jobsvalues to retrieve generation status and results using GET music/job_id.If you specify the optional parameter
replyUrl, the API will call the providedreplyUrlwith generation progress updates until the generation is complete or fails.{ "result": true, "itemIds": [ "abcdef123456789", "fedcba987654321" ], "jobs": [ "user:12345-tempolor:user_id-job:abcdef123456789", "user:12345-tempolor:user_id-job:fedcba987654321", ], "remainSeconds": 21533, "maxGenCountAtOnce": 10, "unlimited": false, "remainNum": 1534, "totalNum": 3000 } -
{ "error": "Parameter prompt is required", "code": 400 } -
{ "error": "Unauthorized", "code": 401 } -
{ "error": "Subscription required", "code": 402 } -
{ "error": "The source material does not exist.", "code": 404 }This error may occur if the specified
artistVoiceItemId,clonedVoiceItemId, ormidiItemIdno longer exists. -
TemPolor created the tracks, but scheduling them for status updates failed.
jobslists the tracks that already exist at TemPolor: read each one with GET music/job_idinstead of submitting the request again, which would make them twice.{ "error": "<Error message>", "code": 418, "jobs": [ "user:12345-tempolor:user_id-job:abcdef123456789", "user:12345-tempolor:user_id-job:fedcba987654321" ] } -
TemPolor content moderation rejected the
promptand/or thelyrics. The error names the rejected field. Resubmitting the same text will be rejected again, so change the rejected text before retrying.{ "error": "TemPolor content moderation rejected the lyrics. Resubmitting the same text will be rejected again. (430002)" } -
There are three possible cases for API response 429. In the first two, wait in a loop for at least 30 seconds and retry again.
- API query is full and cannot accept new music generation requests. Size of queue defined by the
maxJobsvalue from either the request body or the default from the account configuration set in POST accounts.{ "error": "Account <user_id> is busy executing X jobs", "runningJobs": { "<user_id>": [ { "user_id": "<user_id>", "job_id": "<job_id>", "started": 1715791234567, "replyUrl": "call back URL here, if provided", "replyRef": "reference id here, if provided" } ] }, "code": 429 } - TemPolor asks to wait for the account’s current generations to finish (code 500002).
{ "error": "please wait for current Generations to finish or upgrade your plan (500002)" } - TemPolor refused more songs on the account today.
TemPolor can refuse more songs on an account for the rest of the UTC day, even on Ultra, which it sells with unlimited tracks: it has happened after about 300 songs in a day. TemPolor answers
"unlimited gen!"(code 400204), and the API answers 429 at once and pauses that account for 30 minutes, never past 00:00 UTC, then pauses it again if TemPolor still refuses. Requests withoutuser_idgo to your other connected accounts meanwhile (a song withclonedVoiceItemIdormidiItemIdruns on the account that holds it, so it gets the 429 too), and a request that names the paused account withuser_idgets the same 429. Don’t retry beforebenchedUntil(theRetry-Afterheader gives the seconds to wait). To make more songs today, connect another TemPolor account with POST accounts (each useapi.net subscription connects 3), or wait for 00:00 UTC, when TemPolor’s limit resets.{ "error": "TemPolor refused more songs on account 12345 today: \"unlimited gen!\" (400204). This account is paused until 2026-11-21T18:30:00.000Z; requests without user_id use your other connected accounts. TemPolor's limit resets at 00:00 UTC.", "benchedUntil": "2026-11-21T18:30:00.000Z", "code": 429 }When every connected account that is not signed out is paused,
benchedlists when each one comes back, andbenchedUntilis the first of them.{ "error": "TemPolor refused more songs today on every healthy connected account: \"unlimited gen!\" (400204). The first account comes back at 2026-11-21T18:30:00.000Z; connect another TemPolor account to keep going. TemPolor's limit resets at 00:00 UTC.", "benchedUntil": "2026-11-21T18:30:00.000Z", "benched": { "12345": "2026-11-21T18:30:00.000Z", "67890": "2026-11-21T18:41:12.000Z" }, "code": 429 }GET scheduler/available and GET accounts show the paused accounts with their
benchedUntil. - API query is full and cannot accept new music generation requests. Size of queue defined by the
-
596 Account signed out
TemPolor signed the account out, so its session ticket no longer works. The API stops using the account until you add it again with fresh credentials at POST accounts, see Setup TemPolor. Requests without
user_iduse your other accounts in the meantime.{ "error": "TemPolor signed out account 101441809 (You are currently logged out (400006)). Add it again with POST /v1/tempolor/accounts using fresh credentials, see https://useapi.net/docs/start-here/setup-tempolor", "code": 596 }If every account you have is in this state, a request without
user_idreturns 596 as well.
Model
The new music jobs: poll each id in jobs with GET music/job_id until it finishes.
The new music jobs, field by field
{ // TypeScript, all fields are optional
result: boolean
itemIds: string[]
jobs: string[]
remainSeconds: number
maxGenCountAtOnce: number
unlimited: boolean
remainNum: number
totalNum: number
}
Examples
-
curl -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -X POST https://api.useapi.net/v1/tempolor/music/song \ -d '{"prompt": "A cinematic orchestral piece with dramatic string sections"}' -
const apiUrl = `https://api.useapi.net/v1/tempolor/music/song`; const api_token = "API token"; const prompt = "A cinematic orchestral piece with dramatic string sections"; const data = { method: 'POST', headers: { 'Authorization': `Bearer ${api_token}`, 'Content-Type': 'application/json' } }; data.body = JSON.stringify({ prompt }); const response = await fetch(apiUrl, data); const result = await response.json(); console.log("response", {response, result}); -
import requests apiUrl = f"https://api.useapi.net/v1/tempolor/music/song" api_token = "API token" prompt = "A cinematic orchestral piece with dramatic string sections" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {api_token}" } body = { "prompt": f"{prompt}" } response = requests.post(apiUrl, headers=headers, json=body) print(response, response.json())