API リファレンス
リクエスト ID によるテキスト実行の回復
/v1/text-run-requests/{request_id}通常の GloopAPI キーを使用します。 Text-only オプションのストリーミングを備えたチャット完了モデルがサポートされています。応答、ツール、マルチモーダル入力はサポートされていません。同じキーと request_id を繰り返すと、再生成せずに元の実行が返されます。変更された内容は 409 を返します。不明は、フリーまたは失敗を意味するものではありません。元のリクエストを問い合わせてください。出力は、決済と完全な永続化の後にのみ返されます。コンテンツは 7 日後に期限切れになります。リクエスト ID とアカウンティング レコードは、削除または期限切れになっても存続します。
認証と権限
現在の GloopAPI キーを使用します。利用可能なモデル、機能、権限は、そのカタログとエンドポイントのドキュメントによって異なります。
Authorization: Bearer $GLOOP_API_KEY認証スキーム: BearerAuth
リクエスト
パスパラメータ
request_idstring必須
応答とエラー
HTTP 200
読み取りに成功しました。
application/json
- タイプ
- object
- 必須フィールド 説明
idrequest_idmodelstateversionexpires_atresult_deleted
idstring必須request_idstring必須modelstring必須statestring必須- 列挙型
["pending","unknown","succeeded","failed"]
versioninteger必須- 列挙型
[1]
expires_atinteger必須Unix の有効期限 (秒単位)。結果のコンテンツは最大 7 日間保持されます。
result_deletedboolean必須outputobjectオプションoutput 子フィールド (4)
textstring必須input_tokensinteger必須output_tokensinteger必須usage_sourcestring必須- 列挙型
["reported"]
billingobjectオプションbilling 子フィールド (5)
statusstring必須- 列挙型
["settled","refunded"]
currencystring必須- 列挙型
["USD"]
final_amountstringオプションAuthoritative finalized wallet charge. Missing does not mean zero.
pricing_versionstringオプションquote_idstringオプション
HTTP 202
実行が保留中であるか、確認が必要です。
application/json
- タイプ
- object
- 必須フィールド 説明
idrequest_idmodelstateversionexpires_atresult_deleted
idstring必須request_idstring必須modelstring必須statestring必須- 列挙型
["pending","unknown","succeeded","failed"]
versioninteger必須- 列挙型
[1]
expires_atinteger必須Unix の有効期限 (秒単位)。結果のコンテンツは最大 7 日間保持されます。
result_deletedboolean必須outputobjectオプションoutput 子フィールド (4)
textstring必須input_tokensinteger必須output_tokensinteger必須usage_sourcestring必須- 列挙型
["reported"]
billingobjectオプションbilling 子フィールド (5)
statusstring必須- 列挙型
["settled","refunded"]
currencystring必須- 列挙型
["USD"]
final_amountstringオプションAuthoritative finalized wallet charge. Missing does not mean zero.
pricing_versionstringオプションquote_idstringオプション
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 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オプション