Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

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.

Prezzo base
$0.02USD / esecuzione
Esecuzione
async
Tipo di modello
audio
Campi di input
7
Route di produzione

Prova il modello

Playground

Apri playground
Input
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. Intervallo: da 0 a 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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

Scheda del modello

Specifiche

Prezzi

Prezzo base
$0.02 / esecuzione

Contesto e modalità

Input
Definito dallo schema
Output
audio

Funzionalità

Chat
Non supportato
Vision
Non supportato
Ragionamento
Non supportato
Output strutturato
Non supportato
Chiamata di funzione
Non supportato
Input audio
Non supportato

Accesso

Provider
sandbase-ai
ID modello
sandbase-ai/index-tts-2
Esecuzione
async
URL base
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.

Inizia a costruire

Invia la tua prima richiesta

Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.

API di produzione
Endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID del modello
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

Schema di input

7 parametri · 2 obbligatori · 5 facoltativi

ParametroTipoObbligatorioDescrizione
textstringObbligatorioThe text to speak.
audiostringObbligatorioReference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
strengthnumberFacoltativoStrength of the emotional style transfer. Higher values give stronger emotional influence. · Min: 0 · Max: 1 · Predefinito: 1
emotion_promptstringFacoltativoText whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
emotional_audiostringFacoltativoOptional audio file or URL whose emotional style is transferred to the output.
emotional_strengthsobjectFacoltativoPer-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanFacoltativoDerive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Predefinito: false
02

Schema di output

CampoTipoDescrizione
idstringIdentificatore univoco dell'attività di generazione
statusstringStato dell'attività: pending, running, completed, failed, timeout
modelstringModello usato per la generazione
outputsarrayArray di elementi di output
outputs[].urlstringURL dell'artefatto generato
outputs[].content_typestringTipo MIME (ad esempio image/png, video/mp4)
errorobject | nullDettagli dell'errore in caso di fallimento, null in caso di successo
error.typestringCodice del tipo di errore leggibile dalla macchina
error.messagestringDescrizione dell'errore leggibile dall'utente

Workflow asincrono

Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.

  1. Invio: esegui POST su /v1/run e leggi il id restituito.
  2. Polling: esegui GET /v1/run/{id} finché lo stato non è completed, failed o timeout.
  3. Recupero: leggi outputs dalla risposta completata.

Scegli il tuo modello

Confronta i modelli

Tutti i modelli di immagini e video
ModelloTipoPrezzo predefinitoRilasciato
Index TTS 2.0Questo modello
sandbase-ai
Audio$0.02 / esecuzione7 ott 2025
SandBase AIAudio$0.01 / esecuzione16 giu 2026
SandBase AIAudio$0.06 / esecuzione7 gen 2026
SandBase AIAudio$0.01 / esecuzione24 ott 2025
SandBase AIAudio$0.05 / esecuzione4 apr 2025
SandBase AIAudio$0.05 / esecuzione4 apr 2025

Domande

FAQ

Come chiamo sandbase-ai Index TTS 2.0 tramite SandBase?

Crea una chiave API SandBase, poi invia richieste con l'ID modello "sandbase-ai/index-tts-2" a Unified Run API (/v1/run) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.

Mi serve un account sandbase-ai separato?

No. Una sola chiave API e un solo saldo SandBase ti danno accesso a sandbase-ai Index TTS 2.0 e agli altri modelli del catalogo; non è necessario registrarsi separatamente su sandbase-ai.