Tổng quan
Endpoint này trả về chi tiết mức sử dụng theo API key mà không làm lộ chi tiết thực thi của provider.Tham số query
| Tham số | Kiểu | Mặc định / giới hạn | Mô tả |
|---|---|---|---|
page | integer | mặc định 1, tối thiểu 1 | Số trang bắt đầu từ 1 |
limit | integer | mặc định 50, tối thiểu 1, tối đa 100 | Kích thước mỗi trang |
model | string | độ dài tối đa 100 | Tên model được yêu cầu |
modelVendor | string | độ dài tối đa 100 | Nhà cung cấp model công khai |
scene | enum | - | chat, image, audio, video, embedding, rerank, translation, music, 3d, realtime |
accessChannel | enum | - | platform hoặc byok |
startDate | string | - | Cận dưới bao gồm; chấp nhận RFC3339 có múi giờ hoặc YYYY-MM-DD |
endDate | string | - | Cận trên bao gồm; chấp nhận RFC3339 có múi giờ hoặc YYYY-MM-DD |
startDate và endDate, thì startDate phải nhỏ hơn hoặc bằng endDate.
Lưu ý
- Phản hồi có phân trang.
- Phản hồi chỉ bao gồm các trường chi phí và báo cáo công khai.
- Mỗi dòng usage cũng có thể bao gồm
billing_transaction_idsau khi request gốc đã được settlement xong. Hãy dùng giá trị này cùng vớirequest_idđể đối soát ở cấp request. - Metadata routing nội bộ và kênh vật lý sẽ tiếp tục bị ẩn.
Ví dụ
Yêu cầu / Phản hồi
Hãy dùng bảng OpenAPI tương tác phía trên để xem schema chính xác và các trường phản hồi.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.