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.
- Precio base
- $0.02USD / ejecución
- Ejecución
- async
- Tipo de modelo
- audio
- Campos de entrada
- 7
Probar el modelo
Entorno de pruebas
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Ficha del modelo
Especificaciones
Precios
- Precio base
- $0.02 / ejecución
Contexto y modalidades
- Entrada
- Definido por esquema
- Salida
- audio
Capacidades
- Chat
- No compatible
- Visión
- No compatible
- Razonamiento
- No compatible
- Salida estructurada
- No compatible
- Llamadas a funciones
- No compatible
- Entrada de audio
- No compatible
Acceso
- Proveedor
- sandbase-ai
- ID del modelo
- sandbase-ai/index-tts-2
- Ejecución
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README de la 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
| 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.
Empiece a construir
Envíe su primera solicitud
Endpoint compatible con OpenAI con autenticación unificada y seguimiento de uso.
# 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"Esquema de entrada
7 parámetros · 2 obligatorios · 5 opcionales
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
text | string | Obligatorio | The text to speak. |
audio | string | Obligatorio | Reference speech audio file or URL; the output is spoken in this voice (zero-shot cloning). |
strength | number | Opcional | Strength of the emotional style transfer. Higher values give stronger emotional influence. · Mín.: 0 · Máx.: 1 · Valor predeterminado: 1 |
emotion_prompt | string | Opcional | Text whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion. |
emotional_audio | string | Opcional | Optional audio file or URL whose emotional style is transferred to the output. |
emotional_strengths | object | Opcional | Per-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm. |
should_use_prompt_for_emotion | boolean | Opcional | Derive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Valor predeterminado: false |
Esquema de salida
| Campo | Tipo | Descripción |
|---|---|---|
id | string | Identificador único de la tarea de generación |
status | string | Estado de la tarea: pending, running, completed, failed, timeout |
model | string | Modelo usado para la generación |
outputs | array | Matriz de elementos de salida |
outputs[].url | string | URL del artefacto generado |
outputs[].content_type | string | Tipo MIME (por ejemplo, image/png, video/mp4) |
error | object | null | Detalles del error si falla; null en caso de éxito |
error.type | string | Código de tipo de error legible por máquina |
error.message | string | Descripción del error legible por humanos |
Flujo asíncrono
Este modelo se ejecuta de forma asíncrona. Envía una solicitud y luego consulta el resultado.
- Enviar: haz POST a /v1/run y lee el
iddevuelto. - Consultar: haz GET a /v1/run/{id} hasta que el estado sea
completed,failedotimeout. - Recuperar: lee
outputsde la respuesta completada.
Elija su modelo
Comparar modelos
| Modelo | Tipo | Precio predeterminado | Lanzamiento |
|---|---|---|---|
Index TTS 2.0Este modelo sandbase-ai | Audio | $0.02 / ejecución | 7 oct 2025 |
SandBase AI | Audio | $0.01 / ejecución | 16 jun 2026 |
SandBase AI | Audio | $0.06 / ejecución | 7 ene 2026 |
SandBase AI | Audio | $0.01 / ejecución | 24 oct 2025 |
SandBase AI | Audio | $0.05 / ejecución | 4 abr 2025 |
SandBase AI | Audio | $0.05 / ejecución | 4 abr 2025 |
Preguntas
FAQ
¿Cómo llamo a sandbase-ai Index TTS 2.0 a través de SandBase?
Crea una clave API de SandBase y luego envía solicitudes con el ID de modelo "sandbase-ai/index-tts-2" a Unified Run API (/v1/run) en https://api.sandbase.ai. Los ejemplos de solicitud de esta página muestran el payload exacto.
¿Necesito una cuenta separada de sandbase-ai?
No. Una sola clave API y saldo de SandBase te dan acceso a sandbase-ai Index TTS 2.0 y a los demás modelos del catálogo; no necesitas registrarte aparte en sandbase-ai.
