F5 TTS
fal-ai/f5-ttsGenerate 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.
Pricing
$0.065 per 1,000 characters of gen_text. Rounded up to the next 1,000 characters.
Limits
- Runs
- In the background
- Returns
- audio
- 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 | 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. |
Same request in code
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"
}
}'Frequently asked questions
How much does F5 TTS cost?
$0.065 per 1,000 characters of `gen_text`. Rounded up to the next 1,000 characters. 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.