API 참조

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.

인증과 권한

현재 GloopAPI 키를 사용하세요. 사용 가능한 모델, 기능과 권한은 해당 카탈로그와 엔드포인트 문서에 따라 달라집니다.

Authorization: Bearer $GLOOP_API_KEY

인증 방식: BearerAuth

요청

요청 본문 · application/json

유형
object
추가 속성
false
필수 필드
request_idmodelquote_idinput

요청 본문 필수

  • request_idstring필수
    최대 길이
    128
    패턴
    "^[A-Za-z0-9_-]+$"
  • modelstring필수
  • quote_idstring필수

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

  • inputobject필수
    추가 속성
    false
    input 하위 필드(5)
    • modelstring필수
    • inputstring필수

      Original text, including whitespace. No instructions are added.

      최대 길이
      4096
    • voicestring필수

      An explicitly configured voice from model audio metadata.

    • response_formatstring필수
      열거형
      ["mp3","opus","aac","flac","wav","pcm"]
    • speednumber선택 사항
      최솟값
      0.25
      최댓값
      4

응답과 오류

HTTP 200

Authoritative current execution or quote. Unknown retains its hold.

application/json

유형
object
필수 필드
idrequest_idmodelstateversioncreated_atexpires_atresult_deleted
  • idstring필수
  • request_idstring필수
  • modelstring필수
  • statestring필수
    열거형
    ["pending","unknown","succeeded","failed"]
  • versioninteger필수
    열거형
    [1]
  • created_atinteger필수
  • expires_atinteger필수

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

  • result_deletedboolean필수
  • billingobject선택 사항
    billing 하위 필드(5)
  • outputobject선택 사항
    output 하위 필드(2)
    • datastring필수

      Base64 inline audio, limited to 16 MiB decoded.

      형식
      "byte"
    • content_typestring필수

HTTP 202

Authoritative current execution or quote. Unknown retains its hold.

application/json

유형
object
필수 필드
idrequest_idmodelstateversioncreated_atexpires_atresult_deleted
  • idstring필수
  • request_idstring필수
  • modelstring필수
  • statestring필수
    열거형
    ["pending","unknown","succeeded","failed"]
  • versioninteger필수
    열거형
    [1]
  • created_atinteger필수
  • expires_atinteger필수

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

  • result_deletedboolean필수
  • billingobject선택 사항
    billing 하위 필드(5)
  • outputobject선택 사항
    output 하위 필드(2)
    • datastring필수

      Base64 inline audio, limited to 16 MiB decoded.

      형식
      "byte"
    • content_typestring필수

HTTP 400

잘못된 입력입니다.

application/json

유형
object
필수 필드
error

HTTP 401

키가 없거나 유효하지 않거나 만료 또는 폐기되었습니다.

application/json

유형
object
필수 필드
error

HTTP 403

IP, 계정, 모델 또는 도구 권한이 부족합니다.

application/json

유형
object
필수 필드
error

HTTP 404

본인의 실행을 찾을 수 없습니다. 결과가 불확실한 생성에 요금이 부과되지 않았다는 뜻은 아닙니다.

application/json

유형
object
필수 필드
error

HTTP 409

요청 ID의 내용이 충돌하거나 진행 중인 실행은 삭제할 수 없습니다.

application/json

유형
object
필수 필드
error

HTTP 429

요청/대기열 속도 제한입니다.

application/json

유형
object
필수 필드
error

HTTP 500

내부 인증 또는 데이터 저장 오류입니다.

application/json

유형
object
필수 필드
error

HTTP 503

일시적으로 사용할 수 없습니다. 제출 결과가 불확실하면 원래 요청을 조회하세요.

application/json

유형
object
필수 필드
error
개발할 준비가 되셨나요? 열기: 콘솔 API 키를 생성하거나 살펴보기: 기능.