Generate Sound Effect
xbrush_sound_effect_generateGenerate foley or ambient sound effects for a video using video-driven or text-driven models. Submit a video URL and optional prompt; poll the returned request ID for results.
Instructions
Generate foley / ambient sound effects for a given video. Video-driven models (pixverse-sound-effects) design sound from the visuals; text-driven models (elevenlabs-sound-effects, stable-audio-sfx) generate from prompt — but video_url is required for every model. Submits async — poll the returned request_id with xbrush_get_request.
Args: video_url (string, required): Source video URL (required even for text-driven models). prompt (string, optional): Sound description — main input for text-driven models. model (string, optional): Sound-effect model ID. Server default if omitted. duration (number, optional): Seconds (1-30).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Sound-effect model ID: pixverse-sound-effects (video-driven), elevenlabs-sound-effects / stable-audio-sfx (text-driven — describe the sound in prompt). Server default if omitted. | |
| prompt | No | Text description of the sound (e.g. 'gentle rain on leaves'). Main input for text-driven models; a bias hint for video-driven ones. | |
| duration | No | Sound duration in seconds (1-30). | |
| video_url | Yes | URL of the source video. Required for all models (even text-driven ones). |