# F5 TTS

Generate speech, music and audio with F5 TTS 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/f5-tts`
- Page: https://spiral.ai/tools/fal/fal-ai/f5-tts

## Pricing

Each item in `gen_text` adds $0.065.

## 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 |
| --- | --- | --- | --- | --- |
| `gen_text` (required) | text |  | — | The text to be converted to speech. Maximum 5000 characters. |
| `ref_audio_url` (required) | text |  | — | The URL of the reference audio file. |
| `ref_text` | text |  |  | The reference text to be used for TTS. If not provided, an ASR (Automatic Speech Recognition) model will be used to generate the reference text. |
| `model_type` (required) | one of | F5-TTS, E2-TTS | — | The name of the model to be used for TTS. |
| `remove_silence` | true or false |  | true | Whether to remove the silence from the audio file. |

## 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/f5-tts",
    "input": {
      "gen_text": "I don'\''t really care what you call me. I'\''ve been a silent spectator, watching species evolve, empires rise and fall. But always remember, I am mighty and…",
      "ref_audio_url": "https://storage.googleapis.com/falserverless/example_inputs/reference_audio.wav",
      "model_type": "F5-TTS"
    }
  }'
```

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

## Common questions

### F5 TTS

**How much does F5 TTS cost?**

Each item in `gen_text` adds $0.065. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use F5 TTS through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/f5-tts"` 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 F5 TTS?**

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

**Can my AI agent use F5 TTS?**

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

