Audio & music
Beta

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

ParameterTypeRequiredDefaultDescription
bodyobjectYes—Video program.
body.video_urlstringYes—URL of a video saved in this workspace. Maximum 100 MB.
body.formatstringNo"wav"Output format, wav or mp3. Default wav.
body.rangeobjectNo—Start and optional end in seconds. Omit for the full track.
body.channelsstringNo"source"Preserve the source layout or convert to mono.
body.sample_rateintegerNo—Output sample rate in Hz, 16000, 44100, or 48000.
body.metadataobjectNo—Caller data to keep with the job.
body.modestringNo—Use async to get a job ID immediately, sync or subscribe for a bounded wait, or webhook for terminal delivery.
body.webhook_urlstringNo—Public HTTPS URL for terminal delivery.
body.wait_timeout_secondsintegerNo—Wait from 0 to 30 seconds in sync or subscribe mode.
body.project_idstringNo—Destination project in the same workspace.
idempotency_keystringYes—Reuse this key to retry the same request.
approval_receiptstringNo—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

ParameterTypeRequiredDefaultDescription
contextstringNo—Optional context for analytics.
requestsarray of object / objectYes——

Send these values in tools/call request metadata under params._meta.

ParameterTypeRequiredDefaultDescription
idempotency_keystringNo—The plan’s request.idempotencyKey. Reuse it after approval or when retrying the same action.
approval_receiptstringNo—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

ParameterTypeRequiredDefaultDescription
bodyobjectYes—The model defaults to orchestor/music-auto. Describe the desired track length in the prompt.
body.modelstringNo—Model ID from music_models_list. Defaults to orchestor/music-auto.
body.promptstringYes—Describe the music in up to 5,000 characters.
body.negative_promptstringNo""Omit this field or send an empty string. Describe what to exclude in prompt.
body.image_urlnull / stringNo—Public HTTPS reference image.
body.metadataobjectNo—Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field.
body.modestringNo—Use async to receive a job immediately.
body.webhook_urlstringNo—Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode.
body.wait_timeout_secondsintegerNo—Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job.
body.project_idstringNo—Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing.
idempotency_keystringYes—Reuse the key to retry the same input.
approval_receiptstringNo—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

ParameterTypeRequiredDefaultDescription
bodyobjectYes—Generate a track from prompt. Describe the desired track length in the prompt and omit model and duration_seconds.
body.promptstringYes—Describe the music in up to 5,000 characters.
body.negative_promptstringNo""Omit this field or send an empty string. Describe what to exclude in prompt.
body.image_urlnull / stringNo—Public HTTPS reference image.
body.metadataobjectNo—Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field.
body.modestringNo—Use async to receive a job immediately.
body.webhook_urlstringNo—Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode.
body.wait_timeout_secondsintegerNo—Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job.
body.project_idstringNo—Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing.
idempotency_keystringYes—Reuse the key to retry the same input.
approval_receiptstringNo—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

ParameterTypeRequiredDefaultDescription
bodyobjectYes—Transcribe public audio and return word timings. Billing uses the actual file duration irrespective of the supplied duration_seconds.
body.audio_urlstringYes—Public HTTPS audio URL. Keep it available until the job completes.
body.segmentationobjectNo—Settings for deriving sentence segments from word timings. For TTS, also enable timestamps.words.
body.language_codestringNo—Language hint. Scribe detects the language when omitted.
body.duration_secondsintegerNo—Estimated input duration. The server measures the actual duration to determine eligibility and cost.
body.metadataobjectNo—Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field.
body.modestringNo—Use async to receive a job immediately.
body.webhook_urlstringNo—Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode.
body.wait_timeout_secondsintegerNo—Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job.
body.project_idstringNo—Project in the same workspace where the job will be saved. If the project does not exist, the request is rejected before billing.
idempotency_keystringYes—Reuse the key to retry the same input.
approval_receiptstringNo—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

ParameterTypeRequiredDefaultDescription
bodyobjectYes—Speech generation input.
body.transcriptstringConditional—Text to read aloud.
body.transcript_sourceobjectConditional—Input from an accepted script revision and its sentence IDs. Supply exactly one of transcript, transcript_source, and dialogue.
body.dialoguearray of objectConditional—List of speakers and their lines for ElevenLabs v4 or v3. The model’s character limit applies to the combined script.
body.modelstringYes—Model ID from tts_models_list.
body.avatar_idstringNo—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_handlestringNo—Handle of the avatar whose voice should be used. If you also supply avatar_id, both must identify the same avatar.
body.voiceobjectNo—Voice selection.
body.confirm_language_mismatchbooleanNo—Set to true only after the user confirms the mismatch between voice and language. Omit it on the initial request.
body.languagestringNo—BCP 47 or ISO 639 code for the spoken language. Explicitly use ja for Japanese.
body.style_instructionstringNo—Speaking style or vocal tone for Qwen.
body.text_normalizationbooleanNo—MiniMax text normalization for spoken forms such as English numbers.
body.reference_audiosarray of stringNo—Public HTTPS URLs for Seed Audio reference audio. Refer to the clips in the script using @Audio1, @Audio2, and @Audio3.
body.reference_imagestringNo—Public HTTPS URL of a Seed Audio reference image. Use either a reference image or reference audio.
body.output_formatobjectNo—Output audio format. Choose a combination listed in the model’s capabilities.output_formats.
body.pronunciation_dict_idstringNo—ID of an existing pronunciation dictionary.
body.generation_configobjectNo—Volume, speed, or emotion settings listed under the model’s capabilities.settings.
body.speedstringNo—Speech speed. Use a numeric multiplier inside generation_config. The legacy top-level setting accepts slow, normal, or fast.
body.timestampsobjectNo—Include each word’s start and end times in the audio result.
body.segmentationobjectNo—Settings for deriving sentence segments from word timings. For TTS, also enable timestamps.words.
body.metadataobjectNo—Tracking data stored with the job. The generation provider does not receive it. Keep secrets and personal information out of this field.
body.modestringNo—Use async to receive a job immediately.
body.webhook_urlstringNo—Public HTTPS URL for terminal notifications. Supplying it without a mode selects webhook mode.
body.wait_timeout_secondsintegerNo—Seconds to wait for the HTTP response in sync or subscribe mode. If the wait expires, continue tracking the same job.
body.project_idstringNo—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_settingsobjectNo—Voice controls for Eleven models. Use only the controls supported by the selected model.
body.apply_text_normalizationstringNo—Expand numbers and abbreviations for speech. Available on supported models.
body.seedintegerNo—Random seed for improving repeatability on supported Eleven v4 models. Output may still vary.
idempotency_keystringYes—Use a unique key per action. Reuse it to retry identical input.
approval_receiptstringNo—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

ParameterTypeRequiredDefaultDescription
bodyobjectYes—Voice change input.
body.file_idstringConditional—ID of the uploaded file. Supply exactly one of file_id, audio_url, or video_url.
body.audio_urlstringConditional—URL for an audio upload in the same workspace.
body.video_urlstringConditional—URL for a video upload with an audio track in the same workspace.
body.duration_secondsnumberNo—Playback duration of the input in seconds. Billing uses the duration measured by the server.
body.voiceobjectYes—Target voice selection.
body.voice_settingsobjectNo——
body.remove_background_noisebooleanNo——
body.output_formatstringNo—Output audio format. PCM is returned as WAV. Video output uses the input clip’s format.
idempotency_keystringYes—Use a unique key per action. Reuse it to retry identical input.
approval_receiptstringNo—Receipt returned with the plan. Supply it after user confirmation.