# SandBase AI F5 TTS API

> F5 TTS clones a voice from a reference clip and speaks new text in it, using the F5-TTS or E2-TTS flow-matching model, with optional silence removal.

Source: https://www.sandbase.ai/models/sandbase-ai/f5-tts
API reference: https://www.sandbase.ai/models/sandbase-ai/f5-tts#api

## Facts

- Provider: SandBase AI
- Type: Audio model
- Model ID: `sandbase-ai/f5-tts`
- Price: From $0.05 per run
- Capabilities: text to speech
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sandbase-ai/f5-tts",
  "text": "I don'"'"'t really care what you call me. I'"'"'ve been a silent spectator, watching species evolve.",
  "tts_model": "F5-TTS",
  "reference_text": "Some call me nature, others call me mother nature.",
  "remove_silence": true,
  "reference_audio": "https://storage.googleapis.com/falserverless/example_inputs/reference_audio.wav"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call SandBase AI F5 TTS through SandBase?

Create a SandBase API key, then send requests with the model ID "sandbase-ai/f5-tts" 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 F5 TTS and the other models in the catalog; you do not need to sign up with SandBase AI separately.

## README

### F5 TTS

F5 TTS speaks up to 5,000 characters of text in a voice cloned from a reference clip, using the F5-TTS or E2-TTS model.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `text` | string, required | — | Text to speak. |
| `reference_audio` | audio file or URL, required | — | Voice to clone. |
| `reference_text` | string | `` | Transcript of the reference clip; auto-transcribed when empty. |
| `tts_model` | `F5-TTS` / `E2-TTS` | `F5-TTS` | Synthesis model. |
| `remove_silence` | boolean | true | Trim silences from the output. |

#### Billing

$0.05 per 1,000 characters of input text, billed per character.

| Text | Price |
|---|---|
| 200 characters | $0.01 |
| 1,000 characters | $0.05 |
| 5,000 characters | $0.25 |

Failed runs are not charged.

#### Prompting

- Provide `reference_text` for the clip to avoid transcription errors.
