Overview
Generate sound effects and short music tracks from text prompts (NOT speech: use tts for spoken voice)
Credits
4 credits per call
Providers
SDK Method
client.generate_sound(...)
Parameters
promptRequiredstring
Description of the sound effect or music to generate. NOT for speech (use tts for spoken voice).
duration_secondsnumber (default: 5)
Length of generated audio in seconds (0.5 to 22). Leave unset to let the model auto-decide based on the prompt.
prompt_influencenumber (default: 0.3)
How strictly to follow the prompt (0.0 = creative, 1.0 = literal). Default 0.3.
output_formatselect (default: mp3_44100_128)
Audio format and quality.
Example Response
{
"success": true,
"data": {
"audio_base64": "SUQzBAAAAAAAI1RTU0UAAAA...(base64 audio data)",
"format": "mp3",
"sample_rate": 44100,
"duration_seconds": 2,
"prompt": "short doorbell chime"
},
"metadata": {
"provider_used": "elevenlabs",
"providers_tried": [
"elevenlabs"
],
"mode_used": null,
"response_time_ms": 1500,
"request_id": "req_8bc6c1f9"
},
"credits_used": 4
}Get Started
Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.