概要
この endpoint は、非公開のプロバイダー詳細を公開せずに、API Key 単位の使用量明細を返します。Query パラメータ
| パラメータ | 型 | 既定値 / 制約 | 説明 |
|---|---|---|---|
page | integer | 既定値 1、最小 1 | 1 始まりのページ番号 |
limit | integer | 既定値 50、最小 1、最大 100 | 1 ページあたりの件数 |
model | string | 最大長 100 | リクエスト時に指定されたモデル名 |
modelVendor | string | 最大長 100 | 公開モデルのベンダー名 |
scene | enum | - | chat, image, audio, video, embedding, rerank, translation, music, 3d, realtime |
accessChannel | enum | - | platform または byok |
startDate | string | - | 開始日時(含む)。タイムゾーン付き RFC3339 または YYYY-MM-DD を受け付けます |
endDate | string | - | 終了日時(含む)。タイムゾーン付き RFC3339 または YYYY-MM-DD を受け付けます |
startDate と endDate を同時に指定する場合、startDate は endDate 以下である必要があります。
補足
- レスポンスはページネーションされます。
- レスポンスには公開可能な Billing / Reporting 項目のみが含まれます。
- 基になるリクエストの課金精算が完了すると、各 usage 明細に
billing_transaction_idが含まれる場合があります。request_idと合わせてリクエスト単位の照合に使用してください。 - 非公開のプロバイダー詳細は非表示のままです。
例
リクエスト / レスポンス
正確な schema とレスポンス項目は、上部のインタラクティブな OpenAPI パネルを参照してください。Response example
Important fields
API key summary using the same fields as list/create/update responses.
Paginated usage rows.
Pagination metadata with
page, limit, total, and totalPages.Aggregated totals for the selected filters.
Aggregated breakdowns for the selected filters.
Public request identifier for support and reconciliation.
Settled billing transaction id when available.
Requested public model name.
Logical public model used for reporting.
Public model vendor.
Public request scene.
platform or byok.Billing usage unit, such as
per_token.Usage quantity as a JSON number for display.
Exact usage quantity as a decimal string.
Prompt token count.
Completion token count.
Total token count.
Cache read token count.
Total cache write token count.
Five-minute cache write token count.
One-hour cache write token count.
Cost in USD as a JSON number for display.
Exact cost in USD as a decimal string.
ISO usage row timestamp.
Total request count.
Total cost in USD as a JSON number for display.
Exact total cost in USD as a decimal string.
Total prompt tokens.
Total completion tokens.
Total tokens.
Usage quantity grouped by usage unit.
Breakdown by requested public model.
Breakdown by logical public model.
Breakdown by public model vendor.
Breakdown by public request scene.
Breakdown by
platform or byok access channel.Daily cost trend.