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

Index TTS 2.0

sandbase-ai/index-tts-2

Index TTS 2.0 from bilibili's IndexTeam speaks text in the voice of a reference recording (zero-shot cloning) and controls emotion separately through a second reference clip, per-emotion strengths, or a text description.

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

Wypróbuj model

Playground

Otwórz Playground
Wejście
The text to speak.
Reference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
Optional audio file or URL whose emotional style is transferred to the output.
01
Strength of the emotional style transfer. Higher values give stronger emotional influence. Zakres: od 0 do 1.
Per-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
Derive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths.
Text whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
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.02 / 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
sandbase-ai
ID modelu
sandbase-ai/index-tts-2
Wykonanie
async
Bazowy URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README API

Index TTS 2.0

Index TTS 2.0 clones the voice in a reference clip and speaks new text with it. Emotion is controlled separately: from a second reference clip, eight per-emotion strengths, or the emotion inferred from text.

Fields

FieldTypeDefaultNotes
textstring, required—Text to speak.
audioaudio file or URL, required—Voice to clone.
emotional_audioaudio file or URL—Clip whose emotional style is transferred.
strengthnumber 0–11Strength of the emotional style transfer.
emotional_strengthsobject of numbers 0–1—happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanfalseInfer emotion from the text or emotion_prompt; overrides emotional_strengths.
emotion_promptstring—Text describing the emotion; used when should_use_prompt_for_emotion is true.

Billing

$0.002 per second of generated audio. The quote before submission assumes 10 seconds; the final charge uses the measured output length.

OutputPrice
10 seconds$0.02
30 seconds$0.06
1 minute$0.12

Failed runs are not charged.

Prompting

  • Use a clean 5–15 second reference clip of a single speaker.
  • Pick one emotion control: a reference clip, emotional_strengths, or should_use_prompt_for_emotion.

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
sandbase-ai/index-tts-2
# 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": "sandbase-ai/index-tts-2",
  "text": "Hide! He's coming! He's coming to get us!",
  "audio": "https://storage.googleapis.com/falserverless/example_inputs/index-tts-2/tts_in.mp3",
  "strength": 1,
  "emotion_prompt": "You scared me to death! What are you, a ghost?",
  "should_use_prompt_for_emotion": false
}
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

7 parametrów · 2 wymaganych · 5 opcjonalnych

ParametrTypWymaganeOpis
textstringWymaganeThe text to speak.
audiostringWymaganeReference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
strengthnumberOpcjonalneStrength of the emotional style transfer. Higher values give stronger emotional influence. · Min.: 0 · Maks.: 1 · Domyślnie: 1
emotion_promptstringOpcjonalneText whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
emotional_audiostringOpcjonalneOptional audio file or URL whose emotional style is transferred to the output.
emotional_strengthsobjectOpcjonalnePer-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanOpcjonalneDerive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Domyślnie: false
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
Index TTS 2.0Ten model
sandbase-ai
Audio$0.02 / uruchomienie7 paź 2025
SandBase AIAudio$0.01 / uruchomienie16 cze 2026
SandBase AIAudio$0.06 / uruchomienie7 sty 2026
SandBase AIAudio$0.01 / uruchomienie24 paź 2025
SandBase AIAudio$0.05 / uruchomienie4 kwi 2025
SandBase AIAudio$0.05 / uruchomienie4 kwi 2025

Pytania

FAQ

Jak wywołać sandbase-ai Index TTS 2.0 przez SandBase?

Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "sandbase-ai/index-tts-2" 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 sandbase-ai?

Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do sandbase-ai Index TTS 2.0 oraz innych modeli w katalogu; nie musisz osobno zakładać konta u sandbase-ai.