F5 TTS
sandbase-ai/f5-ttsF5 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.
- Prezzo base
- $0.05USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 5
Prova il modello
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Scheda del modello
Specifiche
Prezzi
- Prezzo base
- $0.05 / esecuzione
Contesto e modalità
- Input
- Definito dallo schema
- Output
- audio
Funzionalità
- Chat
- Non supportato
- Vision
- Non supportato
- Ragionamento
- Non supportato
- Output strutturato
- Non supportato
- Chiamata di funzione
- Non supportato
- Input audio
- Non supportato
Accesso
- Provider
- SandBase AI
- ID modello
- sandbase-ai/f5-tts
- Esecuzione
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
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_textfor the clip to avoid transcription errors.
Inizia a costruire
Invia la tua prima richiesta
Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"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"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Schema di input
5 parametri · 2 obbligatori · 3 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
text | string | Obbligatorio | The text to convert to speech (up to 5,000 characters). · Lunghezza massima: 5000 |
reference_audio | string | Obbligatorio | Reference voice to clone, as an audio file or URL. |
tts_model | string | Facoltativo | Model used for synthesis. · Opzioni: F5-TTS, E2-TTS · Predefinito: "F5-TTS" F5-TTSE2-TTS |
reference_text | string | Facoltativo | Transcript of the reference audio. When empty, speech recognition generates it. · Predefinito: "" |
remove_silence | boolean | Facoltativo | Remove silence from the output audio. · Predefinito: true |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco dell'attività di generazione |
status | string | Stato dell'attività: pending, running, completed, failed, timeout |
model | string | Modello usato per la generazione |
outputs | array | Array di elementi di output |
outputs[].url | string | URL dell'artefatto generato |
outputs[].content_type | string | Tipo MIME (ad esempio image/png, video/mp4) |
error | object | null | Dettagli dell'errore in caso di fallimento, null in caso di successo |
error.type | string | Codice del tipo di errore leggibile dalla macchina |
error.message | string | Descrizione dell'errore leggibile dall'utente |
Workflow asincrono
Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.
- Invio: esegui POST su /v1/run e leggi il
idrestituito. - Polling: esegui GET /v1/run/{id} finché lo stato non è
completed,failedotimeout. - Recupero: leggi
outputsdalla risposta completata.
Scegli il tuo modello
Confronta i modelli
| Modello | Tipo | Prezzo predefinito | Rilasciato |
|---|---|---|---|
F5 TTSQuesto modello SandBase AI | Audio | $0.05 / esecuzione | 17 ott 2024 |
SandBase AI | Audio | $0.01 / esecuzione | 16 giu 2026 |
SandBase AI | Audio | $0.06 / esecuzione | 7 gen 2026 |
SandBase AI | Audio | $0.01 / esecuzione | 24 ott 2025 |
sandbase-ai | Audio | $0.02 / esecuzione | 7 ott 2025 |
SandBase AI | Audio | $0.05 / esecuzione | 4 apr 2025 |
Domande
FAQ
Come chiamo SandBase AI F5 TTS tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "sandbase-ai/f5-tts" a Unified Run API (/v1/run) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Mi serve un account SandBase AI separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a SandBase AI F5 TTS e agli altri modelli del catalogo; non è necessario registrarsi separatamente su SandBase AI.
