Index TTS 2.0
sandbase-ai/index-tts-2Index 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.
- Taban fiyat
- $0.02USD / çalıştırma
- Çalıştırma
- async
- Model türü
- audio
- Girdi alanları
- 7
Modeli deneyin
Oynatma Alanı
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Model kartı
Teknik özellikler
Fiyatlandırma
- Temel fiyat
- $0.02 / çalıştırma
Bağlam ve modaliteler
- Girdi
- Şemada tanımlı
- Çıktı
- audio
Yetenekler
- Sohbet
- Desteklenmiyor
- Görsel
- Desteklenmiyor
- Akıl yürütme
- Desteklenmiyor
- Yapılandırılmış çıktı
- Desteklenmiyor
- Fonksiyon çağırma
- Desteklenmiyor
- Ses girdisi
- Desteklenmiyor
Erişim
- Sağlayıcı
- sandbase-ai
- Model kimliği
- sandbase-ai/index-tts-2
- Çalıştırma
- async
- Temel URL
- https://api.sandbase.ai
- API
- Unified Run API
- Uç nokta
- /v1/run
API README
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
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak. |
audio | audio file or URL, required | — | Voice to clone. |
emotional_audio | audio file or URL | — | Clip whose emotional style is transferred. |
strength | number 0–1 | 1 | Strength of the emotional style transfer. |
emotional_strengths | object of numbers 0–1 | — | happy, angry, sad, afraid, disgusted, melancholic, surprised, calm. |
should_use_prompt_for_emotion | boolean | false | Infer emotion from the text or emotion_prompt; overrides emotional_strengths. |
emotion_prompt | string | — | 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.
| Output | Price |
|---|---|
| 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, orshould_use_prompt_for_emotion.
Geliştirmeye başlayın
İlk isteğinizi gönderin
Birleşik kimlik doğrulama ve kullanım takibi sunan OpenAI uyumlu uç nokta.
# 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"Giriş Şeması
7 parametre · 2 zorunlu · 5 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
text | string | Zorunlu | The text to speak. |
audio | string | Zorunlu | Reference speech audio file or URL; the output is spoken in this voice (zero-shot cloning). |
strength | number | İsteğe bağlı | Strength of the emotional style transfer. Higher values give stronger emotional influence. · Min: 0 · Maks: 1 · Varsayılan: 1 |
emotion_prompt | string | İsteğe bağlı | Text whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion. |
emotional_audio | string | İsteğe bağlı | Optional audio file or URL whose emotional style is transferred to the output. |
emotional_strengths | object | İsteğe bağlı | Per-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm. |
should_use_prompt_for_emotion | boolean | İsteğe bağlı | Derive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Varsayılan: false |
Çıkış Şeması
| Alan | Tür | Açıklama |
|---|---|---|
id | string | Üretim görevinin benzersiz tanımlayıcısı |
status | string | Görev durumu: pending, running, completed, failed, timeout |
model | string | Üretimde kullanılan model |
outputs | array | Çıkış öğelerinin dizisi |
outputs[].url | string | Oluşturulan çıktının URL'si |
outputs[].content_type | string | MIME türü (örn. image/png, video/mp4) |
error | object | null | Başarısız olursa hata ayrıntıları, başarıda null |
error.type | string | Makine tarafından okunabilir hata türü kodu |
error.message | string | İnsan tarafından okunabilir hata açıklaması |
Asenkron İş Akışı
Bu model asenkron çalışır. Bir istek gönderin, ardından sonuç için sorgulayın.
- Gönder: /v1/run adresine POST yapın ve dönen
idalanını okuyun. - Sorgula: durum
completed,failedveyatimeoutolana kadar /v1/run/{id} adresine GET yapın. - Al: tamamlanan yanıttan
outputsalanını okuyun.
Modelinizi seçin
Modelleri karşılaştırın
| Model | Tür | Varsayılan fiyat | Yayınlanma |
|---|---|---|---|
Index TTS 2.0Bu model sandbase-ai | Ses | $0.02 / çalıştırma | 7 Eki 2025 |
SandBase AI | Ses | $0.01 / çalıştırma | 16 Haz 2026 |
SandBase AI | Ses | $0.06 / çalıştırma | 7 Oca 2026 |
SandBase AI | Ses | $0.01 / çalıştırma | 24 Eki 2025 |
SandBase AI | Ses | $0.05 / çalıştırma | 4 Nis 2025 |
SandBase AI | Ses | $0.05 / çalıştırma | 4 Nis 2025 |
Sorular
SSS
sandbase-ai Index TTS 2.0'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "sandbase-ai/index-tts-2" ile https://api.sandbase.ai adresindeki Unified Run API (/v1/run) uç noktalarına istek gönderin. Bu sayfadaki istek örnekleri tam yükü gösterir.
Ayrı bir sandbase-ai hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size sandbase-ai Index TTS 2.0 ve katalogdaki diğer modellere erişim sağlar; sandbase-ai için ayrıca kayıt olmanız gerekmez.
