Sound Generation
sound-generateGenerate sound effects and short music tracks from text prompts (NOT speech: use tts for spoken voice). Returns the audio as base64 with its format, sample rate and duration. Use for sound effects, ambience and short instrumental music. It produces no spoken words: for speech use tts. Cost: 4 credits, charged only when a call succeeds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the sound effect or music to generate. NOT for speech (use tts for spoken voice). | |
| output_format | No | Audio format and quality. | mp3_44100_128 |
| duration_seconds | No | Length of generated audio in seconds (0.5 to 22). Leave unset to let the model auto-decide based on the prompt. | |
| prompt_influence | No | How strictly to follow the prompt (0.0 = creative, 1.0 = literal). Default 0.3. |