API 참조

Quote maximum text cost

POST/v1/cost-quotes

Versioned GloopAPI extension for authenticated, read-only text cost quotes. Uses current model permission, routing, conversion and the same immutable pricing engine as execution. Binds exact explicit text input, output limit, input-token bound, identity, model, protocol, pricing version and expiry. All cache and tier branches are bounded conservatively; unsupported request-dependent expressions or unbounded tools are rejected. Does not generate, reserve or charge. Submit the returned quote_token as quote_id with the same native input to POST /v1/text-runs. Price/input changes or expiry reject new execution; existing request recovery remains valid. Excess actual cost is an accounting anomaly that remains unsettled, never silently capped or subsidized. Speech extension: protocol=speech accepts the standard model/input/voice/response_format/speed body, without max_input_tokens. Only immutable input-character pricing is certified; token or duration estimates are rejected. Submit that signed quote_token and exact input to POST /v1/audio-runs.

인증과 권한

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

Authorization: Bearer $GLOOP_API_KEY

인증 방식: BearerAuth

요청

요청 본문 · application/json

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

요청 본문 필수

  • protocolstring필수
    열거형
    ["chat_completions","responses","speech"]
  • inputobject필수

    Exact native text request or standard AudioSpeechInput for protocol=speech. Speech uses configured voice/format and character pricing; no implicit clone.

  • max_input_tokensinteger선택 사항

    Required for text protocols. Omitted for character-priced speech.

    최솟값
    1
    최댓값
    10000000
  • @oneOf:0object선택 사항
    @oneOf:0 하위 필드(1)
    • protocolunknown선택 사항
      열거형
      ["chat_completions","responses"]
  • @oneOf:1object선택 사항
    @oneOf:1 하위 필드(1)
    • protocolunknown선택 사항
      열거형
      ["speech"]

응답과 오류

HTTP 200

Verified maximum text cost, without generation or reservation.

application/json

유형
object
필수 필드
versionidquote_tokenmodelprotocolcurrencymaximum_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필수
  • protocolstring필수
    열거형
    ["chat_completions","responses"]
  • 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

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 422

No provable current maximum or invalid/changed input. No model execution was dispatched.

application/json

유형
object
필수 필드
error

HTTP 429

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

application/json

유형
object
필수 필드
error

HTTP 500

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

application/json

유형
object
필수 필드
error

HTTP 503

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

application/json

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