Cadence Song API for Full Songs from Your Lyrics

Send lyrics, a style description and a maximum duration to POST /api/v1/audio/generations with model: cadence-song. The result is one finished song, vocals and accompaniment mixed together, in Chinese or English. Track the job with the returned img_uuid by polling or by callback.
Get API Key
Songwriter's notebook with handwritten verses beside a microphone and keyboard in a warm studio

Lyrics and a Style Prompt In, a Finished Song Out

Your lyrics, sung as written

Pass up to 4000 characters in lyrics with \n between lines. Section tags such as [Verse], [Chorus], [Bridge], [Intro] and [Outro] are recommended to shape the structure.
Lyric sheet on a music stand in front of a microphone with a pop filter

Describe the sound in one line

style takes up to 1000 characters covering language, genre, instruments, vocal, mood and tempo. Comma-separated works best, for example Mandarin pop, warm female vocal, piano, strings, 90 BPM, emotional.
Grand piano, acoustic guitar and string instruments arranged on a softly lit stage

You cap the length

duration is the maximum length, 10 to 360 seconds. The song follows your lyrics and can end earlier; if it reaches the cap it fades out over the last 3 seconds. Plan roughly 60 to 90 seconds per verse and chorus.
Studio wall clock above a mixing desk with a glowing timeline
Four required fields; seed and output format are optional.

Cadence Song Request Fields and Limits

model

Always cadence-song.

lyrics (required)

The words to sing, up to 4000 characters, lines separated by \n. Chinese and English are supported. Section tags like [Verse] and [Chorus] are recommended.

style (required)

Up to 1000 characters describing language, genre, instruments, vocal, mood and tempo.

duration (required)

Integer, 10 to 360 seconds. The maximum song length and the billed length, even when the song ends earlier.

seed

Optional integer, 0 to 2147483647. The same seed and inputs give the same result; random when omitted.

output_format

mp3 (320 kbps, default) or wav (16-bit), 48 kHz stereo.

custom_callback_url

Optional public HTTPS URL that receives the job-detail body on processing, success and failure, with up to 3 retries.
Billed per second of the requested duration, rounded up to the whole second.

Cadence Song API Pricing

0.02 token ($0.0004) per second

The billed length is the duration you send, not the length of the song that comes back.

A 60-second song: 1.2 tokens ($0.024)

The same rate applies at every length from 10 to 360 seconds.

The 6-minute maximum: 7.2 tokens ($0.144)

A 360-second duration is the most a single request can cost.

Charged on acceptance, refunded on failure

The submit response returns the charged cost; tokens come back automatically if the generation fails.

Integrate the Cadence Song API

1

1. Create an API key

Generate a key at /keys and send it as Authorization: Bearer <key> from your server.
2

2. Prepare lyrics and style

Tag sections in lyrics, describe the sound in style, and set duration long enough for all your sections.
3

3. Submit and store img_uuid

POST {"model": "cadence-song", "style": "…", "lyrics": "…", "duration": 60} to /api/v1/audio/generations and keep the returned img_uuid.
4

4. Collect the song

Poll GET /api/v1/jobs/detail or wait for your callback. The result is one json item of type: audio; download it before link_expired_at. Generation takes about as long as the requested length.
Create an API Key
Vocal music generated from text, inside your own product.

What Developers Build with Cadence Song

Lyric-to-song apps

Let users write a verse and a chorus and hear them sung back as a complete track.

Personalized songs

Generate birthday, wedding or greeting songs with names and details written into the lyrics.

Demo tracks for songwriters

Turn draft lyrics into a sung demo in different genres before a studio session.

Jingles and short-video music

Produce short vocal hooks for ads and social clips, with the length capped by duration.
Endpoint, inputs, length, pricing and results.

Cadence Song API FAQ

What is the Cadence Song API endpoint?

POST https://api.goenhance.ai/api/v1/audio/generations with model: cadence-song.

Which languages can the lyrics be in?

Chinese and English are supported. State the language in style as well, for example Mandarin pop.

Why is my song shorter than duration?

duration is a maximum. The song follows your lyrics, so short lyrics end earlier; you are still billed for the full duration.

How is it priced?

0.02 token ($0.0004) per second of duration, rounded up, so 60 seconds costs 1.2 tokens ($0.024).

Can I reproduce a result?

Yes. Send the same seed with the same inputs to get the same song.

What does the result look like?

One json item {"type": "audio", "value": "https://…"}, an mp3 or a wav at 48 kHz stereo. The link expires; see link_expired_at.

Start Building with the Cadence Song API