API リファレンス
保存されたチャット完了のリスト
GET
/v1/chat/completions7 日間同じ API キーでアクセスできるのは、store=true で明示的に保存された完全な解決済みの結果のみです。空のクエリは 未実行 を証明するものではありません。自動的に返金または再送信されることはありません。ストアとメタデータは冪等性を保証しません。
認証と権限
現在の GloopAPI キーを使用します。利用可能なモデル、機能、権限は、そのカタログとエンドポイントのドキュメントによって異なります。
Authorization: Bearer $GLOOP_API_KEY認証スキーム: BearerAuth
リクエスト
クエリパラメータ
応答とエラー
HTTP 200
成功
application/json
- タイプ
- object
objectstringオプション- 列挙型
["list"]
dataarrayオプションdata 子フィールド (1)
[]objectオプション- 追加のプロパティ
false
[] 子フィールド (9)
idstringオプションobjectstringオプションcreatedintegerオプションmodelstringオプションchoicesarrayオプションchoices 子フィールド (1)
[]objectオプション- 追加のプロパティ
false
[] 子フィールド (3)
indexintegerオプションmessageobjectオプション- 追加のプロパティ
false
message 子フィールド (5)
rolestring必須- 列挙型
["assistant"]
テキスト応答コンテンツ。
tool_callsarrayオプション
finish_reasonstringオプション- 列挙型
["stop","length","tool_calls","content_filter"]
usageobjectオプションusage 子フィールド (5)
prompt_tokensintegerオプションプロンプトトークン数
completion_tokensintegerオプション完了トークン数
total_tokensintegerオプション総トークン数
prompt_tokens_detailsobjectオプションprompt_tokens_details 子フィールド (4)
cached_tokensintegerオプションtext_tokensintegerオプションaudio_tokensintegerオプションimage_tokensintegerオプション
completion_tokens_detailsobjectオプションcompletion_tokens_details 子フィールド (3)
text_tokensintegerオプションaudio_tokensintegerオプションreasoning_tokensintegerオプション
system_fingerprintstringオプションmetadata 子フィールド (1)
[key]stringオプション
gloop_billingobjectオプションGloopAPI extension: stored response GET/list queries include the caller’s finalized USD charge. This is not an OpenAI standard field and generation responses may omit it. Missing billing does not mean zero cost.
gloop_billing 子フィールド (3)
statusstring必須- 列挙型
["settled"]
currencystring必須- 列挙型
["USD"]
final_amountstring必須Decimal string of the caller’s finalized USD charge.
first_idstringオプションlast_idstringオプションhas_morebooleanオプション
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 404
結果が見つからない、削除された、期限切れ、またはまだ配信できません
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オプション