Skip to main content
POST
/api/v1/audio/voice-changer/quote
在调用 /audio/voice-changer/queue 之前使用此端点,可估算将指定时长的源录音转换为另一种声音的美元费用。语音转换按源录音时长计费,向上取整到最近的整分钟。队列响应会返回实际测得的 duration_seconds,方便您与预估值进行对账。 /audio/quote 不接受语音转换(Voice Changer)模型。

Postman 集合

如需更多示例,请参阅此 Postman 集合

授权

Authorization
string
header
必填

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

请求体

application/json
model
string
必填

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

示例:

"elevenlabs-voice-changer"

duration_seconds
必填

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.

必填范围: x > 0
示例:

60

响应

Estimated price for a conversion of the given source length

quote
number
必填

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

示例:

0.35

duration_seconds
number
必填

The source length this quote was computed for.

示例:

60