# SoundEffect (SFX) > The SFX endpoint allows you to generate sound effects (SFX) from text prompts. It takes user input in the form of a text prompt to conditionally generate audio effects. ## Overview - **Model ID**: `sfx` - **Category**: audio - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/626bdbfe-d4ff-42c8-b4d8-70e5283a725a.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/sfx` - **Method**: POST ### Parameters - **`prompt`** (required): A descriptive input that specifies the type of sound effect to generate. - Type: text - Example: Prompt ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/voice/sfx \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "sfx", "prompt": "Thunderstorm with rain" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/voice/sfx", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "sfx", "prompt": "Thunderstorm with rain" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/voice/sfx", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "sfx", "prompt": "Thunderstorm with rain" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/sfx/sfx) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)