Référence 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.
Authentification et autorisations
Utilisez votre clé GloopAPI actuelle. Les modèles, capacités et autorisations disponibles dépendent de son catalogue et de la documentation du point de terminaison.
Authorization: Bearer $GLOOP_API_KEYSchémas d'authentification : BearerAuth
Requête
Corps de requête · application/json
- Type
- object
- Champs obligatoires
textreference_text
Corps de requête obligatoire
modelstringFacultatifID public du modèle dans le catalogue de la Key actuelle.
- Valeur par défaut
"audio-clone-v1"- Énumération
["audio-clone-v1"]
textstringObligatoireTexte à synthétiser.
- Longueur minimale
1- Longueur maximale
5000
reference_audio_urlstringFacultatifURL HTTPS publique d'audio de référence, sans informations utilisateur et vérifiée contre SSRF.
reference_textstringObligatoireTexte correspondant à l'audio de référence.
- Longueur minimale
1- Longueur maximale
5000
Suppression du silence ; true si omis.
- Valeur par défaut
true
quote_idstringFacultatifOptional signed quote_token from the public clone quote. A quoted request reserves the full maximum and refuses over-bound settlement.
reference_audioobjectFacultatif- Propriétés supplémentaires
false
Sous-champs de reference_audio (1)
file_idstringObligatoireAn audio input file owned by the same user and API Key.
@oneOf:0unknownFacultatif@oneOf:1unknownFacultatif
Réponses et erreurs
HTTP 200
Authoritative current execution or quote. Unknown retains its hold.
application/json
- Type
- object
- Champs obligatoires
versionidquote_tokenmodelcurrencymaximum_amountinput_fingerprintpricing_versionexpires_at
versionintegerObligatoire- Énumération
[1]
idstringObligatoirequote_tokenstringObligatoireOpaque acceptance token bound to the authenticated identity, exact input, model, protocol, frozen pricing and expiry.
modelstringObligatoirecurrencystringObligatoire- Énumération
["USD"]
maximum_amountstringObligatoireCertified maximum customer wallet charge in USD, derived from the frozen price over all bounded cache and tier branches.
input_fingerprintstringObligatoirepricing_versionstringObligatoireexpires_atintegerObligatoire
HTTP 400
Entrée invalide.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 401
Key absente, invalide, expirée ou révoquée.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 403
Autorisations IP, compte, modèle ou outil insuffisantes.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 404
Votre exécution est introuvable ; cela ne prouve pas qu’une génération incertaine n’a pas été facturée.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 409
Conflit de contenu pour cet identifiant, ou suppression impossible pendant l’exécution.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 429
Limitation de débit des requêtes/de la file.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 500
Défaillance interne d'authentification ou de stockage des données.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif
HTTP 503
Temporairement indisponible ; consultez la requête initiale si le résultat soumis est incertain.
application/json
- Type
- object
- Champs obligatoires
error
errorobjectObligatoireSous-champs de error (4)
codestringFacultatifmessagestringFacultatiftypestringFacultatifrequest_idstringFacultatif