Skip to navigation

Stable Audio 3 Medium

Stable Audio 3 Medium
Stability AI · Audio Generation
POST /v1/audio/generations

Stability AI text-to-audio model for music and sound effects, 44.1 kHz stereo clips up to 380 seconds, with length, step and seed controls.

At a glance

FieldValue
Model idstable-audio-3-medium
Model release date2026-05-20
Input modalitiesText
Output modalitiesAudio
Context window-
Weight precisionFP16
Featuresmusic_generation, text_to_audio, sound_effects, seed_control
Native inferenceYes
NewYes
Supported endpointsPOST /v1/audio/generations
Alternate model idsstabilityai/stable-audio-3-medium

Pricing

ChargeSpecRate
Generationper request$0.035

Example request

curl https://api.empiriolabs.ai/v1/audio/generations \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "stable-audio-3-medium", "prompt": "rain on a tin roof", "audio_duration": 8}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringyes-The music or sound to generate.
audio_durationnumberno30Clip length in seconds, from 1 to 380. · Range: 1 – 380
num_inference_stepsnumberno8Sampling steps, from 4 to 8. · Range: 4 – 8
seednumberno-Random seed. Leave unset for a random one. · Range: 0 – 2147483647
formatenumno"mp3"Audio file format of the generated clip. · Allowed: mp3, wav, flac, ogg
response_formatenumno"url"Return a signed media URL by default, or base64 JSON when requested. · Allowed: url, b64_json
return_base64booleannofalseCompatibility alias for response_format=b64_json.

Notes

Generates music and sound effects from text: 44.1 kHz stereo, from 1 to 380 seconds per clip. Powered by Stability AI.

Input

  • A text prompt describing the music or sound: genre, instruments, mood, tempo, or the effect.
  • audio_duration sets the length in seconds, from 1 to 380. The default is 30.
  • num_inference_steps from 4 to 8. The default is 8.
  • seed repeats a result. Negative prompts, lyrics and audio inputs are not supported.

Output

  • MP3 by default, or WAV, FLAC or Ogg with format.
  • A signed URL by default, or base64 with response_format set to b64_json.

Billing

  • Billed per clip, whatever its length. A request that fails is not billed.

Weights

  • FP16.

Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/stable-audio-3-medium.