ModelsLab/SoundEffect (SFX)
sfxThe 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.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/voice/sfx
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"prompt": "Thunderstorm with rain","duration": "10","webhook": null,"track_id": null,"key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | A descriptive input that specifies the type of sound effect to generate. |
| duration | duration | Length of generated sound effect in seconds |
| webhook | webhook | URL to receive POST notification upon completion |
| track_id | track_id | ID for webhook identification |