Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Stable Audio 3 Medium Text to Audio

stability-ai/stable-audio/3/medium/text-to-audio

Stable Audio 3 Medium by Stability AI generates music, ambience and sound design up to about 6 minutes from a text prompt.

Grundpreis
$0.04USD / Ausführung
Ausführung
async
Modelltyp
audio
Eingabefelder
5
Produktionsroute

Modell testen

Playground

Playground öffnen
Eingabe
Random seed for reproducible outputs.
Text description of the audio to generate.
1380
Duration in seconds (1–380). Bereich: 1 bis 380.
Audio container format.
Qualities to avoid in the output.
AusgabeBeispiel
  1. Was möchten Sie als Nächstes tun?

    Original öffnen

Beispiele

Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.

  • Eingabe
    {
      "duration": 10,
      "prompt": "calm lo-fi piano loop"
    }
    Ergebnis öffnen ↗

Modellkarte

Spezifikationen

Preisgestaltung

Basispreis
$0.04 / Ausführung

Kontext & Modalitäten

Eingabe
Schema-definiert
Ausgabe
audio

Funktionen

Chat
Nicht unterstützt
Vision
Nicht unterstützt
Reasoning
Nicht unterstützt
Strukturierte Ausgabe
Nicht unterstützt
Function Calling
Nicht unterstützt
Audioeingabe
Nicht unterstützt

Zugriff

Anbieter
stability-ai
Modell-ID
stability-ai/stable-audio/3/medium/text-to-audio
Ausführung
async
Basis-URL
https://api.sandbase.ai
API
Unified Run API
Endpunkt
/v1/run

API-README

Stable Audio 3 Medium Text to Audio

Stable Audio 3 Medium generates music, ambience, and sound design up to about 6 minutes from a prompt.

Fields

FieldTypeDefaultNotes
promptstring, required—Text instruction.
durationinteger 1–38030Length in seconds (1–380).
output_formatmp3 / wav / flac / ogg / opus / m4a / aacmp3Output file format.
negative_promptstring—What to avoid.
seedintegerrandomFix it to compare prompt changes.

Billing

$0.0376 per generation.

RequestPrice
One track$0.0376

Failed runs are not charged.

Prompting

  • Name genre, instruments, tempo, and mood.

Also on SandBase

Related: stability-ai/stable-audio/3/small/music/text-to-audio.

Jetzt loslegen

Senden Sie Ihre erste Anfrage

OpenAI-kompatibler Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.

Produktions-API
Unified Run API-Endpunkt
https://api.sandbase.ai/v1/run
Modell-ID
stability-ai/stable-audio/3/medium/text-to-audio
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "stability-ai/stable-audio/3/medium/text-to-audio",
  "prompt": "An anthemic Pop Rock instrumental that fills your head with nostalgic thoughtfulness",
  "duration": 30,
  "output_format": "mp3"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"
01

Eingabeschema

5 Parameter · 1 erforderlich · 4 optional

ParameterTypErforderlichBeschreibung
promptstringErforderlichText description of the audio to generate.
seedintegerOptionalRandom seed for reproducible outputs.
durationintegerOptionalDuration in seconds (1–380). · Min.: 1 · Max.: 380 · Standard: 30
output_formatstringOptionalAudio container format. · Optionen: mp3, wav, flac, ogg, opus, m4a, aac · Standard: "mp3"
mp3wavflacoggopusm4aaac
negative_promptstringOptionalQualities to avoid in the output. · Standard: ""
02

Ausgabeschema

FeldTypBeschreibung
idstringEindeutige Kennung für den Generierungsauftrag
statusstringStatus des Auftrags: pending, running, completed, failed, timeout
modelstringVerwendetes Modell für die Generierung
outputsarrayArray von Ausgabeelementen
outputs[].urlstringURL des generierten Artefakts
outputs[].content_typestringMIME-Typ (z. B. image/png, video/mp4)
errorobject | nullFehlerdetails bei Fehlschlag, bei Erfolg null
error.typestringMaschinenlesbarer Fehler-Typcode
error.messagestringMenschenlesbare Fehlerbeschreibung

Asynchroner Workflow

Dieses Modell läuft asynchron. Senden Sie eine Anfrage und pollen Sie dann das Ergebnis.

  1. Senden: Per POST an /v1/run senden und das zurückgegebene id lesen.
  2. Pollen: GET /v1/run/{id}, bis der Status completed, failed oder timeout ist.
  3. Abrufen: outputs aus der abgeschlossenen Antwort lesen.

Wählen Sie Ihr Modell

Modelle vergleichen

Alle Bild- und Videomodelle
ModellTypStandardpreisVeröffentlicht
stability-aiAudio$0.04 / Lauf3. Juni 2026
Stability AIAudio$0.06 / Lauf3. Juni 2026
Stability AIAudio$0.05 / Lauf3. Juni 2026
Stability AIAudio$0.05 / Lauf3. Juni 2026
Stability AIAudio$0.05 / Lauf3. Juni 2026
Stability AIAudio$0.03 / Lauf3. Juni 2026

Fragen

FAQ

Wie rufe ich stability-ai Stable Audio 3 Medium Text to Audio über SandBase auf?

Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "stability-ai/stable-audio/3/medium/text-to-audio" an Unified Run API (/v1/run) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.

Benötige ich ein separates stability-ai-Konto?

Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf stability-ai Stable Audio 3 Medium Text to Audio und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei stability-ai registrieren.