ElevenLabs Music
Text to audio
Starting price $4.76 / run
Stable Audio 3 Medium Base makes music and sound from a text description, up to 380 seconds long, and can rework, repair or extend a recording you upload.
stable-audio-3/medium/base/audio-inpaintingThis model has other modes with their own ids: stable-audio-3/medium/base/text-to-audio, stable-audio-3/medium/base/audio-to-audio, stable-audio-3/medium/base/audio-outpainting.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "stable-audio-3/medium/base/audio-inpainting",
"input": {
"prompt": "A smooth drum fill that leads back into the groove, with the same tempo and instruments.",
"audio_url": "https://example.com/input.mp3",
"mask_start_seconds": 0,
"mask_end_seconds": 0
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "stable-audio-3/medium/base/audio-inpainting", "quote_id": "QUOTE_ID", "input": {"prompt":"A smooth drum fill that leads back into the groove, with the same tempo and instruments.","audio_url":"https://example.com/input.mp3","mask_start_seconds":0,"mask_end_seconds":0}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
negative_prompt | string | Text description of qualities to avoid in the output. |
num_inference_steps | integer | Number of sampling steps. Base (non-distilled) checkpoints typically need ~50 for good quality. |
guidance_scale | number | Classifier-free guidance scale. Higher values follow the prompt more strictly; ~7.0 is a good starting point for base checkpoints. |
seed | integer | Random seed for reproducible outputs. Omit for a random seed. |
enable_prompt_expansion | boolean | If True, the prompt will be expanded using an LLM for more detailed and higher quality results. |
sync_mode | boolean | If True, the audio is returned inline as a data URI and the result is not saved to the request history. |
output_format | string (enum) | Container format for the generated audio output. |
bitrate | string | Audio bitrate for compressed output formats (e.g., mp3, aac, opus). Format e.g. '192k' or '320k'. Ignored for lossless formats (wav, flac). |
promptrequired | string | Text description guiding how the masked region is regenerated. |
audio_urlrequired | string (URL) | Source audio. Only the masked region is regenerated. |
mask_start_secondsrequired | number | Start of the region to regenerate, in seconds. |
mask_end_secondsrequired | number | End of the region to regenerate, in seconds. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Four modes share the same controls. Text to audio starts from a description. Audio to audio reworks an uploaded file, and a noise level sets how far it may drift from the source. Inpainting regenerates only the stretch between a start and an end time, and outpainting adds new audio before or after the recording.
This is the unmodified base version, meant as a starting point for fine-tuning. It runs 50 steps by default and follows the guidance setting. A negative prompt lists what to avoid, and output comes as MP3, WAV, FLAC, OGG, Opus, M4A or AAC.
Listen to the complete output, including edit boundaries, stereo balance, noise and the ending.