Text-to-Speechper 1k characters
$0.025
Use the F5 TTS (officially known as F5-TTS) API via PiAPI to clone voices from a reference audio sample and generate natural, high-quality speech audio from text.
Pay-as-you-go access through PiAPI.
$0.025
Capabilities from the production model page.
Call the F5 TTS AI API with a simple POST request, using standard JSON fields for model and input, and plug it into your existing backend or workflows in minutes.
Process many text snippets in parallel by queuing multiple F5-TTS tasks, ideal for audiobooks, support responses, localization, or any high-volume text-to-speech workloads.
Zero-shot voice cloning with F5 text API produces natural, expressive speech that closely matches your reference voice sample for production-ready audio.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "Qubico/tts",
"task_type": "zero-shot",
"input": {
"gen_text": "Hi there, this is a sample generated with the F5-TTS API.",
"ref_text": "",
"ref_audio": "YOUR_AUDIO_URL"
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"audio_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run f5-tts-api \ gen_text="Hi there, this is a sample generated with the F5-TTS API." \ ref_text= \ ref_audio=YOUR_AUDIO_URL ✓ Task completed! https://img.theapi.app/ephemeral/…
The F5-TTS AI API is a zeroshot text-to-speech service available via PiAPI . It lets you clone a voice from a reference audio sample and generate natural-sounding speech from text using the Qubico/tts model.
You can view the spec, request examples, and response format in the F5-TTS API docs . Head over and generate your text to speech generation with F5 TTS API today!
F5-TTS text-to-speech is billed at $0.025 per 1000 characters generated. You only pay for the characters you synthesize.
No, we do not offer refunds. When you first sign up for a PiAPI Workspace account, you receive free credits to try the F5-TTS playground and API before paying.
Please email us at support@piapi.ai — we'd love to hear your feedback and explore potential collaborations!
More questions? See the API docs.
F5-TTS API