Ikhtisar
Endpoint ini mengembalikan detail penggunaan per API key tanpa menampilkan detail routing penyedia.Parameter query
| Parameter | Tipe | Default / batas | Deskripsi |
|---|---|---|---|
page | integer | default 1, minimum 1 | Nomor halaman mulai dari 1 |
limit | integer | default 50, minimum 1, maksimum 100 | Ukuran halaman |
model | string | panjang maksimum 100 | Nama model yang diminta |
modelVendor | string | panjang maksimum 100 | Vendor model publik |
scene | enum | - | chat, image, audio, video, embedding, rerank, translation, music, 3d, realtime |
accessChannel | enum | - | platform atau byok |
startDate | string | - | Batas bawah inklusif; menerima RFC3339 dengan timezone atau YYYY-MM-DD |
endDate | string | - | Batas atas inklusif; menerima RFC3339 dengan timezone atau YYYY-MM-DD |
startDate dan endDate dikirim bersamaan, startDate harus lebih awal atau sama dengan endDate.
Catatan
- Respons ini dipaginasi.
- Respons hanya mencakup field penagihan dan pelaporan yang bersifat publik.
- Setiap item usage juga dapat menyertakan
billing_transaction_idsetelah request dasarnya mencapai status settlement selesai. Gunakan nilai ini bersamarequest_iduntuk rekonsiliasi per request. - Detail routing penyedia tidak ditampilkan.
Contoh
Request / Respons
Gunakan panel OpenAPI interaktif di atas untuk melihat schema dan field respons yang tepat.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.