Sound Effects (SFX)
Generate a 3 to 15 second sound effect from a text prompt with Stable Audio Open 1.0, at $0.001 per second of audio.
POST https://modelslab.com/api/v7/voice/sound-generation with model_id: eleven_sound_effect ($0.06 per generation). Price comparisons with other sound effects APIs are on modelslab.com/sound-effects-api-pricing.Request
Make aPOST request to the endpoint below with the required parameters.
Body
Response
When the GPU queue is clear, the request returns the finished file:status: "processing", an eta in seconds, a fetch_result URL and the future_links where the file will appear. Keep the fetch_result URL (fetch replies do not repeat it) and POST to it with your key (see Fetch Voice) until status is success, failed or error, or pass a webhook to receive the result.Body
API key required to authorize the request
Descriptive input specifying the type of sound effect to generate
Length of the sound effect in whole seconds
3 <= x <= 15Audio file format
mp3, wav, flac Audio bitrate
128k, 192k, 320k Use temporary links for regions blocking storage access
URL to receive POST notification upon completion
ID for webhook identification
Response
Sound effects generation response
Status of the voice generation
success, processing, error Time taken to generate the audio in seconds
Unique identifier for the voice generation
Array of generated audio URLs
Array of proxy audio URLs
Array of future audio URLs for queued requests
Array of audio URLs (voice cover response)
Metadata about the audio generation including all parameters used
Estimated time for completion in seconds (processing status)
Status message or additional information
Additional information or tips for the user
URL to fetch the result when processing
Duration of the generated audio in seconds

