Skip to main content
POST
/api/v1/audio/voice-changer/quote
استخدم هذه الـ endpoint قبل /audio/voice-changer/queue لتقدير تكلفة تحويل تسجيل مصدر بطول معيّن بالدولار الأمريكي. تُحتسب فوترة مُغيّر الصوت من مدة التسجيل المصدر، مقربًا لأعلى إلى الدقيقة الكاملة التالية. تُعيد استجابة قائمة الانتظار قيمة duration_seconds المقاسة كي تتمكن من مطابقة التقدير. نماذج تغيير الصوت غير مقبولة على /audio/quote.

مجموعة 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