Genel bakış
Bu endpoint, fiziksel yönlendirme metadatasını açığa çıkarmadan API anahtarı düzeyinde kullanım ayrıntılarını döndürür.Sorgu parametreleri
| Parametre | Tür | Varsayılan / sınırlar | Açıklama |
|---|---|---|---|
page | integer | varsayılan 1, minimum 1 | 1’den başlayan sayfa numarası |
limit | integer | varsayılan 50, minimum 1, maksimum 100 | Sayfa boyutu |
model | string | maksimum uzunluk 100 | İstenen model adı |
modelVendor | string | maksimum uzunluk 100 | Herkese açık model sağlayıcısı |
scene | enum | - | chat, image, audio, video, embedding, rerank, translation, music, 3d, realtime |
accessChannel | enum | - | platform veya byok |
startDate | string | - | Dahil alt sınır; zaman dilimli RFC3339 veya YYYY-MM-DD kabul eder |
endDate | string | - | Dahil üst sınır; zaman dilimli RFC3339 veya YYYY-MM-DD kabul eder |
startDate ve endDate birlikte gönderilirse startDate, endDate değerinden erken veya eşit olmalıdır.
Notlar
- Yanıt sayfalanmıştır.
- Yanıt yalnızca herkese açık faturalama ve raporlama alanlarını içerir.
- Her usage kaydı, alttaki istek mutabakatı tamamlandıktan sonra
billing_transaction_idda içerebilir. İstek düzeyinde mutabakat için bunurequest_idile birlikte kullanın. - Dahili yönlendirme ve fiziksel kanal metadatası kasıtlı olarak gizlenir.
Örnek
İstek / Yanıt
Kesin şema ve yanıt alanları için yukarıdaki etkileşimli OpenAPI panelini kullanın.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.