Kokoro TTS American English
sandbase-ai/kokoro-ttsKokoro TTS American English is a lightweight, fast text-to-speech model that reads American English text with natural intonation using 20 preset voices and adjustable speed.
- Prezzo base
- $0.02USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 3
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.02 / 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/kokoro-tts
- Esecuzione
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Kokoro TTS American English
Kokoro TTS American English is a lightweight 82M-parameter model that reads American English text quickly with 20 preset voices and adjustable speed.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak. |
voice | string | af_heart | Preset voice (f = female, m = male). See the schema for supported values. |
speed | number 0.1–5 | 1 | 0.1–5× speaking rate. |
Billing
$0.02 per 1,000 characters of input text, billed per character.
| Text | Price |
|---|---|
| 200 characters | $0.004 |
| 1,000 characters | $0.02 |
| 5,000 characters | $0.10 |
Failed runs are not charged.
Prompting
- Use punctuation to control pauses; spell out numbers for exact pronunciation.
Also on SandBase
Related: sandbase-ai/kokoro-tts/british-english, sandbase-ai/kokoro-tts/brazilian-portuguese, sandbase-ai/kokoro-tts/french, sandbase-ai/kokoro-tts/hindi.
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/kokoro-tts",
"text": "The future belongs to those who believe in the beauty of their dreams. So, dream big, work hard, and make it happen!",
"speed": 1,
"voice": "af_heart"
}
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
3 parametri · 1 obbligatori · 2 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
text | string | Obbligatorio | The text to convert to speech. · Lunghezza minima: 1 |
speed | number | Facoltativo | Speed of the generated audio. 1.0 is normal speed. · Min: 0.1 · Max: 5 · Predefinito: 1 |
voice | string | Facoltativo | Voice ID for the desired voice. · Opzioni: af_heart, af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky, am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck, am_santa · Predefinito: "af_heart" af_heartaf_alloyaf_aoedeaf_bellaaf_jessicaaf_koreaf_nicoleaf_novaaf_riveraf_sarahaf_skyam_adamam_echoam_ericam_fenriram_liamam_michaelam_onyxam_puckam_santa |
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 |
|---|---|---|---|
Kokoro TTS American EnglishQuesto modello SandBase AI | Audio | $0.02 / esecuzione | 14 feb 2025 |
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 Kokoro TTS American English tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "sandbase-ai/kokoro-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 Kokoro TTS American English e agli altri modelli del catalogo; non è necessario registrarsi separatamente su SandBase AI.
