Audio & music
Synthesize speech, generate music, transcribe recordings, and change voices.
audio_detach
Alpha
Extract the audio track from a saved video in the connected workspace when its Creative flag is enabled.
Operation Write, approval required, requires the creative flag
Sample prompt: Extract a mono WAV from my uploaded video at 16000 Hz and return the audio URL.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Video program. |
body.video_url | string | Yes | — | URL of a video saved in this workspace. Maximum 100 MB. |
body.format | string | No | "wav" | Output format, wav or mp3. Default wav. |
body.range | object | No | — | Start and optional end in seconds. Omit for the full track. |
body.channels | string | No | "source" | Preserve the source layout or convert to mono. |
body.sample_rate | integer | No | — | Output sample rate in Hz, 16000, 44100, or 48000. |
body.metadata | object | No | — | Caller data to keep with the job. |
body.mode | string | No | — | Use async to get a job ID immediately, sync or subscribe for a bounded wait, or webhook for terminal delivery. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal delivery. |
body.wait_timeout_seconds | integer | No | — | Wait from 0 to 30 seconds in sync or subscribe mode. |
body.project_id | string | No | — | Destination project in the same workspace. |
idempotency_key | string | Yes | — | Reuse this key to retry the same request. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
generate_audio_batch
Alpha
Submit 1 to 12 speech or music generation requests in parallel. The first call returns a plan. After approval, resend the inputs with the receipt and the plan’s idempotency key in tools/call metadata.
Operation Write, approval required, requires the creative flag
Sample prompt: Plan a batch with two versions of the opening narration and show me the inputs before submitting it.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
context | string | No | — | Optional context for analytics. |
requests | array of object / object | Yes | — | — |
Send these values in tools/call request metadata under params._meta.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | The plan’s request.idempotencyKey. Reuse it after approval or when retrying the same action. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
music_generate
Start a music generation job with a catalog model in the connected workspace.
Operation Write, approval required
Sample prompt: Generate a slow piano piece with lyria-3-pro and return the MP3 when it is ready.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | The model defaults to orchestor/music-auto. Describe the desired track length in the prompt. |
body.model | string | No | — | Model ID from music_models_list. Defaults to orchestor/music-auto. |
body.prompt | string | Yes | — | Describe the music in up to 5,000 characters. |
body.negative_prompt | string | No | "" | Omit this field or send an empty string. Describe what to exclude in prompt. |
body.image_url | null / string | No | — | Public HTTPS reference image. |
body.metadata | object | No | — | Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field. |
body.mode | string | No | — | Use async to receive a job immediately. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode. |
body.wait_timeout_seconds | integer | No | — | Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job. |
body.project_id | string | No | — | Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing. |
idempotency_key | string | Yes | — | Reuse the key to retry the same input. |
approval_receipt | string | No | — | Plan receipt to submit after confirmation. |
music_generate_default
Start a music generation job with the default model in the connected workspace.
Operation Write, approval required
Sample prompt: Create an instrumental piano track for a sunrise video and return the MP3.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Generate a track from prompt. Describe the desired track length in the prompt and omit model and duration_seconds. |
body.prompt | string | Yes | — | Describe the music in up to 5,000 characters. |
body.negative_prompt | string | No | "" | Omit this field or send an empty string. Describe what to exclude in prompt. |
body.image_url | null / string | No | — | Public HTTPS reference image. |
body.metadata | object | No | — | Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field. |
body.mode | string | No | — | Use async to receive a job immediately. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode. |
body.wait_timeout_seconds | integer | No | — | Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job. |
body.project_id | string | No | — | Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing. |
idempotency_key | string | Yes | — | Reuse the key to retry the same input. |
approval_receipt | string | No | — | Plan receipt to submit after confirmation. |
stt_transcribe
Start a transcription job for a public audio file in the connected workspace.
Operation Write, approval required
Sample prompt: Transcribe this Japanese audio into sentences and give me the transcript JSON URL.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Transcribe public audio and return word timings. Billing uses the actual file duration irrespective of the supplied duration_seconds. |
body.audio_url | string | Yes | — | Public HTTPS audio URL. Keep it available until the job completes. |
body.segmentation | object | No | — | Settings for deriving sentence segments from word timings. For TTS, also enable timestamps.words. |
body.language_code | string | No | — | Language hint. Scribe detects the language when omitted. |
body.duration_seconds | integer | No | — | Estimated input duration. The server measures the actual duration to determine eligibility and cost. |
body.metadata | object | No | — | Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field. |
body.mode | string | No | — | Use async to receive a job immediately. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode. |
body.wait_timeout_seconds | integer | No | — | Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job. |
body.project_id | string | No | — | Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing. |
idempotency_key | string | Yes | — | Reuse the key to retry the same input. |
approval_receipt | string | No | — | Plan receipt to submit after confirmation. |
tts_generate
Start a text-to-speech job with a model and voice available to the connected workspace.
Operation Write, approval required
Sample prompt: Read “The next train is arriving” using a voice supported by the speech model, then return the audio URL.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Speech generation input. |
body.transcript | string | Conditional | — | Text to read aloud. |
body.transcript_source | object | Conditional | — | Input from an accepted script revision and its sentence IDs. Supply exactly one of transcript, transcript_source, and dialogue. |
body.dialogue | array of object | Conditional | — | List of speakers and their lines for ElevenLabs v4 or v3. The model’s character limit applies to the combined script. |
body.model | string | Yes | — | Model ID from tts_models_list. |
body.avatar_id | string | No | — | ID of an avatar in this workspace whose voice should be used. If you also supply voice.id, both must resolve to the same voice. |
body.avatar_handle | string | No | — | Handle of the avatar whose voice should be used. If you also supply avatar_id, both must identify the same avatar. |
body.voice | object | No | — | Voice selection. |
body.confirm_language_mismatch | boolean | No | — | Set to true only after the user confirms the mismatch between voice and language. Omit it on the initial request. |
body.language | string | No | — | BCP 47 or ISO 639 code for the spoken language. Explicitly use ja for Japanese. |
body.style_instruction | string | No | — | Speaking style or vocal tone for Qwen. |
body.text_normalization | boolean | No | — | MiniMax text normalization for spoken forms such as English numbers. |
body.reference_audios | array of string | No | — | Public HTTPS URLs for Seed Audio reference audio. Refer to the clips in the script using @Audio1, @Audio2, and @Audio3. |
body.reference_image | string | No | — | Public HTTPS URL of a Seed Audio reference image. Use either a reference image or reference audio. |
body.output_format | object | No | — | Output audio format. Choose a combination listed in the model’s capabilities.output_formats. |
body.pronunciation_dict_id | string | No | — | ID of an existing pronunciation dictionary. |
body.generation_config | object | No | — | Volume, speed, or emotion settings listed under the model’s capabilities.settings. |
body.speed | string | No | — | Speech speed. Use a numeric multiplier inside generation_config. The legacy top-level setting accepts slow, normal, or fast. |
body.timestamps | object | No | — | Include each word’s start and end times in the audio result. |
body.segmentation | object | No | — | Settings for deriving sentence segments from word timings. For TTS, also enable timestamps.words. |
body.metadata | object | No | — | Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field. |
body.mode | string | No | — | Use async to receive a job immediately. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode. |
body.wait_timeout_seconds | integer | No | — | Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job. |
body.project_id | string | No | — | Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing. |
body.voice_settings | object | No | — | Voice controls for Eleven models. Use only the controls supported by the selected model. |
body.apply_text_normalization | string | No | — | Expand numbers and abbreviations for speech. Available on supported models. |
body.seed | integer | No | — | Random seed for improving repeatability on supported Eleven v4 models. Output may still vary. |
idempotency_key | string | Yes | — | Use a unique key per action. Reuse it to retry identical input. |
approval_receipt | string | No | — | Receipt returned with the plan. Supply it after user confirmation. |
voice_change
Start a voice change job for an uploaded recording in the connected workspace.
Operation Write, approval required
Sample prompt: Change the voice in my uploaded narration to the selected ElevenLabs voice and return the changed recording.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Voice change input. |
body.file_id | string | Conditional | — | ID of the uploaded file. Supply exactly one of file_id, audio_url, or video_url. |
body.audio_url | string | Conditional | — | URL for an audio upload in the same workspace. |
body.video_url | string | Conditional | — | URL for a video upload with an audio track in the same workspace. |
body.duration_seconds | number | No | — | Playback duration of the input in seconds. Billing uses the duration measured by the server. |
body.voice | object | Yes | — | Target voice selection. |
body.voice_settings | object | No | — | — |
body.remove_background_noise | boolean | No | — | — |
body.output_format | string | No | — | Output audio format. PCM is returned as WAV. Video output uses the input clip’s format. |
idempotency_key | string | Yes | — | Use a unique key per action. Reuse it to retry identical input. |
approval_receipt | string | No | — | Receipt returned with the plan. Supply it after user confirmation. |