# Index TTS 2.0

Edit and transform audio with Index TTS 2.0 from fal through one Spiral API key. It runs in the background and returns audio. Pay as you go, with no subscription.

- Provider: fal
- Category: Audio
- Runs: In the background
- Returns: audio
- Tool id: `fal` / `fal-ai/index-tts-2/text-to-speech`
- Page: https://spiral.ai/tools/fal/fal-ai/index-tts-2/text-to-speech

## Pricing

Up to $0.156 per run at the default inputs for 60 seconds of input.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 255 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `audio_url` (required) | URL or file |  | — | The audio file to generate the speech from. |
| `prompt` (required) | text |  | — | The speech prompt to generate |
| `emotional_audio_url` | text |  | — | The emotional reference audio file to extract the style from. |
| `strength` | number | 0 to 1 | 1 | The strength of the emotional style transfer. Higher values result in stronger emotional influence. |
| `emotional_strengths` | JSON |  | — | The strengths of individual emotions for fine-grained control. |
| `should_use_prompt_for_emotion` | true or false |  | false | Whether to use the `prompt` to calculate emotional strengths, if enabled it will overwrite the `emotional_strengths` values. If `emotion_prompt` is provided, it will be used to instead of `prompt` to extract the emotional style. |
| `emotion_prompt` | text |  | — | The emotional prompt to influence the emotional style. Must be used together with should_use_prompt_for_emotion. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/index-tts-2/text-to-speech",
    "input": {
      "audio_url": "https://storage.googleapis.com/falserverless/example_inputs/index-tts-2/tts_in.mp3",
      "prompt": "Hide! He'\''s coming! He'\''s coming to get us!"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=fal-ai%2Findex-tts-2%2Ftext-to-speech

## Common questions

### Index TTS 2.0

**How much does Index TTS 2.0 cost?**

Up to $0.156 per run at the default inputs for 60 seconds of input. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Index TTS 2.0 through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/index-tts-2/text-to-speech"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Index TTS 2.0?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Index TTS 2.0?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

