Sand AISand AI MAGI-2MAGI-2 is now on SandBase: 1080p video with native audioTry it now

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.

Base price
$0.02USD / run
Execution
async
Model type
audio
Input fields
7
Production route

Try the model

Playground

Open 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. Range: 0 to 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.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.02 / run

Context & modalities

Input
Schema-defined
Output
audio

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
sandbase-ai
Model ID
sandbase-ai/index-tts-2
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/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

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.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
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

Input Schema

7 parameters · 2 required · 5 optional

ParameterTypeRequiredDescription
textstringRequiredThe text to speak.
audiostringRequiredReference speech audio file or URL; the output is spoken in this voice (zero-shot cloning).
strengthnumberOptionalStrength of the emotional style transfer. Higher values give stronger emotional influence. · Min: 0 · Max: 1 · Default: 1
emotion_promptstringOptionalText whose emotion is used instead of the spoken text. Requires should_use_prompt_for_emotion.
emotional_audiostringOptionalOptional audio file or URL whose emotional style is transferred to the output.
emotional_strengthsobjectOptionalPer-emotion strengths (0-1) for fine-grained control: happy, angry, sad, afraid, disgusted, melancholic, surprised, calm.
should_use_prompt_for_emotionbooleanOptionalDerive emotional strengths from the text (or from emotion_prompt when set). Overrides emotional_strengths. · Default: false
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model runs asynchronously. Submit a request, then poll for the result.

  1. Submit: POST to /v1/run and read the returned id.
  2. Poll: GET /v1/run/{id} until status is completed, failed or timeout.
  3. Retrieve: read outputs from the completed response.

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
Index TTS 2.0This model
sandbase-ai
Audio$0.02 / runOct 7, 2025
SandBase AIAudio$0.01 / runJun 16, 2026
SandBase AIAudio$0.06 / runJan 7, 2026
SandBase AIAudio$0.01 / runOct 24, 2025
SandBase AIAudio$0.05 / runApr 4, 2025
SandBase AIAudio$0.05 / runApr 4, 2025

Questions

FAQ

How do I call sandbase-ai Index TTS 2.0 through SandBase?

Create a SandBase API key, then send requests with the model ID "sandbase-ai/index-tts-2" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate sandbase-ai account?

No. One SandBase API key and balance gives you access to sandbase-ai Index TTS 2.0 and the other models in the catalog; you do not need to sign up with sandbase-ai separately.