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
  • errorobject必須
    error 子フィールド (4)

HTTP 401

キーが見つからないか、無効であるか、期限切れであるか、取り消されています。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 403

IP、アカウント、モデル、またはツールの権限が不十分です。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 404

実行は見つかりませんでした。これは、不確実な世代に請求が行われていないことを証明するものではありません。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 409

リクエスト ID の内容が競合しているか、in-flight の実行を削除できません。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 422

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

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 429

リクエスト/キューのレート制限。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 500

内部認証またはデータ ストレージのエラー。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)

HTTP 503

一時的に利用できません。送信された結果が不確かな場合は、元のリクエストをクエリします。

application/json

タイプ
object
必須フィールド 説明
error
  • errorobject必須
    error 子フィールド (4)
構築する準備はできましたか?を開きます コンソール で API キーを作成するか、参照します の機能.