Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

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.

Базовая цена
$0.02USD / запуск
Выполнение
async
Тип модели
audio
Поля ввода
7
Маршрут продакшена

Попробовать модель

Песочница

Открыть playground
Ввод
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. Диапазон: от 0 до 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.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

Карточка модели

Характеристики

Цены

Базовая цена
$0.02 / запуск

Контекст и модальности

Вход
Определяется схемой
Выход
audio

Возможности

Чат
Не поддерживается
Зрение
Не поддерживается
Рассуждение
Не поддерживается
Структурированный вывод
Не поддерживается
Вызов функций
Не поддерживается
Аудиовход
Не поддерживается

Доступ

Провайдер
sandbase-ai
ID модели
sandbase-ai/index-tts-2
Выполнение
async
Базовый URL
https://api.sandbase.ai
API
Unified Run API
Эндпоинт
/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.

Начните разработку

Отправьте свой первый запрос

Совместимая с OpenAI конечная точка с единообразной аутентификацией и учётом использования.

Production API
конечная точка Unified Run API
https://api.sandbase.ai/v1/run
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

Схема ввода

7 параметров · 2 обязательных · 5 необязательных

ПараметрТипОбязательныйОписание
textstringОбязательныйThe text to speak.
audiostringОбязательныйReference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
strengthnumberНеобязательныйStrength of the emotional style transfer. Higher values give stronger emotional influence. · Мин.: 0 · Макс.: 1 · По умолчанию: 1
emotion_promptstringНеобязательныйText whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
emotional_audiostringНеобязательныйOptional audio file or URL whose emotional style is transferred to the output.
emotional_strengthsobjectНеобязательныйPer-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanНеобязательныйDerive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · По умолчанию: false
02

Схема вывода

ПолеТипОписание
idstringУникальный идентификатор задачи генерации
statusstringСтатус задачи: pending, running, completed, failed, timeout
modelstringМодель, использованная для генерации
outputsarrayМассив элементов вывода
outputs[].urlstringURL сгенерированного артефакта
outputs[].content_typestringMIME-тип (например, image/png, video/mp4)
errorobject | nullСведения об ошибке, если не удалось; null при успехе
error.typestringКод ошибки для машинной обработки
error.messagestringОписание ошибки, понятное человеку

Асинхронный workflow

Эта модель работает асинхронно. Отправьте запрос, затем опрашивайте результат.

  1. Отправка: выполните POST на /v1/run и прочитайте возвращаемое id.
  2. Опрос: выполняйте GET /v1/run/{id}, пока статус не станет completed, failed или timeout.
  3. Получение: прочитайте outputs из завершенного ответа.

Выберите свою модель

Сравнить модели

Все модели для изображений и видео
МодельТипЦена по умолчаниюВыпущена
Index TTS 2.0Эта модель
sandbase-ai
Аудио$0.02 / запуск7 окт. 2025 г.
SandBase AIАудио$0.01 / запуск16 июн. 2026 г.
SandBase AIАудио$0.06 / запуск7 янв. 2026 г.
SandBase AIАудио$0.01 / запуск24 окт. 2025 г.
SandBase AIАудио$0.05 / запуск4 апр. 2025 г.
SandBase AIАудио$0.05 / запуск4 апр. 2025 г.

Вопросы

FAQ

Как вызвать sandbase-ai Index TTS 2.0 через SandBase?

Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "sandbase-ai/index-tts-2" на Unified Run API (/v1/run) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.

Нужен ли мне отдельный аккаунт sandbase-ai?

Нет. Один API key SandBase и один баланс дают вам доступ к sandbase-ai Index TTS 2.0 и другим моделям в каталоге; отдельно регистрироваться в sandbase-ai не нужно.