API-Referenz

Create durable speech

POST/v1/audio-runs

Versioned public durable speech extension using an ordinary API Key. Input follows the non-streaming OpenAI speech subset. A signed speech cost quote binds identity, exact original input and immutable character pricing. Full maximum is reserved before dispatch. One user/Key/request_id owns one dispatch; retries return the original record and changed input conflicts. Query the original request after uncertainty; never replay a generation to recover. Inline audio is exposed only after authoritative settlement, retained for seven days in the durable record and never automatically downloaded or copied to object storage. Deleted or expired content stays succeeded with result_deleted=true; billing and identity remain.

Authentifizierung und Berechtigungen

Verwenden Sie Ihren aktuellen GloopAPI-Schlüssel. Verfügbare Modelle, Funktionen und Berechtigungen hängen von seinem Katalog und der Endpunktdokumentation ab.

Authorization: Bearer $GLOOP_API_KEY

Authentifizierungsschemata: BearerAuth

Anfrage

Anfragekörper · application/json

Typ
object
Zusätzliche Eigenschaften
false
Pflichtfelder
request_idmodelquote_idinput

Anfragekörper erforderlich

  • request_idstringErforderlich
    Maximale Länge
    128
    Muster
    "^[A-Za-z0-9_-]+$"
  • modelstringErforderlich
  • quote_idstringErforderlich

    The signed quote_token from a speech cost quote, not its display ID.

  • inputobjectErforderlich
    Zusätzliche Eigenschaften
    false
    Unterfelder von input (5)
    • modelstringErforderlich
    • inputstringErforderlich

      Original text, including whitespace. No instructions are added.

      Maximale Länge
      4096
    • voicestringErforderlich

      An explicitly configured voice from model audio metadata.

    • response_formatstringErforderlich
      Aufzählung
      ["mp3","opus","aac","flac","wav","pcm"]
    • speednumberOptional
      Minimum
      0.25
      Maximum
      4

Antworten und Fehler

HTTP 200

Authoritative current execution or quote. Unknown retains its hold.

application/json

Typ
object
Pflichtfelder
idrequest_idmodelstateversioncreated_atexpires_atresult_deleted
  • idstringErforderlich
  • request_idstringErforderlich
  • modelstringErforderlich
  • statestringErforderlich
    Aufzählung
    ["pending","unknown","succeeded","failed"]
  • versionintegerErforderlich
    Aufzählung
    [1]
  • created_atintegerErforderlich
  • expires_atintegerErforderlich

    Content retention ends after seven days. Accounting and original request identity remain.

  • result_deletedbooleanErforderlich
  • billingobjectOptional
    Unterfelder von billing (5)
    • statusstringErforderlich
      Aufzählung
      ["settled","refunded"]
    • currencystringErforderlich
      Aufzählung
      ["USD"]
    • final_amountstringOptional

      Authoritative finalized wallet charge. Missing does not mean zero.

    • pricing_versionstringOptional
    • quote_idstringOptional
  • outputobjectOptional
    Unterfelder von output (2)
    • datastringErforderlich

      Base64 inline audio, limited to 16 MiB decoded.

      Format
      "byte"
    • content_typestringErforderlich

HTTP 202

Authoritative current execution or quote. Unknown retains its hold.

application/json

Typ
object
Pflichtfelder
idrequest_idmodelstateversioncreated_atexpires_atresult_deleted
  • idstringErforderlich
  • request_idstringErforderlich
  • modelstringErforderlich
  • statestringErforderlich
    Aufzählung
    ["pending","unknown","succeeded","failed"]
  • versionintegerErforderlich
    Aufzählung
    [1]
  • created_atintegerErforderlich
  • expires_atintegerErforderlich

    Content retention ends after seven days. Accounting and original request identity remain.

  • result_deletedbooleanErforderlich
  • billingobjectOptional
    Unterfelder von billing (5)
    • statusstringErforderlich
      Aufzählung
      ["settled","refunded"]
    • currencystringErforderlich
      Aufzählung
      ["USD"]
    • final_amountstringOptional

      Authoritative finalized wallet charge. Missing does not mean zero.

    • pricing_versionstringOptional
    • quote_idstringOptional
  • outputobjectOptional
    Unterfelder von output (2)
    • datastringErforderlich

      Base64 inline audio, limited to 16 MiB decoded.

      Format
      "byte"
    • content_typestringErforderlich

HTTP 400

Ungültige Eingabe.

application/json

Typ
object
Pflichtfelder
error

HTTP 401

Key fehlt, ist ungültig, abgelaufen oder widerrufen.

application/json

Typ
object
Pflichtfelder
error

HTTP 403

Unzureichende IP-, Konto-, Modell- oder Tool-Berechtigungen.

application/json

Typ
object
Pflichtfelder
error

HTTP 404

Ihre Ausführung wurde nicht gefunden; das beweist nicht, dass eine unklare Generierung nicht berechnet wurde.

application/json

Typ
object
Pflichtfelder
error

HTTP 409

Inhaltskonflikt bei dieser Anfrage-ID oder eine laufende Ausführung kann nicht gelöscht werden.

application/json

Typ
object
Pflichtfelder
error

HTTP 429

Anfrage-/Warteschlangenlimit.

application/json

Typ
object
Pflichtfelder
error

HTTP 500

Interner Authentifizierungs- oder Datenspeicherungsfehler.

application/json

Typ
object
Pflichtfelder
error

HTTP 503

Vorübergehend nicht verfügbar; fragen Sie bei unklarem Ergebnis die ursprüngliche Anfrage ab.

application/json

Typ
object
Pflichtfelder
error
Bereit zum Entwickeln? Öffnen Sie Konsole um einen API-Schlüssel zu erstellen, oder durchsuchen Sie Funktionen.