Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

F5 TTS

sandbase-ai/f5-tts

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.

Prezzo base
$0.05USD / esecuzione
Esecuzione
async
Tipo di modello
audio
Campi di input
5
Route di produzione

Prova il modello

Playground

Apri playground
Input
The text to convert to speech (up to 5,000 characters).
Reference voice to clone, as an audio file or URL.
Transcript of the reference audio. When empty, speech recognition generates it.
Model used for synthesis.
Remove silence from the output audio.
OutputPronto

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

FieldTypeDefaultNotes
textstring, required—Text to speak.
reference_audioaudio file or URL, required—Voice to clone.
reference_textstring``Transcript of the reference clip; auto-transcribed when empty.
tts_modelF5-TTS / E2-TTSF5-TTSSynthesis model.
remove_silencebooleantrueTrim silences from the output.

Billing

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

TextPrice
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.

Inizia a costruire

Invia la tua prima richiesta

Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.

API di produzione
Endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID del modello
sandbase-ai/f5-tts
# 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"
01

Schema di input

5 parametri · 2 obbligatori · 3 facoltativi

ParametroTipoObbligatorioDescrizione
textstringObbligatorioThe text to convert to speech (up to 5,000 characters). · Lunghezza massima: 5000
reference_audiostringObbligatorioReference voice to clone, as an audio file or URL.
tts_modelstringFacoltativoModel used for synthesis. · Opzioni: F5-TTS, E2-TTS · Predefinito: "F5-TTS"
F5-TTSE2-TTS
reference_textstringFacoltativoTranscript of the reference audio. When empty, speech recognition generates it. · Predefinito: ""
remove_silencebooleanFacoltativoRemove silence from the output audio. · Predefinito: true
02

Schema di output

CampoTipoDescrizione
idstringIdentificatore univoco dell'attività di generazione
statusstringStato dell'attività: pending, running, completed, failed, timeout
modelstringModello usato per la generazione
outputsarrayArray di elementi di output
outputs[].urlstringURL dell'artefatto generato
outputs[].content_typestringTipo MIME (ad esempio image/png, video/mp4)
errorobject | nullDettagli dell'errore in caso di fallimento, null in caso di successo
error.typestringCodice del tipo di errore leggibile dalla macchina
error.messagestringDescrizione dell'errore leggibile dall'utente

Workflow asincrono

Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.

  1. Invio: esegui POST su /v1/run e leggi il id restituito.
  2. Polling: esegui GET /v1/run/{id} finché lo stato non è completed, failed o timeout.
  3. Recupero: leggi outputs dalla risposta completata.

Scegli il tuo modello

Confronta i modelli

Tutti i modelli di immagini e video
ModelloTipoPrezzo predefinitoRilasciato
F5 TTSQuesto modello
SandBase AI
Audio$0.05 / esecuzione17 ott 2024
SandBase AIAudio$0.01 / esecuzione16 giu 2026
SandBase AIAudio$0.06 / esecuzione7 gen 2026
SandBase AIAudio$0.01 / esecuzione24 ott 2025
sandbase-aiAudio$0.02 / esecuzione7 ott 2025
SandBase AIAudio$0.05 / esecuzione4 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.