IndexTTS 2.0 API

IndexTeam (Bilibili) IndexTTS 2.0 zero-shot voice cloning and emotional text-to-speech API. Clone any speaker from a 3–30s WAV reference and steer prosody via 9 emotion presets, an optional emotion reference WAV, or natural-language emotion text.

IndexTeamAvailableindextts-2.0POST /v1/audios/generations
From$0.0012/ s(0.12 Credits / s (5s min))$0.0020-40%
Model Highlights24 kHz WAV · 3–30s Clone · 5s Min
Best ForZero-Shot Character Dubbing & Game Dialogue · Cross-Speaker Emotional Prosody Transfer · Bilingual Narration & Multimodal Video Pipelines
Input1–1,000 chars text · 3–30s WAV speaker ref + 3 emotion modes
Output & Delivery24 kHz mono WAV · 30-day signed HTTPS URL

IndexTTS 2.0 Web Studio & API Playground

Preview live credit estimates, listen to real IndexTTS 2.0 voice samples, and export cURL without signing in—or sign in to upload a local WAV reference and synthesize speech.

Create Speech Synthesis Task

indextts-2.0 · POST /v1/audios/generations
Live quote
25 / 1000 chars
Presets:
3–30s WAV · +$0

Pick a built-in sample voice or upload any clean 3–30s solo WAV clip for zero-shot cloning.

1.00
200 ms
Advanced Settings (Segmentation & Output)
120
Outputs lossless 24 kHz mono WAV via a 30-day signed HTTPS URL.
Estimated cost~$0.00860.864 Credits
Est. ~7.2s · 24 kHz WAV · Pre-holds 4.44 Cr, settles exact 0.1s WAV
Ready
01 · Mandarin Voice Cloning0.768 Credits ($0.0077)

“只有当科技为本地社群创造价值的时候,才真正有意义。”

0:00 / 0:06
Download

IndexTTS 2.0 API Pricing & Budget Guide

Actual delivered audio duration billing at 0.12 Credits / second ($0.0012/s) rounded up to 0.1s with a 5.0s minimum floor (0.60 Credits = $0.0060). Valid clips shorter than 5s (e.g. 3s) settle at 5.0s; failed calls charge 0 Credits.

First Test Cost

Save 40%
$0.0060/ clip
0.60 Credits · 5.0s minimum floor (0.3s–5.0s clip · 24 kHz WAV)vs $0.0100 fal.ai 5s ref
  • $10 top-up yields ~1,666 short clips (≤5s) · ~138.9 min ($1 = 100 Credits, no subscription)
  • $0 charged on failed or timed-out tasks—100% of held credits return automatically

Testing Budget Guide

$1 = 100 Credits
  • $10 (1,000 Credits)~1,666 short clips (≤5s) · ~138.9 min audio
  • $20 (2,000 Credits)~1,111 clips (15s) · ~277.8 min audio
  • $50 (5,000 Credits)~694 full minutes (~11.5 hours of speech)
SpecificationRef creditsUSD equivOfficial referencePer $10
Per-second rate · 24 kHz mono WAV (>5.0s billed at 0.1s precision)0.120000 Credits / s$0.0012 / s$0.0020 / s~8,333 sec (~138.9 min)
Short clip floor (0.3s–5.0s output, e.g. 3s dialogue = 5.0s min)0.600000 Credits$0.0060$0.0100~1,666 clips (≤5s)
15s voiceover clip · Speaker + optional emotion reference WAV included1.800000 Credits$0.0180$0.0300~555 clips (15s)
60s narration (1 full minute of synthesized 24 kHz WAV speech)7.200000 Credits$0.0720$0.1200~138 minutes

Interactive Volume Cost Calculator

Choose output settings and expected call volume to estimate your spend in Credits and USD.

Interactive Specification Cost Calculator
indextts-2.0
Estimated speech duration (1 to 180s · 5.0s min floor)10 sec
Zero-shot WAV timbre cloning + 3 emotion modes (preset / audio / text)Included · +0 Credits
Price per Call
1.20Credits / clip (10s)
≈ $0.0120 USD ($1 = 100 Credits)Save 40% vs. official estimate
Per-second rate
0.12 Credits/s ($0.0012/s)
Billed duration (5.0s floor)
10.0s · 24 kHz WAV (+0 ref fee)
$10 (1,000 Credits) output
~833 clips (10s) · ~138.9 min
1,000 runs: $12.001,200 Credits
Official estimate: $20.00You save $8.00
Billed on actual delivered WAV duration rounded up to 0.1s with a 5.0s minimum floor (0.60 Credits). Unused holds release immediately; failed calls cost 0 Credits.

About IndexTTS 2.0, Integration & Model Comparison

Zero-shot 3–30s WAV cloning & 3 emotion modes · 24 kHz WAV

0124 kHz WAV · 3–30s Clone · 5s Min

Core Capabilities

IndexTTS 2.0 API brings IndexTeam’s (Bilibili) flagship autoregressive zero-shot voice cloning and prosody-disentangled emotional text-to-speech model behind Callmodels’ unified POST /v1/audios/generations endpoint. Provide 1 to 1,000 UTF-8 characters of Chinese, English, or mixed bilingual dialogue alongside a single 3.0s–30.0s HTTPS WAV speaker reference, and receive a studio-grade 24 kHz mono PCM WAV file via a 30-day signed link on files.callmodels.dev.

02POST /v1/audios/generations

Input Specs & 30-Day Delivery

Input
1–1,000 chars text · 3–30s WAV speaker ref + 3 emotion modes
Output
24 kHz mono WAV · 30-day signed HTTPS URL
03$0.0012 / s · -40%

Pricing Advantage & $0 Failure Protection

Unlike fixed-speaker TTS engines, IndexTTS 2.0 separates speaker identity from emotional delivery across three mutually exclusive modes: 9 calibrated emotion presets (natural, happy, calm, sad, angry, surprised, melancholic, afraid, disgusted), a separate emotion_audio_url WAV reference, or natural-language emotion_text steering. On Callmodels, completed audio bills strictly on delivered WAV duration at 0.12 Credits / second ($0.0012/s — 40% below fal.ai’s $0.0020/s) rounded up to 0.1s with a 5.0s minimum floor (0.60 Credits = $0.0060), and $0 on failed calls.

Three Ways to Use IndexTTS 2.0

Use in Claude & ChatGPT (Zero-Code MCP)

Connect Callmodels Remote MCP to Claude, ChatGPT, or Google Gemini via zero-key browser sign-in. Run IndexTTS 2.0 in plain English inside chat with upfront price quotes before any spend.

Connect Chat Assistant

Direct HTTPS REST API

Send standard JSON requests to POST /v1/audios/generations on https://api.callmodels.dev with account-scoped Idempotency-Key deduplication and 30-day signed result URLs—zero vendor SDK lock-in.

Jump to API Reference

Integrate with AI Coding Agents (Cursor / Claude Code)

Copy a self-contained engineering prompt with exact endpoint, schema constraints, polling loop, and error handling—paste straight into Cursor, Claude Code, or Codex.

Production Use Cases

3–10s speaker WAV · emotion preset · 24 kHz WAV

Zero-Shot Character Dubbing & Game Dialogue

Clone bespoke character timbres from a clean 5-second WAV sample and switch between calm, happy, angry, or surprised presets via emotion_scale without retraining voice weights—each ≤5s line costs just 0.60 Credits ($0.0060).

speaker_audio_url + emotion_audio_url · 0 extra ref fee

Cross-Speaker Emotional Prosody Transfer

Keep your brand narrator’s exact vocal identity in speaker_audio_url while passing an expressive acting take in emotion_audio_url to transfer dramatic cadence, urgency, or warmth at zero extra reference fee.

interval_silence_ms · 30-day WAV → Seedance audio_urls

Bilingual Narration & Multimodal Video Pipelines

Synthesize crisp Chinese-English product narrations with configurable clause pauses (interval_silence_ms) and feed the returned 30-day files.callmodels.dev WAV URL straight into Seedance 2.5 / 2.0 reference-to-video audio_urls.

Sibling & Family Model Comparison

ModelBilling ModeMax SpecStarting PriceOutput per $10Best For
Suno V6 (V6 / Mini / Wild)Fixed per callUp to 2 full songs · MP3/M4A · Std & Max (2×)$0.0700 / call~142 calls (~284 songs)Full-length vocal songs, custom lyrics & instrumental BGM (2 tracks/call)
IndexTTS 2.00.1s audio (5s min)24 kHz WAV · 3–30s WAV clone · 3 emotion modes$0.0012 / s~1,666 clips (≤5s) · ~138.9 minZero-shot voice cloning, emotional character dubbing & bilingual narration (-40% vs fal.ai)

Itemized Call Billing & 30-Day Result Delivery

Atomic Hold & Settlement · IndexTTS 2.0

$0 on Failure
Rate lock
Locked at HTTP 202 acceptance
Idempotency
24h Idempotency-Key
Starting rate
$0.0012 / s (0.12 Credits / s (5s min))
Failed or timed out
0 Credits (100% hold returned)

How billing and 30-day file delivery work

  1. 1
    Submitting a request locks the published rate and temporarily holds the maximum credits for your chosen specification.
  2. 2
    Once generation finishes, Callmodels verifies output file integrity and metadata before marking the task completed.
  3. 3
    Exact usage is settled against the locked rate, any unused hold returns immediately to your balance, and a 30-day HTTPS link is signed.
  4. 4
    Your backend or browser reads https://files.callmodels.dev/... directly for 30 days without passing an API key.

IndexTTS 2.0 API FAQ

If my generated audio is 3 seconds long, is it billed as 5 seconds?

Yes. IndexTTS 2.0 has a 5.0-second minimum billable floor (0.60 Credits = $0.0060) to cover zero-shot voice-cloning inference and audio verification. Any valid completed clip between 0.3s and 5.0s (such as a 3.0s line) is delivered normally and settles at 5.0s (0.60 Credits). Clips longer than 5.0s settle at 0.1-second precision (for example, 8.34s bills as 8.4s = 1.008 Credits).

Why is the initial credit hold higher than the final settled charge?

Because speech duration depends on text length, punctuation pauses, and reference speaking pace, Callmodels temporarily holds a safe upper-bound duration estimate when accepting HTTP 202. As soon as the WAV file is verified, only the actual delivered duration (5.0s minimum, 0.1s precision) is charged and 100% of unused held credits return immediately.

What audio format and duration are required for speaker_audio_url and emotion_audio_url?

Both speaker_audio_url and optional emotion_audio_url must be publicly reachable HTTPS URLs pointing to uncompressed PCM or IEEE float WAV files (.wav) between 3.0 and 30.0 seconds long and up to 15 MB. If your WAV is stored locally, upload it first at 0 Credits via POST /v1/files/uploads to obtain a 24-hour signed files.callmodels.dev URL. Non-WAV files or clips outside 3–30s are rejected upfront with HTTP 400 and 0 Credits held.

Can I combine emotion, emotion_audio_url, and emotion_text in the same request?

No—to keep prosody control deterministic, the three emotion steering modes are mutually exclusive: choose either (1) emotion preset ("natural" through "disgusted"), (2) emotion_audio_url, or (3) emotion_text (1–200 chars). Passing more than one returns HTTP 400 invalid_parameter with 0 Credits charged. emotion_scale (0.0–1.0) works across all modes.

How does Callmodels IndexTTS 2.0 pricing compare with fal.ai?

fal.ai lists IndexTTS 2.0 at $0.0020 per audio second ($0.120 / minute). Callmodels charges 0.12 Credits ($0.0012) per audio second ($0.072 / minute)—saving 40% with zero extra surcharge for speaker or emotion reference WAVs.

What happens if a speech synthesis task fails or times out?

Failed, rejected, or timed-out tasks charge 0 Credits. 100% of the initial credit hold is automatically released back to your account wallet and API key quota.

IndexTTS 2.0 API Reference & Code Examples

Submit to POST /v1/audios/generations with your Bearer key and a stable Idempotency-Key. Query the returned task ID for its result links and settled credits.

Building with Cursor, Claude Code, or Codex? Copy the AI Integration Prompt

Includes exact endpoint, parameter constraints, async polling loop, and error handling—paste straight into your coding agent.

Standalone Docs Page
Endpointhttps://api.callmodels.dev/v1/audios/generationsGET /v1/tasks/{task_id}
Public model IDs
indextts-2.0Zero-Shot Voice Cloning & Emotional TTS (24 kHz WAV)
ParameterTypeAllowed values & notes
Authorizationheader · Required
string
Bearer sk-... server-side API key from your account.
Idempotency-Keyheader · Optional (recommended)
string
1 to 255 ASCII chars. Prevents duplicate submissions and charges for 24h.
modelbody · Required
"indextts-2.0"
Stable public model ID for IndexTTS 2.0.
promptbody · Required
string (1..1000)
1 to 1,000 non-empty UTF-8 characters of speech text to synthesize (Chinese, English, or mixed bilingual text).
speaker_audio_urlbody · Required
string (HTTPS WAV URL)
Publicly reachable HTTPS PCM/float WAV reference voice clip (3.0s–30.0s, ≤15 MB) for zero-shot timbre cloning. Local .wav files can be uploaded at 0 Credits via POST /v1/files/uploads.
emotionbody · Optional ("natural")
"natural" | "happy" | "calm" | "sad" | "angry" | "surprised" | "melancholic" | "afraid" | "disgusted"
Preset emotion vector (mutually exclusive with emotion_audio_url and emotion_text). "natural" preserves the speaker reference prosody.
emotion_audio_urlbody · Optional (omitted)
string (HTTPS WAV URL)
Optional HTTPS WAV clip (3.0s–30.0s, ≤15 MB) whose emotional prosody is disentangled and transferred onto speaker_audio_url.
emotion_textbody · Optional (omitted)
string (1..200)
Optional natural-language emotion description (1–200 chars, mutually exclusive with emotion_audio_url and non-natural emotion preset).
emotion_scalebody · Optional (1.0)
number (0..1)
Emotion intensity weight from 0.0 (subtle) to 1.0 (full expressive strength).
interval_silence_msbody · Optional (200)
integer (0..2000)
Pause duration in milliseconds inserted between segmented clauses (0–2000 ms).
max_text_tokens_per_segmentbody · Optional (120)
integer (32..300)
Maximum text tokens per autoregressive synthesis segment (32–300).
output_formatbody · Optional ("wav")
"wav"
24 kHz mono PCM WAV delivered via a 30-day signed HTTPS URL on files.callmodels.dev.
# Optional: upload a local 3–30s .wav via POST /v1/files/uploads (0 Credits) to get speaker_audio_url.
# Set CALLMODELS_OPERATION_ID once per job and keep it for retries.
: "${CALLMODELS_OPERATION_ID:?Set a stable job ID}"
curl --silent --show-error --fail-with-body --max-time 15 "https://api.callmodels.dev/v1/audios/generations" \
  -H "Authorization: Bearer $CALLMODELS_API_KEY" \
  -H "Idempotency-Key: $CALLMODELS_OPERATION_ID" \
  -H "Content-Type: application/json" \
  --data-binary '{
  "model": "indextts-2.0",
  "prompt": "只有当科技为本地社群创造价值的时候,才真正有意义。",
  "speaker_audio_url": "https://example.com/your-speaker-reference.wav",
  "emotion": "natural",
  "emotion_scale": 1,
  "interval_silence_ms": 200
}'

# Set TASK_ID to the id from the response, then poll until terminal.
if [ -n "${TASK_ID:-}" ]; then
  curl --silent --show-error --fail-with-body --max-time 15 "https://api.callmodels.dev/v1/tasks/$TASK_ID" \
    -H "Authorization: Bearer $CALLMODELS_API_KEY"
fi
HTTP/1.1 200 OK
X-Request-Id: req_example
Cache-Control: no-store

{
  "id": "task_01e561ba-859e-47fe-be79-60bc6f1d6499",
  "model": "indextts-2.0",
  "object": "audio.generation.task",
  "created_at": "2026-11-21T00:00:00.000Z",
  "status": "completed",
  "results": [
    {
      "type": "audio",
      "url": "https://files.callmodels.dev/task_01e561ba-859e-47fe-be79-60bc6f1d6499/0.wav?expires=1797811200&sig=example",
      "expires_at": "2026-12-21T00:00:00.000Z"
    }
  ],
  "usage": {
    "cost_credits": "0.6"
  }
}
HTTP / Task Error CodeCause & Recommended HandlingBilling Impact
400 invalid_parameter
400 model_not_found
Use the model ID and parameters documented for the endpoint. Correct the JSON before sending again.0 Credits for this rejection
401 invalid_api_key
Check the server-side Bearer key, expiration and revocation status.0 Credits for this rejection
402 insufficient_balance
402 key_quota_exceeded
Check available account credits and the key’s total and daily limits with GET /v1/credits.0 Credits for this rejection
403 model_access_denied
403 account_disabled
Check the model allowlist and account status.0 Credits for this rejection
404 not_found
Check the task ID or original Idempotency-Key and the account that submitted it.0 Credits for this rejection
409 idempotency_key_conflict
Use the original JSON for this job. Assign a fresh key only to a new job.0 Credits for this rejection
413 body_too_large
415 unsupported_media_type
Send application/json with a request body no larger than 128 KiB.0 Credits for this rejection
500 internal_error
503 service_unavailable
503 model_unavailable
On a timeout or transient error, look up the original job and retry only with its original key and body.Check the task record
Task: delivery_failed
Task: submission_unknown
Task: submission_rejected
Task: upstream_failed
Task: timeout
The task ended. Its hold was released. Review error.code before creating a separate generation job.0 Credits charged

Ready to Ship with IndexTTS 2.0 API?

Sign in with Google to create scoped sk- API keys, top up from $10 with no monthly commitment, and pay $0 on failed calls.