Référence 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.

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_KEY

Schémas d'authentification : BearerAuth

Requête

Corps de requête · application/json

Type
object
Champs obligatoires
textreference_text

Corps de requête obligatoire

  • modelstringFacultatif

    ID public du modèle dans le catalogue de la Key actuelle.

    Valeur par défaut
    "audio-clone-v1"
    Énumération
    ["audio-clone-v1"]
  • textstringObligatoire

    Texte à synthétiser.

    Longueur minimale
    1
    Longueur maximale
    5000
  • reference_audio_urlstringFacultatif

    URL HTTPS publique d'audio de référence, sans informations utilisateur et vérifiée contre SSRF.

  • reference_textstringObligatoire

    Texte correspondant à l'audio de référence.

    Longueur minimale
    1
    Longueur maximale
    5000
  • remove_silencebooleanFacultatifAutorise null

    Suppression du silence ; true si omis.

    Valeur par défaut
    true
  • quote_idstringFacultatif

    Optional 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_idstringObligatoire

      An 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]
  • idstringObligatoire
  • quote_tokenstringObligatoire

    Opaque acceptance token bound to the authenticated identity, exact input, model, protocol, frozen pricing and expiry.

  • modelstringObligatoire
  • currencystringObligatoire
    Énumération
    ["USD"]
  • maximum_amountstringObligatoire

    Certified maximum customer wallet charge in USD, derived from the frozen price over all bounded cache and tier branches.

  • input_fingerprintstringObligatoire
  • pricing_versionstringObligatoire
  • expires_atintegerObligatoire

HTTP 400

Entrée invalide.

application/json

Type
object
Champs obligatoires
error

HTTP 401

Key absente, invalide, expirée ou révoquée.

application/json

Type
object
Champs obligatoires
error

HTTP 403

Autorisations IP, compte, modèle ou outil insuffisantes.

application/json

Type
object
Champs obligatoires
error

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

HTTP 409

Conflit de contenu pour cet identifiant, ou suppression impossible pendant l’exécution.

application/json

Type
object
Champs obligatoires
error

HTTP 429

Limitation de débit des requêtes/de la file.

application/json

Type
object
Champs obligatoires
error

HTTP 500

Défaillance interne d'authentification ou de stockage des données.

application/json

Type
object
Champs obligatoires
error

HTTP 503

Temporairement indisponible ; consultez la requête initiale si le résultat soumis est incertain.

application/json

Type
object
Champs obligatoires
error