نظرة عامة
يعيد هذا الـ endpoint تفاصيل الاستخدام على مستوى مفتاح API من دون كشف بيانات التوجيه الفيزيائي.معلمات الاستعلام
| المعامل | النوع | القيم الافتراضية / القيود | الوصف |
|---|---|---|---|
page | integer | الافتراضي 1، الحد الأدنى 1 | رقم الصفحة بدءًا من 1 |
limit | integer | الافتراضي 50، الحد الأدنى 1، الحد الأقصى 100 | حجم الصفحة |
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.
ملاحظات
- هذه الاستجابة تدعم ترقيم الصفحات.
- لا تتضمن الاستجابة إلا حقول الفوترة والتقارير العامة.
- قد تتضمن كل سطر usage أيضاً الحقل
billing_transaction_idبعد اكتمال تسوية الطلب الأساسي. استخدمه معrequest_idللمطابقة على مستوى الطلب. - يتم إخفاء بيانات التوجيه الداخلي والقنوات الفيزيائية عمدًا.
مثال
الطلب / الاستجابة
استخدم لوحة 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.