مرجع API
Quote explicit voice cloning
/v1/audio-clone/quotesExplicit voice cloning is a distinct capability. Input text and reference transcript remain unchanged. reference_audio.file_id uses an audio input owned by the same user and Key; reference_audio_url accepts an HTTPS source instead. Quote and execution bind the exact reference identity, original text, current pricing and expiry. No quote generates, reserves or charges. Supply quote_token as quote_id on the existing create task endpoint with an Idempotency-Key. The full maximum is reserved; a higher final amount stays unknown and held, never capped or subsidized.
المصادقة والصلاحيات
استخدم مفتاح GloopAPI الحالي. تعتمد النماذج والإمكانات والصلاحيات المتاحة على دليله ووثائق نقطة النهاية.
Authorization: Bearer $GLOOP_API_KEYآليات المصادقة: BearerAuth
الطلب
جسم الطلب · application/json
- النوع
- object
- الحقول المطلوبة
textreference_text
جسم الطلب مطلوب
modelstringاختياريمعرّف نموذج عام من دليل المفتاح الحالي.
- القيمة الافتراضية
"audio-clone-v1"- القيم المعدودة
["audio-clone-v1"]
textstringمطلوبالنص المراد تحويله إلى كلام.
- الحد الأدنى للطول
1- الحد الأقصى للطول
5000
reference_audio_urlstringاختياريرابط HTTPS عام للصوت المرجعي، دون معلومات مستخدم ويخضع لفحص SSRF.
reference_textstringمطلوبالنص المقابل للصوت المرجعي.
- الحد الأدنى للطول
1- الحد الأقصى للطول
5000
هل يُحذف الصمت؛ القيمة الافتراضية true عند الإغفال.
- القيمة الافتراضية
true
quote_idstringاختياريOptional signed quote_token from the public clone quote. A quoted request reserves the full maximum and refuses over-bound settlement.
reference_audioobjectاختياري- خصائص إضافية
false
الحقول الفرعية لـ reference_audio (1)
file_idstringمطلوبAn audio input file owned by the same user and API Key.
@oneOf:0unknownاختياري@oneOf:1unknownاختياري
الاستجابات والأخطاء
HTTP 200
Authoritative current execution or quote. Unknown retains its hold.
application/json
- النوع
- object
- الحقول المطلوبة
versionidquote_tokenmodelcurrencymaximum_amountinput_fingerprintpricing_versionexpires_at
versionintegerمطلوب- القيم المعدودة
[1]
idstringمطلوبquote_tokenstringمطلوبOpaque acceptance token bound to the authenticated identity, exact input, model, protocol, frozen pricing and expiry.
modelstringمطلوبcurrencystringمطلوب- القيم المعدودة
["USD"]
maximum_amountstringمطلوبCertified maximum customer wallet charge in USD, derived from the frozen price over all bounded cache and tier branches.
input_fingerprintstringمطلوبpricing_versionstringمطلوبexpires_atintegerمطلوب
HTTP 400
إدخال غير صالح.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 401
Key مفقود أو غير صالح أو منتهي أو ملغى.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 403
صلاحيات IP أو الحساب أو النموذج أو الأداة غير كافية.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 404
لم يُعثر على تنفيذك؛ هذا لا يثبت أن التوليد غير المؤكد لم تُحتسب تكلفته.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 409
تعارض في محتوى معرّف الطلب أو لا يمكن حذف تنفيذ جارٍ.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 429
حد معدل الطلبات/قائمة الانتظار.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 500
فشل داخلي في المصادقة أو تخزين البيانات.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري
HTTP 503
غير متاح مؤقتًا؛ استعلم عن الطلب الأصلي إذا كانت نتيجة الطلب المرسل غير مؤكدة.
application/json
- النوع
- object
- الحقول المطلوبة
error
errorobjectمطلوبالحقول الفرعية لـ error (4)
codestringاختياريmessagestringاختياريtypestringاختياريrequest_idstringاختياري