ElevenLabs Forced Alignment
elevenlabs/forced-alignmentElevenLabs Forced Alignment matches a known transcript to an audio file and returns start and end timestamps for every word and character.
- Prezzo base
- $0.30USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 2
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.30 / 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
- ElevenLabs
- ID modello
- elevenlabs/forced-alignment
- Esecuzione
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
ElevenLabs Forced Alignment
ElevenLabs Forced Alignment takes an audio file and its transcript and returns when each word and character is spoken. Use it for subtitles, karaoke-style highlighting, and lip-sync timing when you already have the text.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
audio | audio file or URL, required | — | Up to 3 GB and 10 hours. |
text | string, required | — | Transcript to align with the audio. |
Output
words (text, start, end, loss per word), characters (text, start, end per character) and the average loss.
Billing
$0.30 per started hour of input audio, minimum 1 hour. The charge uses the measured audio length.
| Audio | Price |
|---|---|
| Up to 1 h | $0.30 |
| 2 h | $0.60 |
| 10 h | $3.00 |
Failed runs are not charged.
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": "elevenlabs/forced-alignment",
"text": "Hey, this is a test recording for Scribe version two, which is now available on fal.ai.",
"audio": "https://static.sandbase.ai/examples/elevenlabs/scribe-v2/input_audio_0.mp3"
}
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
2 parametri · 2 obbligatori · 0 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
text | string | Obbligatorio | Transcript of the audio to align. · Lunghezza minima: 1 · Lunghezza massima: 675000 |
audio | string | Obbligatorio | Audio file or URL to align. Up to 3 GB and 10 hours of audio. |
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 |
|---|---|---|---|
ElevenLabs Forced AlignmentQuesto modello ElevenLabs | Audio | $0.30 / esecuzione | 8 set 2026 |
ElevenLabs | Audio | $0.01 / esecuzione | 2 nov 2026 |
ElevenLabs | Audio | $0.04 / esecuzione | 28 set 2026 |
ElevenLabs | Audio | $0.08 / esecuzione | 28 set 2026 |
ElevenLabs | Audio | $0.75 / esecuzione | 14 set 2026 |
ElevenLabs | Audio | $0.75 / esecuzione | 14 set 2026 |
Domande
FAQ
Come chiamo ElevenLabs Forced Alignment tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "elevenlabs/forced-alignment" 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 ElevenLabs separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a ElevenLabs Forced Alignment e agli altri modelli del catalogo; non è necessario registrarsi separatamente su ElevenLabs.
