Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

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.

Preço base
$0.02USD / execução
Execução
async
Tipo de modelo
audio
Campos de entrada
7
Rota de produção

Testar o modelo

Playground

Abrir playground
Entrada
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. Intervalo: 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.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

Cartão do modelo

Especificações

Preços

Preço base
$0.02 / execução

Contexto e modalidades

Entrada
Definido pelo schema
Saída
audio

Capacidades

Chat
Não suportado
Visão
Não suportado
Raciocínio
Não suportado
Saída estruturada
Não suportado
Chamada de função
Não suportado
Entrada de áudio
Não suportado

Acesso

Provedor
sandbase-ai
ID do modelo
sandbase-ai/index-tts-2
Execução
async
URL base
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README da 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.

Comece a construir

Envie sua primeira solicitação

Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.

API de produção
endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID do modelo
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

Esquema de entrada

7 parâmetros · 2 obrigatórios · 5 opcionais

ParâmetroTipoObrigatórioDescrição
textstringObrigatórioThe text to speak.
audiostringObrigatórioReference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
strengthnumberOpcionalStrength of the emotional style transfer. Higher values give stronger emotional influence. · Mín.: 0 · Máx.: 1 · Padrão: 1
emotion_promptstringOpcionalText whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
emotional_audiostringOpcionalOptional audio file or URL whose emotional style is transferred to the output.
emotional_strengthsobjectOpcionalPer-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanOpcionalDerive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Padrão: false
02

Esquema de saída

CampoTipoDescrição
idstringIdentificador exclusivo da tarefa de geração
statusstringStatus da tarefa: pending, running, completed, failed, timeout
modelstringModelo usado para a geração
outputsarrayVetor de itens de saída
outputs[].urlstringURL do artefato gerado
outputs[].content_typestringTipo MIME (por exemplo, image/png, video/mp4)
errorobject | nullDetalhes do erro se houver falha, null em caso de sucesso
error.typestringCódigo do tipo de erro legível por máquina
error.messagestringDescrição do erro legível por humanos

Fluxo assíncrono

Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.

  1. Enviar: faça POST para /v1/run e leia o id retornado.
  2. Fazer polling: faça GET em /v1/run/{id} até o status ser completed, failed ou timeout.
  3. Recuperar: leia outputs da resposta concluída.

Escolha seu modelo

Comparar modelos

Todos os modelos de imagem e vídeo
ModeloTipoPreço padrãoLançado
Index TTS 2.0Este modelo
sandbase-ai
Áudio$0.02 / execução7 de out. de 2025
SandBase AIÁudio$0.01 / execução16 de jun. de 2026
SandBase AIÁudio$0.06 / execução7 de jan. de 2026
SandBase AIÁudio$0.01 / execução24 de out. de 2025
SandBase AIÁudio$0.05 / execução4 de abr. de 2025
SandBase AIÁudio$0.05 / execução4 de abr. de 2025

Perguntas

FAQ

Como faço chamadas ao sandbase-ai Index TTS 2.0 pela SandBase?

Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "sandbase-ai/index-tts-2" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.

Preciso de uma conta sandbase-ai separada?

Não. Uma única chave de API e saldo da SandBase dão acesso a sandbase-ai Index TTS 2.0 e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no sandbase-ai.