# Song generation > Generate high-quality songs with precise voice cloning, supporting various genres and emotions, ideal for music production and content creation. ## Overview - **Model ID**: `sonauto_song` - **Category**: voice cloning - **Provider**: sonauto - **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/v7/voice/music-gen` - **Method**: POST ### Parameters - **`prompt`** (required): Prompt for generating audio - Type: textarea - **`model_id`** (optional): Model - Type: text ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/voice/music-gen \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "sonauto_song", "prompt": "An upbeat Afrobeat song with energetic percussion, groovy bassline, and rhythmic guitar riffs. The vocals are clear and uplifting, with lyrics about dancing together, freedom, and feeling alive under the city lights." }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/voice/music-gen", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "sonauto_song", "prompt": "An upbeat Afrobeat song with energetic percussion, groovy bassline, and rhythmic guitar riffs. The vocals are clear and uplifting, with lyrics about dancing together, freedom, and feeling alive under the city lights." } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/voice/music-gen", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "sonauto_song", "prompt": "An upbeat Afrobeat song with energetic percussion, groovy bassline, and rhythmic guitar riffs. The vocals are clear and uplifting, with lyrics about dancing together, freedom, and feeling alive under the city lights." }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/music-gen/sonauto_song) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)