مرجع API

Quote explicit voice cloning

POST/v1/audio-clone/quotes

Explicit 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
  • remove_silencebooleanاختيارييسمح بـ null

    هل يُحذف الصمت؛ القيمة الافتراضية 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)

HTTP 401

Key مفقود أو غير صالح أو منتهي أو ملغى.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)

HTTP 403

صلاحيات IP أو الحساب أو النموذج أو الأداة غير كافية.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)

HTTP 404

لم يُعثر على تنفيذك؛ هذا لا يثبت أن التوليد غير المؤكد لم تُحتسب تكلفته.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)

HTTP 409

تعارض في محتوى معرّف الطلب أو لا يمكن حذف تنفيذ جارٍ.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)

HTTP 429

حد معدل الطلبات/قائمة الانتظار.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)

HTTP 500

فشل داخلي في المصادقة أو تخزين البيانات.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)

HTTP 503

غير متاح مؤقتًا؛ استعلم عن الطلب الأصلي إذا كانت نتيجة الطلب المرسل غير مؤكدة.

application/json

النوع
object
الحقول المطلوبة
error
  • errorobjectمطلوب
    الحقول الفرعية لـ error (4)