Skip to main content
POST
/api/v1/audio/voice-changer/quote
Use este endpoint antes de /audio/voice-changer/queue para estimar o custo em USD de converter uma gravação de origem com uma determinada duração. O Trocador de Voz é cobrado com base na duração da origem, arredondada para cima para o próximo minuto inteiro. A resposta de queue retorna o duration_seconds medido para que você possa reconciliar a estimativa. Modelos de trocador de voz não são aceitos em /audio/quote.

Coleção do Postman

Para exemplos adicionais, consulte esta coleção do Postman.

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json
model
string
obrigatório

The voice-changer model to price. Models that are not voice changers are not supported here; use /api/v1/audio/quote instead.

Exemplo:

"elevenlabs-voice-changer"

duration_seconds
obrigatório

Length of the source recording in seconds. Voice Changer preserves timing, so the source length is the billable quantity, priced in whole-minute tiers. This is an estimate: the charge is computed from the length Venice measures server-side when the recording is queued. The per-model maximum is published as max_source_audio_duration_seconds in /models.

Intervalo obrigatório: x > 0
Exemplo:

60

Resposta

Estimated price for a conversion of the given source length

quote
number
obrigatório

Estimated price in USD for converting a recording of the given length.

Exemplo:

0.35

duration_seconds
number
obrigatório

The source length this quote was computed for.

Exemplo:

60