Stable Audio 3 Medium
Text to audio
Starting price $0.06 / run
Stable Audio 2.5 makes music or sound effects from a written description, from one second up to 190 seconds long.
stable-audio-25/text-to-audioQuote 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-25/text-to-audio",
"input": {
"prompt": "Warm lo-fi hip hop with soft piano chords, a dusty drum loop and light vinyl crackle, 80 BPM, calm and steady."
}
}'
# 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-25/text-to-audio", "quote_id": "QUOTE_ID", "input": {"prompt":"Warm lo-fi hip hop with soft piano chords, a dusty drum loop and light vinyl crackle, 80 BPM, calm and steady."}}'
# 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 |
|---|---|---|
promptrequired | string | The prompt to generate audio from |
seconds_total | integer | The duration of the audio clip to generate |
num_inference_steps | integer | The number of steps to denoise the audio for |
guidance_scale | number | How strictly the diffusion process adheres to the prompt text (higher values make your audio closer to your prompt). |
sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
seed | integer | Seed |
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.
Stable Audio 2.5 turns a text description into audio: a music cue, an ambient bed or a single sound effect. Set the length in whole seconds, up to 190.
Guidance sets how closely the result follows your words, and a seed lets you repeat a result you liked. Fewer steps give a rougher draft; the default uses the most.
Listen for abrupt endings, unwanted sounds and changes that do not fit the brief.