Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

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.

Harga dasar
$0.02USD / run
Eksekusi
async
Jenis model
audio
Field input
7
Rute produksi

Coba model ini

Playground

Buka 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. Rentang: 0 hingga 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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

Kartu model

Spesifikasi

Harga

Harga dasar
$0.02 / run

Konteks & modalitas

Input
Didefinisikan oleh skema
Output
audio

Kemampuan

Chat
Tidak didukung
Vision
Tidak didukung
Penalaran
Tidak didukung
Output terstruktur
Tidak didukung
Pemanggilan fungsi
Tidak didukung
Input audio
Tidak didukung

Akses

Penyedia
sandbase-ai
Model ID
sandbase-ai/index-tts-2
Eksekusi
async
Base 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.

Mulai membangun

Kirim permintaan pertama Anda

Endpoint yang kompatibel dengan OpenAI dengan autentikasi dan pelacakan penggunaan terpadu.

Production API
Endpoint Unified Run API
https://api.sandbase.ai/v1/run
Model ID
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

Skema Input

7 parameter · 2 wajib · 5 opsional

ParameterTipeWajibDeskripsi
textstringWajibThe text to speak.
audiostringWajibReference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
strengthnumberOpsionalStrength of the emotional style transfer. Higher values give stronger emotional influence. · Min: 0 · Maks: 1 · Bawaan: 1
emotion_promptstringOpsionalText whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
emotional_audiostringOpsionalOptional audio file or URL whose emotional style is transferred to the output.
emotional_strengthsobjectOpsionalPer-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanOpsionalDerive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Bawaan: false
02

Skema Output

FieldTipeDeskripsi
idstringPengidentifikasi unik untuk tugas generasi
statusstringStatus tugas: pending, running, completed, failed, timeout
modelstringModel yang digunakan untuk generasi
outputsarrayArray item output
outputs[].urlstringURL artefak yang dihasilkan
outputs[].content_typestringTipe MIME (mis. image/png, video/mp4)
errorobject | nullDetail error jika gagal, null jika berhasil
error.typestringKode jenis error yang dapat dibaca mesin
error.messagestringDeskripsi error yang dapat dibaca manusia

Alur Kerja Asinkron

Model ini berjalan secara asinkron. Kirim permintaan, lalu polling untuk hasilnya.

  1. Kirim: POST ke /v1/run dan baca id yang dikembalikan.
  2. Polling: GET /v1/run/{id} sampai status menjadi completed, failed, atau timeout.
  3. Ambil: baca outputs dari response yang selesai.

Pilih model Anda

Bandingkan model

Semua model gambar & video
ModelTipeHarga defaultRilis
Index TTS 2.0Model ini
sandbase-ai
Audio$0.02 / run7 Okt 2025
SandBase AIAudio$0.01 / run16 Jun 2026
SandBase AIAudio$0.06 / run7 Jan 2026
SandBase AIAudio$0.01 / run24 Okt 2025
SandBase AIAudio$0.05 / run4 Apr 2025
SandBase AIAudio$0.05 / run4 Apr 2025

Pertanyaan

FAQ

Bagaimana cara memanggil sandbase-ai Index TTS 2.0 melalui SandBase?

Buat kunci API SandBase, lalu kirim permintaan dengan model ID "sandbase-ai/index-tts-2" ke Unified Run API (/v1/run) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.

Apakah saya memerlukan akun sandbase-ai terpisah?

Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke sandbase-ai Index TTS 2.0 dan model lain di katalog; Anda tidak perlu mendaftar ke sandbase-ai secara terpisah.