API リファレンス
Quote maximum text cost
/v1/cost-quotesVersioned 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)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 401
キーが見つからないか、無効であるか、期限切れであるか、取り消されています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 403
IP、アカウント、モデル、またはツールの権限が不十分です。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 404
実行は見つかりませんでした。これは、不確実な世代に請求が行われていないことを証明するものではありません。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 409
リクエスト ID の内容が競合しているか、in-flight の実行を削除できません。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 422
No provable current maximum or invalid/changed input. No model execution was dispatched.
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 429
リクエスト/キューのレート制限。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 500
内部認証またはデータ ストレージのエラー。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 503
一時的に利用できません。送信された結果が不確かな場合は、元のリクエストをクエリします。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション