# diffrhythm-short > Generate full-length songs with vocals and instrumentals in 10 seconds using latent diffusion—supports English and Chinese, 44.1kHz stereo, up to 4m45s tracks, requires only lyrics and style prompts. ## Overview - **Model ID**: `diffrhythm-short` - **Category**: voice cloning - **Provider**: modelslab - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/546bbad1-1b61-4644-bfdd-424605d52aa0.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/voice/song_generator` - **Method**: POST ### Parameters - **`init_audio`** (required): reference audio file to Copy the style of music - Type: file - Example: Please upload your audio - **`prompt`** (required): Enter topic of the song you want to generate. Only useful when Generate Lyrics is set true - Type: textarea - Example: Enter the prompt - **`lyrics`** (required): Lyrics must be provided in LRC format (including timestamps and lyric lines). This field is required if lyrics_generation is set to false. - Type: textarea - **`lyrics_generation`** (required): Set generate lyrics true if you want to generate lyrics with the help of prompt, set it false when you want to Enter your own lyrics - Type: toggle - **`model_id`** (required): ID of the music generation model to use Available options: diffrhythm-short, diffrhythm-long - Type: select (options: diffrhythm-short, diffrhythm-long) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/voice/song_generator \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "diffrhythm-short", "init_audio": "https://assets.modelslab.com/generations/020e94f6-2928-438d-bd41-5f981cda7aa4.wav", "prompt": "Write a soft romantic song about two people meeting under the rain for the first time, in an acoustic guitar style.", "lyrics": "[00:10.00]In the gentle rain, where our eyes first met[00:14.00]Two souls wandering, lost in silhouettes[00:18.00]With a smile that warmed the coldest night[00:22.00]We found our hearts in the soft moonlight", "lyrics_generation": false }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/voice/song_generator", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "diffrhythm-short", "init_audio": "https://assets.modelslab.com/generations/020e94f6-2928-438d-bd41-5f981cda7aa4.wav", "prompt": "Write a soft romantic song about two people meeting under the rain for the first time, in an acoustic guitar style.", "lyrics": "[00:10.00]In the gentle rain, where our eyes first met[00:14.00]Two souls wandering, lost in silhouettes[00:18.00]With a smile that warmed the coldest night[00:22.00]We found our hearts in the soft moonlight", "lyrics_generation": False } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/voice/song_generator", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "diffrhythm-short", "init_audio": "https://assets.modelslab.com/generations/020e94f6-2928-438d-bd41-5f981cda7aa4.wav", "prompt": "Write a soft romantic song about two people meeting under the rain for the first time, in an acoustic guitar style.", "lyrics": "[00:10.00]In the gentle rain, where our eyes first met[00:14.00]Two souls wandering, lost in silhouettes[00:18.00]With a smile that warmed the coldest night[00:22.00]We found our hearts in the soft moonlight", "lyrics_generation": false }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/song_generator/diffrhythm-short) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)