Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Stable Audio 2.5 Audio to Audio

stability-ai/stable-audio/2.5/audio-to-audio

Stable Audio 2.5 Audio to Audio by Stability AI transforms an existing clip into new music or sound guided by a text prompt, with a strength control that sets how far it moves from the source.

Cena bazowa
$0.20USD / uruchomienie
Wykonanie
async
Typ modelu
audio
Pola wejściowe
5
Trasa produkcyjna

Wypróbuj model

Playground

Otwórz Playground
Wejście
Text description of how the source audio should be transformed.
Source audio file or URL to transform.
0.011
How much the output may differ from the source audio (0.01–1). Values near 0 keep the input; 1 ignores it. Zakres: od 0.01 do 1.
1190
Length of the generated audio in seconds (1–190). Defaults to the length of the source audio. Zakres: od 1 do 190.
Random seed for reproducible outputs.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

Karta modelu

Specyfikacja

Cennik

Cena bazowa
$0.20 / uruchomienie

Kontekst i modalności

Wejście
Zdefiniowane przez schemat
Wyjście
audio

Możliwości

Czat
Nieobsługiwane
Wizja
Nieobsługiwane
Rozumowanie
Nieobsługiwane
Ustrukturyzowany wynik
Nieobsługiwane
Wywoływanie funkcji
Nieobsługiwane
Wejście audio
Nieobsługiwane

Dostęp

Dostawca
Stability AI
ID modelu
stability-ai/stable-audio/2.5/audio-to-audio
Wykonanie
async
Bazowy URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README API

Stable Audio 2.5 Audio to Audio

Reworks a source clip into new audio from a prompt, with up to 190 seconds of output.

Fields

FieldTypeDefaultNotes
promptstring, required—Text description of how the source audio should be transformed.
audioaudio file or URL, required—Source audio file or URL to transform.
strengthnumber 0.01–10.8Edit strength: near 0 keeps the source, 1 ignores it.
durationinteger 1–190—Length of the generated audio in seconds (1–190). Defaults to the length of the source audio.
seedintegerrandomFix it to compare prompt changes.

Billing

$0.20 per generation, regardless of duration or settings.

RequestPrice
One track$0.20
10 tracks$2.00

Failed runs are not charged.

Prompting

  • Describe the target style; lower strength (around 0.5) to keep more of the source rhythm and melody.

Also on SandBase

Related: stability-ai/stable-audio/2.5/text-to-audio, stability-ai/stable-audio/2.5/inpaint, stability-ai/stable-audio/3/medium/audio-to-audio.

Zacznij tworzyć

Wyślij pierwsze żądanie

Kompatybilny z OpenAI endpoint z jednolitym uwierzytelnianiem i śledzeniem użycia.

API produkcyjne
endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID modelu
stability-ai/stable-audio/2.5/audio-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/2.5/audio-to-audio",
  "audio": "https://static.sandbase.ai/examples/stability-ai/stable-audio/2.5/audio-to-audio/input_audio_0.wav",
  "prompt": "Post rock, guitars, bass, strings, euphoric, up-lifting, moody, flowing, raw, epic",
  "strength": 0.8
}
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

Schemat wejścia

5 parametrów · 2 wymaganych · 3 opcjonalnych

ParametrTypWymaganeOpis
audiostringWymaganeSource audio file or URL to transform.
promptstringWymaganeText description of how the source audio should be transformed.
seedintegerOpcjonalneRandom seed for reproducible outputs.
durationintegerOpcjonalneLength of the generated audio in seconds (1–190). Defaults to the length of the source audio. · Min.: 1 · Maks.: 190
strengthnumberOpcjonalneHow much the output may differ from the source audio (0.01–1). Values near 0 keep the input; 1 ignores it. · Min.: 0.01 · Maks.: 1 · Domyślnie: 0.8
02

Schemat wyjścia

PoleTypOpis
idstringUnikalny identyfikator zadania generowania
statusstringStatus zadania: pending, running, completed, failed, timeout
modelstringModel użyty do generowania
outputsarrayTablica elementów wyjściowych
outputs[].urlstringURL wygenerowanego artefaktu
outputs[].content_typestringTyp MIME (np. image/png, video/mp4)
errorobject | nullSzczegóły błędu, jeśli wystąpił; null w przypadku powodzenia
error.typestringMaszynowo czytelny kod typu błędu
error.messagestringOpis błędu czytelny dla człowieka

Asynchroniczny przepływ pracy

Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.

  1. Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone id.
  2. Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy completed, failed lub timeout.
  3. Pobierz: odczytaj outputs z ukończonej odpowiedzi.

Wybierz swój model

Porównaj modele

Wszystkie modele obrazu i wideo
ModelTypCena domyślnaWydano
Stability AIAudio$0.20 / uruchomienie10 wrz 2025
Stability AIAudio$0.06 / uruchomienie3 cze 2026
Stability AIAudio$0.05 / uruchomienie3 cze 2026
Stability AIAudio$0.05 / uruchomienie3 cze 2026
Stability AIAudio$0.05 / uruchomienie3 cze 2026
Stability AIAudio$0.03 / uruchomienie3 cze 2026

Pytania

FAQ

Jak wywołać Stability AI Stable Audio 2.5 Audio to Audio przez SandBase?

Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "stability-ai/stable-audio/2.5/audio-to-audio" do Unified Run API (/v1/run) na https://api.sandbase.ai. Przykłady żądań na tej stronie pokazują dokładny payload.

Czy potrzebuję osobnego konta Stability AI?

Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do Stability AI Stable Audio 2.5 Audio to Audio oraz innych modeli w katalogu; nie musisz osobno zakładać konta u Stability AI.