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.
- Preço base
- $0.30USD / execução
- Execução
- async
- Tipo de modelo
- audio
- Campos de entrada
- 2
Testar o modelo
Playground
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Cartão do modelo
Especificações
Preços
- Preço base
- $0.30 / execução
Contexto e modalidades
- Entrada
- Definido pelo schema
- Saída
- audio
Capacidades
- Chat
- Não suportado
- Visão
- Não suportado
- Raciocínio
- Não suportado
- Saída estruturada
- Não suportado
- Chamada de função
- Não suportado
- Entrada de áudio
- Não suportado
Acesso
- Provedor
- ElevenLabs
- ID do modelo
- elevenlabs/forced-alignment
- Execução
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README da 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.
Comece a construir
Envie sua primeira solicitação
Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.
# 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"Esquema de entrada
2 parâmetros · 2 obrigatórios · 0 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
text | string | Obrigatório | Transcript of the audio to align. · Tamanho mín.: 1 · Tamanho máx.: 675000 |
audio | string | Obrigatório | Audio file or URL to align. Up to 3 GB and 10 hours of audio. |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da tarefa de geração |
status | string | Status da tarefa: pending, running, completed, failed, timeout |
model | string | Modelo usado para a geração |
outputs | array | Vetor de itens de saída |
outputs[].url | string | URL do artefato gerado |
outputs[].content_type | string | Tipo MIME (por exemplo, image/png, video/mp4) |
error | object | null | Detalhes do erro se houver falha, null em caso de sucesso |
error.type | string | Código do tipo de erro legível por máquina |
error.message | string | Descrição do erro legível por humanos |
Fluxo assíncrono
Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.
- Enviar: faça POST para /v1/run e leia o
idretornado. - Fazer polling: faça GET em /v1/run/{id} até o status ser
completed,failedoutimeout. - Recuperar: leia
outputsda resposta concluída.
Escolha seu modelo
Comparar modelos
| Modelo | Tipo | Preço padrão | Lançado |
|---|---|---|---|
ElevenLabs Forced AlignmentEste modelo ElevenLabs | Áudio | $0.30 / execução | 8 de set. de 2026 |
ElevenLabs | Áudio | $0.01 / execução | 2 de nov. de 2026 |
ElevenLabs | Áudio | $0.04 / execução | 28 de set. de 2026 |
ElevenLabs | Áudio | $0.08 / execução | 28 de set. de 2026 |
ElevenLabs | Áudio | $0.75 / execução | 14 de set. de 2026 |
ElevenLabs | Áudio | $0.75 / execução | 14 de set. de 2026 |
Perguntas
FAQ
Como faço chamadas ao ElevenLabs Forced Alignment pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "elevenlabs/forced-alignment" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.
Preciso de uma conta ElevenLabs separada?
Não. Uma única chave de API e saldo da SandBase dão acesso a ElevenLabs Forced Alignment e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no ElevenLabs.
